Title: Error PHP in wp-settings.php
Last modified: October 21, 2020

---

# Error PHP in wp-settings.php

 *  [milatovskaja](https://wordpress.org/support/users/milatovskaja/)
 * (@milatovskaja)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/error-php-in-wp-settings-php/)
 * Hello.
    I noticed one bug. [http://php-error.na4u.ru/wp-settings.php](http://php-error.na4u.ru/wp-settings.php)
   WordPress just installed, there are no changes to theme or kernel files. How 
   to vaporize it? Installed lates WordPress 5.5.1 and php version 7.4
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-php-in-wp-settings-php%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 8 replies - 1 through 8 (of 8 total)

 *  [a2hostingrj](https://wordpress.org/support/users/a2hostingrj/)
 * (@a2hostingrj)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/error-php-in-wp-settings-php/#post-13562833)
 * ABSPATH is defined in the file wp-config.php. Can you post the last few lines
   of wp-config.php?
 * I also suggest to contact your hosting tech support and ask them to verify that
   PHP is operating correctly.
 *  Thread Starter [milatovskaja](https://wordpress.org/support/users/milatovskaja/)
 * (@milatovskaja)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/error-php-in-wp-settings-php/#post-13563006)
 * >  ABSPATH is defined in the file wp-config.php. Can you post the last few lines
   > of wp-config.php?
 *     ```
       /* That's all, stop editing! Happy publishing. */
   
       /** Absolute path to the WordPress directory. */
       if ( ! defined( 'ABSPATH' ) ) {
       	define( 'ABSPATH', __DIR__ . '/' );
       }
   
       /** Sets up WordPress vars and included files. */
       require_once ABSPATH . 'wp-settings.php';
       ```
   
 * >  I also suggest to contact your hosting tech support and ask them to verify
   > that PHP is operating correctly.
 * …suspect this is a problem in wordpress files.
    I tried on different hosting,
   switched php versions 7.4 to 7.2, everywhere, when accessing wp-settings.hph 
   from address bar – this error occurs. Haven’t tried on local machine only. You
   not have this problem when open yousite.com/wp-settings.php?
    -  This reply was modified 5 years, 7 months ago by [milatovskaja](https://wordpress.org/support/users/milatovskaja/).
    -  This reply was modified 5 years, 7 months ago by [milatovskaja](https://wordpress.org/support/users/milatovskaja/).
 *  Thread Starter [milatovskaja](https://wordpress.org/support/users/milatovskaja/)
 * (@milatovskaja)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/error-php-in-wp-settings-php/#post-13563967)
 * …just checked on local server, same error. work on PHP7.4.11
    [https://i.ibb.co/bvMgrj6/image.png](https://i.ibb.co/bvMgrj6/image.png)
   if this is a problem in PHP, then what needs to be configured to solve it? Any
   ideas?
 *  [a2hostingrj](https://wordpress.org/support/users/a2hostingrj/)
 * (@a2hostingrj)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/error-php-in-wp-settings-php/#post-13564493)
 * >  You not have this problem when open yousite.com/wp-settings.php?
 * No one is supposed to access that URL (it loads blank). There might be a couple
   of things such as:
 * -Issues with PHP upgrade
    -htaccess setting a different version of PHP -host 
   using a different version of PHP on your site -using an old version of php
 *  Thread Starter [milatovskaja](https://wordpress.org/support/users/milatovskaja/)
 * (@milatovskaja)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/error-php-in-wp-settings-php/#post-13564517)
 * On web srver i try change php 7.4, 7.2, 5.6.
    Htaccess – defoult wordprees. On
   local machine i installed xampp with php 7.4. Everywhere there is a mistake, 
   i don’t think that in all cases php is to blame. Is it really only one i have
   such a problem?
 *  [a2hostingrj](https://wordpress.org/support/users/a2hostingrj/)
 * (@a2hostingrj)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/error-php-in-wp-settings-php/#post-13567808)
 * >  On local machine i installed xampp with php 7.4.
 * What is the version of WordPress?
 *  Thread Starter [milatovskaja](https://wordpress.org/support/users/milatovskaja/)
 * (@milatovskaja)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/error-php-in-wp-settings-php/#post-13567981)
 * >  What is the version of WordPress?
 * latest version 5.5.1
 *  [cyunicorn](https://wordpress.org/support/users/cyunicorn/)
 * (@cyunicorn)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/error-php-in-wp-settings-php/#post-14175598)
 * I’m having a similar issue in wp-settings on all of my websites, including a 
   fresh install. Were you able to figure out the cause?

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Error PHP in wp-settings.php’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 8 replies
 * 3 participants
 * Last reply from: [cyunicorn](https://wordpress.org/support/users/cyunicorn/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/error-php-in-wp-settings-php/#post-14175598)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
