Wordpress LScache Plugin: PHP Warning: getimagesize
Last Updated on: Wed, 15 Apr 2026 00:00:02 Hi, Ive 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: https://richiesroom.com/excel-vba-programming-concepts/#Head6 Hi, the thing here is that getimagesize(//ws-na.amazon- , the image start with //xxx may work with browser, but for getimagesize() it thinks its local absolute path , and try to locate it , but it doesnt exist , so it throw out error I dont know where/how that image was added , but if you can edit, try make it begin with http:// 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, Hi, Thanks @CacheCrawler Ill 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) Hi @CacheCrawler , Im now getting this error: in public_html/wp-content/plugins/litespeed-cache/src/media.cls.php on line 660 Any idea what this means? it means in that file , line 660 , there is a function went wrong , which I have explained in above reply that getimagesize() thing 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 http://3243 are inserted in place of image url. These are causing the error. Please fix this as soon as possible or suggest any solution.
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference