Support » Plugin: Adaptive Images for WordPress » Error at line 887 file adaptive-images-script.php after update to latest version

  • if ( ! file_exists( $settings[‘source_file’] ) ) {

    $settings[‘source_file’] supposed to be path to original image, but it is url, not file path. So request goes back to .htaccess rule, that again to script and that cause endless loop.

    So, original image is not reachable.

    Quick fix:
    add

    $settings[‘source_file’] = $_SERVER[‘DOCUMENT_ROOT’].ltrim($_SERVER[‘REDIRECT_URL’],”/”);

    Before line 887.
    That works for me, but i’ve not tested it properly, so might be issues on other environment (nginx or whatever).

Viewing 1 replies (of 1 total)
  • Plugin Author Takis

    (@nevma)

    Hello, my friend,

    I think that what you mention only happens when something else has gone wrong and the $settings[‘source_file’] has not taken its proper value. So you are probably fixing something very particular to your installation.

    Do you think you can provide me with a bit more info on the problem or perhaps a test installation, so that I can troubleshoot this?

    Cheers,
    Takis

Viewing 1 replies (of 1 total)
  • The topic ‘Error at line 887 file adaptive-images-script.php after update to latest version’ is closed to new replies.