• Resolved David Robinson

    (@foxrobinson)


    Hi there,

    The plugin stops at the resizing stage. Console gives this error:


    VM1111:1 Uncaught SyntaxError: Unexpected token < in JSON at position 0
    at JSON.parse (<anonymous>)
    at XMLHttpRequest.l.onload (instant-images.js?ver=3.2:25)

    I have checked folder access and it is 755 so that isnt the issue. Can you help?

    Regards,

    David

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Darren Cooney

    (@dcooney)

    Hi @foxrobinson,
    Can you open Chrome Inspector and check the Network > XHR > Resize > Response tab and see what the response it?

    Please post to Upload and Resize responses if possible.

    Thread Starter David Robinson

    (@foxrobinson)


    <br />
    <b>Warning</b>: copy(/home/foxrobin/public_html/dtl/wp-content/uploads/instant-images/0y92si4zlya.jpg): failed to open stream: Permission denied in <b>/home/foxrobin/public_html/dtl/wp-content/plugins/instant-images/api/resize.php</b> on line <b>73</b><br />
    {"success":false,"msg":"Unable to copy image to the media library. Please check your server permissions."}

    Plugin Author Darren Cooney

    (@dcooney)

    Looks like the error is related to the parent uploads directory.

    Line #73 is $copy_file = copy($filename , $new_filename);

    What are the permissions on the parent /uploads directory?

    Thread Starter David Robinson

    (@foxrobinson)

    Uploads is 755

    The instant images folder in that directory is set to 000 though and access permission is denied. I can change all other directories permissions in the uploads folder though.

    Plugin Author Darren Cooney

    (@dcooney)

    /instant-images needs 755. Either set that or try deleting the directory and creating it again.

    Thread Starter David Robinson

    (@foxrobinson)

    Ah yes that has fixed it (deleting and re-creating the folder). Thanks for the quick help and for a great plugin.

    Regards,

    David

    Plugin Author Darren Cooney

    (@dcooney)

    Oh yes!
    Thanks… no idea why this happens, but lucky other users discovered the delete and re-create fix.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Stops whilst resizing’ is closed to new replies.