Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.
This repository was archived by the owner on May 22, 2025. It is now read-only.

AdaptiveImages on Dotclear and error.log in appache #10

Description

@ArfyFR

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions