I've followed the threads I was able to find regarding thumbnails showing up at ? marks, but I haven't been able to find a solution to my problem yet, so I guess I'll go ahead and ask.
I have ckfinder 1.4.1.1 loaded on my server. It's a hosted windows box, so I don't have access to any of the IIS configuration information. The host is usually pretty good to work with in terms of config changes, but sometimes a bit slow.
As stated the problem I'm running into is that the thumbnails are not showing up, or more correctly not getting created. If I create thumbs on my computer and upload them to the _thumbs directory they show up fine. I have Images.Add "component", "Asp.Net" set in my config file, and the path for CKFinderTempPath set in config.asp and web.config.
I downloaded the wizard app to try and help debug this, and it's failing 4 of the tests. The first one I get the following error:
Checking for the ability to use CreateObject has failed: Error: the call to server.CreateObject("Msxml2.ServerXMLHTTP.6.0") has failed with error number -2147221005 and message '006~ASP 0177~Server.CreateObject Failed~Invalid ProgID. For additional information specific to this message please visit the Microsoft Online Support site located at: http://www.microsoft.com/contentredirect.asp. '
the next one I'm sure is related:
The test file has failed. Requested URL: assets/ckfinder.asp?what=loopback&nocache=Tue Feb 09 2010 23:30:01 GMT-0800 (Pacific Standard Time) Returned status: 500 Returned text: <font face="Arial" size=2> <p>Server object</font> <font face="Arial" size=2>error 'ASP 0177 : 800401f3'</font> <p> <font face="Arial" size=2>Server.CreateObject Failed</font> <p> <font face="Arial" size=2>/ckfinder/wizard/assets/ckfinder.asp</font><font face="Arial" size=2>, line 409</font> <p> <font face="Arial" size=2>Invalid ProgID. For additional information specific to this message please visit the Microsoft Online Support site located at: http://www.microsoft.com/contentredirect.asp. </font> Returned xml: [object XMLDocument] Returned headers:
the last 2 are the same as far as I can tell:
The server didn't send back an image. CKFinder connector for classic ASP. The connector is in Debug Mode. In order to use the connector you'll have to set CKFinder_Debug = false. Response from the connector (including debugging messages): Response Number: 1 Response Text: Error returned in call to Asp.Net Debug Text: Error returned in call to http://www.mountainbloom.com/ckfinder/wizard/assets/loopback.aspx?tmp=rad8FB58.tmp&command=CreateThumbnail&InputImage=E%3A%5Cmountainbloom%2Ecom%5Cckfinder%5Cuserfiles%5Cimages%5Ctest%2Ejpg&OutputThumbnail=E%3A%5Cmountainbloom%2Ecom%5Cckfinder%5Cuserfiles%5C%5Fthumbs%5CImages%5Ctest%2Ejpg&maxWidth=100&maxHeight=100&quality=80. (208637, A connection with the server could not be established )
I tried just putting the URL in on a webpage to test it out, and I get back a 403 forbidden error. I'm not sure why as the permissions appear to be set correctly, and I can access other ASP pages in that directory.
For kicks I also tried the ASP.NET version of CKFinder, and it works great. I'd happily just use it instead of trying to get ASP version working, however my site is all coded in ASP. I'm using Session variables for my authentication tracking. I don't have access to a database on this host, and have been pulling my hair out trying to get a secure method of transferring Session variables from ASP to ASP.NET. No joy on that.
The wizard script shows I'm using he server is using the Asp.Net framework version: 2.0.50727.832, and it reports that the CKFinder user has permissions for everything.
Thanks
Re: thumbnails show up as ? mark
Please, try this: in ckfinder\core\connector\asp\utils\image.asp change the classId removing the version (line 730):
from
to
and in the wizard, change wizard\assets\ckfinder.asp line 409 so it also uses the same string. Save and try again.
Re: thumbnails show up as ? mark
The original errors #1 #3&4 are still there, I get a new error though in place of #2.
After the first error I now get:
This is a shared host, they won't make that change hosts file.
Re: thumbnails show up as ? mark
Ups, yes, the change in the wizard must be done also in the assets\check.asp file, search for "Msxml2.ServerXMLHTTP.6.0" and change it to "Msxml2.ServerXMLHTTP"
But the problem is the new error:
The trick used here is to call the same server to an asp.net page, the way to do it is to use the same domain name exactly just to prevent problems in shared hosting, but in this case, the resolution of the domain is the public IP of the server, but the firewall/router of that server doesn't allow to do a loopback using that IP, and so it can't call itself.
I know that I tried previously to add an extra header so it would call directly the 127.0.0.1 IP but with the correct Host name, but I wasn't able to make it work. Unfortunately modifying the hosts file is the only solution that I know for this problem. You should try to explain it to the hosting company, maybe you're lucky as this doesn't mean installing anything, just a little change in one configuration file.
(The usage of "Msxml2.ServerXMLHTTP.6.0" instead of using it in a generic way was a try to check if using some specific version I was able to use the special call that I described)
Re: thumbnails show up as ? mark
I did however notice a couple of things in CKFinder after the hosts file update.
1) the ? marks now show up much faster then before
2) when I upload I now get an error where before I was just getting a timeout.
Re: thumbnails show up as ? mark
Please, point them to this thread or to the output of the wizard, I can only guess what's the correct solution for your server, maybe they can try to set
But they are the ones that can tell what's exactly the correct configuration. Anyway, I would like to know what's their response because I can try to improve the wizard to offer that suggestion (it will be easy if the code that I'm suggesting works)
Re: thumbnails show up as ? mark
The ASP.NET version of CKFinder works fine on this server, including thumbnails. What's the difference between the thumbnail creation between the ASP.NET version, and the ASP version with Asp.Net selected as it's thumbnail creation method?
Would it be possible to use the ASP.NET versions thumbnail component instead? If it is, would it be safe to use it without the CheckAuthentication?
Thanks again.
Re: thumbnails show up as ? mark
The asp connector is trying just to tell an asp.net script: "Hey please, take care of resizing this pictures as I'm not able to do it", but your problem at the moment is that it isn't able to send that message to itself, and that's why it doesn't work.
It's not possible to do a "Include" of an asp.net script inside an asp page, so the trick that we are using here is the only one that I know of in order to use the mixture of environments.
Re: thumbnails show up as ? mark