PHP Errors In Addons.php - Question | JoomShaper
Black Friday sale is live with flat 50% OFF. Sale ends soon! Grab your deal now!

PHP Errors In Addons.php

Paulie

Paulie

SP Page Builder 3 years ago

I noticed that my PHP error log is full of lines like this... [12-Dec-2021 10:04:18 US/Central] PHP Warning: getimagesize(/images/2021/02/06/bg01.jpg): failed to open stream: No such file or directory in D:\WWW\Joomla\components\com_sppagebuilder\parser\addons.php on line 64

Looking at addons.php, line 64 says... $dimension = \getimagesize($src);

The real path to the image is... D:/WWW/Joomla/images/2021/02/06/bg01.jpg This is where SP Page Builder put it when uploaded through the SP Page Builder interface and it displays when viewing the webpage.

Any ideas how to prevent this error in the error log?

0
5 Answers
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 3 years ago #47114

Hi,

By now please use PHP 7.4 to avoid the issues.

We will publish update soon.

0
Paulie
Paulie
Accepted Answer
3 years ago #47115

My PHP version is currently 7.4.16 Are you saying I need to downgrade?

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 3 years ago #47181

Oh. It can be cuased by default Localhost settings of website path.

Becuase as I can guess, you can see all added images, right?

0
Paulie
Paulie
Accepted Answer
3 years ago #47285

Not to sure what you are asking but yes, I can see the images in the folders they were uploaded to and the images are displayed on the web pages when you view the web page.

If I need to adjust something to make the errors go away, just let me know what I have to change and where the change is located. Thanks.

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 3 years ago #47312

By now just ignore those errors and please wait for SPPB 3.8.2 update.

You can hide showing errors in Joomla Global Configuration.

0