You're right. I was using version 1.1 so I've changed it over to 1.2 and have it working again with Persits.Jpeg but now get question marks with AspImage instead. It's on a server with both components installed and so the only change I am making is the Images.Add "component", "Persits.Jpeg" line in config.asp.
I've checked AspImage works in other situations. Any thoughts? Are there any changes I can make anywhere to give you more detailed error messages to help narrow down the problem?
If you have Firebug installed, then check the network tab, you'll find all the requests for the thumbnails and they are probably a 500 error, open one of them in a new tab to check the full response sent by the server.
Another option would be to set in the config file a "low" value for the maximum dimensions of uploaded pictures, and then try to upload one that should be resized, check that it fails to do so, probably you won't get a useful message. Now reload the page, and then change in the config.asp to enable the debug mode, (do the things in this order), then try to upload again the file and you might have better luck to get the error message with some info.
Please, report back any finding (although personally, I would rather use the Persists component instead of the AspImage, and for anyone else reading this, the best option at the moment seems to use the Asp.Net version as it's free)
I installed firebug and checked. The error on the images was Type mismatch: 'expireDate' /ckfinder/core/connector/asp/utils/Image.asp line 352
I checked both servers for the "component.expires" value and it came back as "N/A" which was presumably why it couldn't cope with the date check. I don't know if that's because it's some special version that the hosting companies have? The version number was 2.31 if that helps.
Anyway, I changed image.asp to include the line if expiredate = "N/A" then expiredate = "01/01/2050" at line 351 just to check if it would work when that error was removed and it did then create the thumbnails properly. So that now works on my server but I guess you'll need to allow for this value of the component's expiry date.
Let me know if you still want me to try any of the other things you suggested in your previous response though. And I agree - I'd use Persits if I could as I much prefer it as a componenet.
I did try Asp.Net as an option before, but got the same question marks. Not that I need this now but I've tried it again now that I can see the error messages and get Error number="1" text="Error returned in call to Asp.Net" I did ensure that .Net was enabled for the domain through my hosting account control panel, but does that mean it can't load or is the wrong version? It says the version is 2.0.50727.0
I made those changes to the web.config file in the ckfinder folder but still get the error when I expand connector.asp in Firebug. <?xml version="1.0"?> <Connector><Error number="1" text="Error returned in call to Asp.Net"/></Connector>
I'm going to go with AspImage anyway for now and will probably move the site over to the other (better) server which has the Persits component installed soon anyway. If the Asp.Net option is working for other people it's probably just a strange config on my hosts server!
So thanks for your help in getting the AspImage option working for me.
It would be interesting anyway to find out the root of the problem, because in the future there might be other features that also rely on asp.net (like zip handling for example), so it's better if we are able to find out any problem with the current code.
Anyway, another thing that we want to improve is the debugging of problems, so it might be easier in the future to find out what's wrong with that server.
If you would like me to run more tests or give you more info on my server I'm happy to help you try and figure out why the Asp.Net option won't work. Though I don't know any Asp.Net so possibly can't help much with this one!
Re: AspImage thumbnails incorrect
I thought that I fixed that bug for 1.2
Re: AspImage thumbnails incorrect
You're right. I was using version 1.1 so I've changed it over to 1.2 and have it working again with Persits.Jpeg but now get question marks with AspImage instead. It's on a server with both components installed and so the only change I am making is the
Images.Add "component", "Persits.Jpeg"
line in config.asp.
I've checked AspImage works in other situations. Any thoughts? Are there any changes I can make anywhere to give you more detailed error messages to help narrow down the problem?
Thanks
Re: AspImage thumbnails incorrect
Another option would be to set in the config file a "low" value for the maximum dimensions of uploaded pictures, and then try to upload one that should be resized, check that it fails to do so, probably you won't get a useful message.
Now reload the page, and then change in the config.asp to enable the debug mode, (do the things in this order), then try to upload again the file and you might have better luck to get the error message with some info.
Please, report back any finding (although personally, I would rather use the Persists component instead of the AspImage, and for anyone else reading this, the best option at the moment seems to use the Asp.Net version as it's free)
Re: AspImage thumbnails incorrect
Type mismatch: 'expireDate'
/ckfinder/core/connector/asp/utils/Image.asp line 352
I checked both servers for the "component.expires" value and it came back as "N/A" which was presumably why it couldn't cope with the date check. I don't know if that's because it's some special version that the hosting companies have? The version number was 2.31 if that helps.
Anyway, I changed image.asp to include the line
if expiredate = "N/A" then expiredate = "01/01/2050"
at line 351 just to check if it would work when that error was removed and it did then create the thumbnails properly. So that now works on my server but I guess you'll need to allow for this value of the component's expiry date.
Let me know if you still want me to try any of the other things you suggested in your previous response though. And I agree - I'd use Persits if I could as I much prefer it as a componenet.
I did try Asp.Net as an option before, but got the same question marks. Not that I need this now but I've tried it again now that I can see the error messages and get
Error number="1" text="Error returned in call to Asp.Net"
I did ensure that .Net was enabled for the domain through my hosting account control panel, but does that mean it can't load or is the wrong version? It says the version is 2.0.50727.0
Thanks
Re: AspImage thumbnails incorrect
You don't need to test it with the other methods, they were just suggestions in case you didn't manage to use Firebug.
With regards to the asp.net problem, please add this to your web.config file in the <system.web> :
If you don't have a web.config then this would be the whole content:
(you can place the file just in the same folder that ckfinder, it doesn't have to be at the root)
Thanks
Re: AspImage thumbnails incorrect
<?xml version="1.0"?>
<Connector><Error number="1" text="Error returned in call to Asp.Net"/></Connector>
I'm going to go with AspImage anyway for now and will probably move the site over to the other (better) server which has the Persits component installed soon anyway. If the Asp.Net option is working for other people it's probably just a strange config on my hosts server!
So thanks for your help in getting the AspImage option working for me.
Re: AspImage thumbnails incorrect
Anyway, another thing that we want to improve is the debugging of problems, so it might be easier in the future to find out what's wrong with that server.
Thanks again.
Re: AspImage thumbnails incorrect