• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

Issue I randomly get "page not found" on a wordpress clean install

AIRE-B

New Pleskian
Hello,

I have install wordpress for a client with the default plesk installation tools, installation was fine but when i'm browsing the site i'm building sometimes i randomly get "page not found" OR the default plesk web server page, i refresh the page and the website comes back to life.

I have 60 others wordpress sites working fine on this server.

I have few deleted files in the web server configuration troubleshooter, i have try this Webserver Configurations Troubleshooter detects extra configuration or shows a false positive report on the Home page but it didnt' work.

Thank for your help.
 
I think it could be related to
A wordpress plugin. Do you know that a wordpress plugin can redirect to a 404 page, or change the status of the HTTP header?
The directives in Htaccess
A code in functions.php of the theme
Clear your cache.
 
Hello, thank you for your help.

I have already disable all plugins twice and i also reinstalled wordpress twice. I have clear the cache many times and as i said: it is a clean default plesk wordpress install twice reinstalled. The .htaccess has the default configuration.

Code:
# BEGIN WordPress
# Les directives (lignes) entre 'BEGIN WordPress' et 'END WordPress' sont
# généré dynamiquement, et ne doivent uniquement être modifiées via les filtres WordPress.
# Toute modification des directives entre ces marqueurs sera outrepassée.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress
 
In the access log of your domain, you should see if there is any 404 errors.
In fact, you can visit your website in a browser, then go to you log in plesk and check if you see a 200 or a 404.
If it is a 200, the problem may come from your computer.
If you have a mobile phone, disconnect from your Wifi, and check if you face the same issue from a different network. And if it works well from your cellphone, it means it works everytihng and the problem comes from your computer.

In can be a malware inside the code of an extension of chrome for instance. It may come from a software as well.

On the plesk install, it may come from fail2ban, the Web application firewall, The apache configuration if you modified it. The PHP handler. Try to allocate more PHP memory.
 
Last edited:
Well, the error logs doesn't show me relevant information. When i get a "not found" page or the plesk default page, nothing in the log !

Code:
[Sun May 10 16:32:40.101505 2020] [proxy_fcgi:error] [pid 26405:tid 140250328323840] [client 91.160.143.195:40744] AH01071: Got error 'PHP message: PHP Warning:  Use of undefined constant \xe2\x80\x98ALLOW_UNFILTERED_UPLOADS\xe2\x80\x99 - assumed '\xe2\x80\x98ALLOW_UNFILTERED_UPLOADS\xe2\x80\x99' (this will throw an Error in a future version of PHP) in /var/www/vhosts/XXX-YYY.fr/httpdocs/wp-config.php on line 73', referer: https://XXX-YYY.fr/wp-admin/admin.php?page=goodlayers_main_menu
[Sun May 10 16:32:41.597938 2020] [proxy_fcgi:error] [pid 26405:tid 140249095186176] [client 91.160.143.195:40758] AH01071: Got error 'PHP message: PHP Warning:  Use of undefined constant \xe2\x80\x98ALLOW_UNFILTERED_UPLOADS\xe2\x80\x99 - assumed '\xe2\x80\x98ALLOW_UNFILTERED_UPLOADS\xe2\x80\x99' (this will throw an Error in a future version of PHP) in /var/www/vhosts/XXX-YYY.fr/httpdocs/wp-config.php on line 73', referer: https://XXX-YYY.fr/wp-admin/admin.php?page=goodlayers_main_menu
[Sun May 10 16:32:43.740916 2020] [proxy_fcgi:error] [pid 26405:tid 140249111971584] [client 91.160.143.195:40782] AH01071: Got error 'PHP message: PHP Warning:  Use of undefined constant \xe2\x80\x98ALLOW_UNFILTERED_UPLOADS\xe2\x80\x99 - assumed '\xe2\x80\x98ALLOW_UNFILTERED_UPLOADS\xe2\x80\x99' (this will throw an Error in a future version of PHP) in /var/www/vhosts/XXX-YYY.fr/httpdocs/wp-config.php on line 73', referer: https://XXX-YYY.fr/wp-admin/admin.php?page=goodlayers_main_menu
[Sun May 10 16:32:47.609731 2020] [proxy_fcgi:error] [pid 26405:tid 140250311538432] [client 91.160.143.195:40802] AH01071: Got error 'PHP message: PHP Warning:  Use of undefined constant \xe2\x80\x98ALLOW_UNFILTERED_UPLOADS\xe2\x80\x99 - assumed '\xe2\x80\x98ALLOW_UNFILTERED_UPLOADS\xe2\x80\x99' (this will throw an Error in a future version of PHP) in /var/www/vhosts/XXX-YYY.fr/httpdocs/wp-config.php on line 73', referer: https://XXX-YYY.fr/wp-admin/admin.php?page=goodlayers_main_menu
[Sun May 10 16:32:52.759616 2020] [proxy_fcgi:error] [pid 26404:tid 140249606911744] [client 78.46.158.124:40824] AH01071: Got error 'PHP message: PHP Warning:  Use of undefined constant \xe2\x80\x98ALLOW_UNFILTERED_UPLOADS\xe2\x80\x99 - assumed '\xe2\x80\x98ALLOW_UNFILTERED_UPLOADS\xe2\x80\x99' (this will throw an Error in a future version of PHP) in /var/www/vhosts/XXX-YYY.fr/httpdocs/wp-config.php on line 73'

Same from the plesk domain logs panel:

No entry when the error appear.
 
It looks like something was added to your wp-config.php which is one of the most important file of wordpress installation
Compare your wp-config.php with the other ones.
I think a code has been at the end of your wp-config.php file that is not usual

A wordpress plugin may have added some code to your wp-config.php in the past.
 
Hello,

I'm now getting this error on all new wordpress installation.

Page not found OR plesk default page until i refresh the page.
 
You could try to create a database manually and install wordpress manually to see if the problem comes from Plesk.
 
Hello,

I have manually installed wordpress by importing the files from wordpress.org website and i create a new database and the same problem appears: page not found OR plesk default webpage until i refresh the page.

I have open a ticket with plesk support, i'll let you know.
 
Hello,

I have manually installed wordpress by importing the files from wordpress.org website and i create a new database and the same problem appears: page not found OR plesk default webpage until i refresh the page.

I have open a ticket with plesk support, i'll let you know.
In this case, what are the settings of the PHP handler? From Nginx ? from Apache? Is it the same when the PHP handler is on Apache or Nginx?

If you manually create a php info file, do you get the same issue where you refresh your phpinfo.php?

Any new extension in plesk that could cause this problem?

Are you sure there aren't any problem with 2 nameservers of your ISP. For instance, one nameserver of ISP may be off

Could it be related to HTTPS? or did you test with HTTP?
 
Last edited:
Just had the same issue, the Plesk WP Toolkit WP install didn't include the .htaccess file in the site root with # BEGIN WordPress etc. Adding this removed the 404s and restored the pages.
 
Back
Top