Warning: file_exists(): open_basedir restriction in effect. - Forum | JoomShaper
Staff replied SP Page Builder

Warning: file_exists(): open_basedir restriction in effect.

Asked by Mark 3 years ago Last activity 3 years ago

Hello,

I get this warning :

Warning: file_exists(): open_basedir restriction in effect. File(/site.php) is not within the allowed path(s): (..........)
in ........../components/com_sppagebuilder/parser/addon-parser.php on line 355
(full warning with paths is hidden)

i think there is a bug in the code, because we did not have this problem before the update to SP Page Builder 3.8.10 and Joomla 4.

The AI-chat said:
This error occurs when the open_basedir restriction is enabled in the server. To fix this, you need to add the path of the file to the open_basedir restriction. Please follow the steps below to accomplish this task:

1.Locate the file addon-parser.php in the server.
2.Check the path of the file.
3.Add the path of the file to the open_basedir restriction.
4.Save the changes.
5.If you need further assistance, please contact your hosting provider.

Q:
the path of the file says: if(file_exists($addon_path . '/site.php')) What is the value of $addon_path ?
A:
The value of $addon_path is the path of the addon directory. It is usually located in the components/com_sppagebuilder/addons directory.

I think there is a bug in the code, because we did not have this problem before the update to SP Page Builder 3.8.10. And the path tothe domain is included in the open_basedir settings

Any ideas what wrong?

Thanks ahead for your help.
Mark

2 replies

Toufiq Senior Staff

Hi there,

I appreciate you reaching out. I sincerely apologize for this oversight. Will you please provide me the Joomla administrator access & FTP access to check the issue? I will check & get back to you soon. 

-Thanks

Mark Asked this

Hi Toufiq,
Sorry, can't give you FTP access but see hidden content for other details

Toufiq Senior Staff

You are using free version of Page Builder. Tried to install the pro version. But, upload issue on your server.

https://prnt.sc/sOCyWES7q4Qw

Please contact your server provider to increase file upload size. Thanks

Toufiq Senior Staff

Update: No problem displayed now. Maybe caching issue. Thanks

Log in to reply.