Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AdaptiveImages on Dotclear and error.log in appache #10

Open
ArfyFR opened this issue Nov 29, 2015 · 0 comments
Open

AdaptiveImages on Dotclear and error.log in appache #10

ArfyFR opened this issue Nov 29, 2015 · 0 comments

Comments

@ArfyFR
Copy link

ArfyFR commented Nov 29, 2015

Hi,

I often see error logs like
[Sun Nov 29 15:30:19 2015] [error] [client 188.165.15.183] PHP Warning: file_exists(): Unable to find the wrapper "http" - did you forget to enable it when you configured PHP? in /www/dotclear/plugins/adaptiveImages/inc/AdaptiveImages.php on line 602

Line 606 refers to use of file_exists there:

           // don't do anyting if we can't find file
           if (!file_exists($src))
                   return $img;

in

protected function processImgTag($img, $bkpt, $maxWidth1x){

I think it is linked to images on my blog with an URL, and not relative to the path.

What do you think adding before the file_exist a test like

          // don't do anyting of http images
          if (strncmp($src, "http:", 5)==0)
                  return $img;

next to the data-uri test ?

Pascal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant