• Resolved richieps

    (@richieps)


    Hi,

    I’ve just noticed some errors showing up on cPanel Server Errors. They appear to relate to an image used for an Amazon Associate link.

    Error message:
    [STDERR] PHP Warning: getimagesize(//ws-na.amazon-adsystem.com/widgets/q?_encoding=UTF8&ASIN=B00JHX5GVE&Format=_SL250_&ID=AsinImage&MarketPlace=US&ServiceVersion=20070822&WS=1&tag=rrexcelvbaprogcon-208&language=en_US): failed to open stream: No such file or directory in /wp-content/plugins/litespeed-cache/src/media.cls.php on line 660

    Blog page with the image links:
    https://richiesroom.com/excel-vba-programming-concepts/#Head6

    Any suggestions as to how to handle this would be greatly appreciated.

    Thanks,
    Richie

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support qtwrk

    (@qtwrk)

    Hi,

    the thing here is that getimagesize(//ws-na.amazon- , the image start with //xxx may work with browser, but for getimagesize() it thinks it’s local absolute path , and try to locate it , but it doesn’t exist , so it throw out error

    I don’t know where/how that image was added , but if you can edit, try make it begin with https:// or https:// in the URL

    this error only makes add missing size not working on this image, everything else should be as it is

    we shall add some better error handling in future version.

    Best regards,

    Thread Starter richieps

    (@richieps)

    Hi,

    Thanks @qtwrk I’ll give that a try.

    Could this be the reason why, when the page loads, even though all of the content is loaded and visible, there is a spinning blue circle where the FavIcon is? (it only happens on this page – the only page with these image links)

    Thread Starter richieps

    (@richieps)

    Hi @qtwrk ,

    I’m now getting this error:
    in public_html/wp-content/plugins/litespeed-cache/src/media.cls.php on line 660

    Any idea what this means?

    Plugin Support qtwrk

    (@qtwrk)

    it means in that file , line 660 , there is a function went wrong , which I have explained in above reply that getimagesize() thing

    mtdas99

    (@mtdas99)

    I am also getting this error log:

    PHP Warning: getimagesize(https://cbshop.in/wp-content/uploads/2021/09/reebok-logo-1.png): failed to open stream: Redirection limit reached, aborting in /home/cbshop.in/public_html/wp-content/plugins/litespeed-cache/src/media.cls.php on line 660

    Firstly I have disabled Add image size and then disabled all the media optimization settings in lightspeed plugin but still the notice showing in error log. Also the pages are loading too much slowly.

    Some images are broken and some invalid urls like https://3243 are inserted in place of image url. These are causing the error.

    Please fix this as soon as possible or suggest any solution.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘PHP Warning: getimagesize’ is closed to new replies.