PHP Errors in addons.php - Forum | JoomShaper
Staff replied SP Page Builder

PHP Errors in addons.php

Asked by Paulie 4 years ago Last activity 4 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?

5 replies

Paul Frankowski Senior Staff

Hi,

By now please use PHP 7.4 to avoid the issues.

We will publish update soon.

Paulie Asked this

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

Paul Frankowski Senior Staff

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

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

Paulie Asked this

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.

Paul Frankowski Senior Staff

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

You can hide showing errors in Joomla Global Configuration.

Log in to reply.