WebSite X5Help Center

 
Jacek A.
Jacek A.
User

Blog, error  pl

Autor: Jacek A.
Besucht 217, Followers 1, Geteilt 0  

Hi,

I added a blog to the site and unfortunately it is not working.
https://www.mokudo.pl/blog/index.php

The following message appears, without a thumbnail of the post:
“Warning: require_once(): open_basedir restriction in effect. File(/usr/home/mokudo/domains/mokudo.pl) is not within the allowed path(s): (/usr/home/mokudo/domains/mokudo.pl/public_html:/tmp:/usr/share:/usr/local/share:/dev) in /usr/home/mokudo/domains/mokudo.pl/public_html/res/x5engine.php on line 54”
I didn't paste the text of an article from another program, so the formatting shouldn't matter here (I've only written 1 article so far).
I am additionally posting how I see the blog in the WebsiteX5 programPlease help

Gepostet am
5 ANTWORTEN
Incomedia
Eric C.
Incomedia

Hello Jacek,
there seems to be a restriction regarding the location of one of the files of your website.
Which path are you using as your destination folder?

For the future, I recommend disabling the PHP setting called display_errors: errors and warnings should only be visible in the relevant logs, and not on the pages directly, as sometimes a warning that would not lead to actual malfunctions can impact the website when displayed like this.

Mehr lesen
Gepostet am von Eric C.
Jacek A.
Jacek A.
User
Autor

Hi Eric,
Thank you for your response. Could you please explain to me more clearly which path are you referring to? Do you mean path in WebsiteX5 or my server path?
My FTP client shows:
/domains/mokudo.pl/public_html/*.* for website
/domains/mokudo.pl/public_html/blog/*.* for blog

In the attachment you'll find screenshot from BLOG panel in Website.
I wonder if "index.php" filename can cause the problem.
Home page filename is "index.html".

Mehr lesen
Gepostet am von Jacek A.
Incomedia
Eric C.
Incomedia

Hello Jacek,
the blog homepage will always be set ad index.php, this is automatic.
Are you uploading your project through an FTP client, rather than directly through WebSite X5?

Mehr lesen
Gepostet am von Eric C.
Jacek A.
Jacek A.
User
Autor

Yes, I always upload by FTP client. I created so far 10 pages and all were uploaded like this.

Mehr lesen
Gepostet am von Jacek A.
Incomedia
Eric C.
Incomedia

Hello Jacek,
could you please try regenerating the project files with CTRL + Preview and then uploading it into public_html, choosing the option to export all files, unless there is a specific reason you were using the FTP client, such as an error when trying to upload through the software?
I would like to confirm whether the export has impacted this.
I would recommend switching off the display_errors parameter and checking that your version of PHP is 8.2 before going ahead.
Thank you.

Mehr lesen
Gepostet am von Eric C.