Hi spl,
Sounds like a permission issue. Can you making permissions 777 ?
Also, what type of server are you running?
Cheers,
Thread Starter
spl
(@spl)
The upload folder 2017/01 and the instant-images had already 777. But the files does not get the same permissions.
I have a virtuell server with
20 MB RAM, CPU-Time 10 Sekunden, Skript-time: 180 Sekunden
PHP 7.0.6
I think it is an apache
cheers,
I have the same issue. It seems that scripts is throwing a 500 error, here’s a screenshot – http://f.codest.ag/mypN
Also, as @spl said, the images are being saved in uploads folder but have no reference under WordPress media. Doesn’t seem to be a permissions issue.
Thread Starter
spl
(@spl)
@mauryaratan not sure, the files have the permissions 666 and don’t get the permissions fromt it’s folder.
Ok, this sounds like the same issue as the other thread.
https://wordpress.org/support/topic/does-not-work-on-localhost-2/
Any chance you guys could review the function reference here and see if you think anything could be causing the problem?
https://plugins.trac.wordpress.org/browser/instant-images/trunk/admin/admin.php#L286
I think I might need to work on the error notices to narrow things down.
Thread Starter
spl
(@spl)
@dcooney, sounds like. But in my case the resizing and the copying to the wordpress upload folder works – but with the wrong permissions.
I guess the error is in downloading the file to the temp folder. This file had the wrong permissons. Then the script resize and copy the file (with this wrong permissions – read yes, exicute and so on no). So the script finally try to delete the temp file and gets an error.
I would look at the area: https://plugins.trac.wordpress.org/browser/instant-images/trunk/admin/admin.php#L216
@dcooney The answer is on line itself https://plugins.trac.wordpress.org/browser/instant-images/trunk/admin/admin.php#L286
The ajax callback doesn’t expects arguments right? Removing them fixed it for me on localhost.
@mauryaratan,
Ahh, yes. You’re right. The instant_img_resize_image
does not expect arguments.
@spl , can you try replacing instant_img_resize_image($path, $filename, $desc, $url)
with instant_img_resize_image()
and let me know?
Cheers,
Thread Starter
spl
(@spl)
@dcooney @mauryaratan
That’s it. Now it’s working like it should.
Thumps up!
Nice!
I’ll get a patch out for this tomorrow or tonight.
Thanks guys!
Cheers!
Just pushed 2.0.1 to fix this error.
Thread Starter
spl
(@spl)
Works! *****
That a real good fixing in 2 dasy!!
Hi,
I’m have last version of WP and Instant Image and this error still persist.
I’m using Xampp + Windows, and I’m developing in localhost.
I tried,
– to change permission for my local user (which es admin) to write in the folder “instant-images”. Didn’t work. It seems that it always is “only reading”.
– to delete folder “instant-images” and create manually another with the same name. Didn’t work.
Thank you for your help.