Viewing 8 replies - 1 through 8 (of 8 total)
  • 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

    (@milatovskaja)

    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 4 years, 1 month ago by milatovskaja.
    • This reply was modified 4 years, 1 month ago by milatovskaja.
    Thread Starter milatovskaja

    (@milatovskaja)

    …just checked on local server, same error. work on PHP7.4.11
    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?

    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

    (@milatovskaja)

    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?

    On local machine i installed xampp with php 7.4.

    What is the version of WordPress?

    Thread Starter milatovskaja

    (@milatovskaja)

    What is the version of WordPress?

    latest version 5.5.1

    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.