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)
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.