• Resolved FranciscoWP

    (@franciscowp)


    Hey guys. One of my blogs has recently been having a problem. The index just shows a filetree and the error.log shows this:

    [20-Jun-2018 11:40:28 Europe/Lisbon] PHP Notice: Use of undefined constant ABSPATH – assumed ‘ABSPATH’ in /home/ptfighte/public_html/lockdown/wp-settings.php on line 19

    [20-Jun-2018 11:40:28 Europe/Lisbon] PHP Warning: require(ABSPATHwp-includes/load.php): failed to open stream: No such file or directory in /home/ptfighte/public_html/lockdown/wp-settings.php on line 19

    [20-Jun-2018 11:40:28 Europe/Lisbon] PHP Warning: require(ABSPATHwp-includes/load.php): failed to open stream: No such file or directory in /home/ptfighte/public_html/lockdown/wp-settings.php on line 19

    [20-Jun-2018 11:40:28 Europe/Lisbon] PHP Fatal error: require(): Failed opening required ‘ABSPATHwp-includes/load.php’ (include_path=’.:/opt/alt/php56/usr/share/pear:/opt/alt/php56/usr/share/php’) in /home/ptfighte/public_html/lockdown/wp-settings.php on line 19

    My phpversion is 5.6, checked now on the cPanel. Also, my file structure is such that the blog is not on the root (public_html) but on a folder that is on the root. This has not been a problem for several years. Anyone know what might be going on?

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hello,

    I think it should be the ../wp-option.php instead of ../wp-settings.php

    I hope this helps.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    ABSPATH is defined in wp-config.php. What do the last few lines of wp-config.php look like?

    This is the sample file:

    /** Absolute path to the WordPress directory. */
    if ( !defined('ABSPATH') )
            define('ABSPATH', dirname(__FILE__) . '/');
    
    /** Sets up WordPress vars and included files. */
    require_once(ABSPATH . 'wp-settings.php');
    
    
    Thread Starter FranciscoWP

    (@franciscowp)

    Dear Steve,
    it looks like this:

    /** Absolute path to the WordPress directory. */
    if ( !defined('ABSPATH') )
    	define('ABSPATH', dirname(__FILE__) . '/');
    
    /** Sets up WordPress vars and included files. */
    require_once(ABSPATH . 'wp-settings.php');
    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Please ask your host to verify that PHP is operating correctly.

    Thread Starter FranciscoWP

    (@franciscowp)

    Dear Steve,
    I did just that and they fixed the problem. Glad it wasn’t wordpress 🙂 Thanks!

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Glad you got it fixed!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘PHP Fatal error (regarding ABSPATH)’ is closed to new replies.