Support » Fixing WordPress » PHP Error – Constant ABSPATH

  • Hi there,

    Hope you guys can help me out with this problem.
    When I am on my website sometimes I get a blank page with this error message:

    PHP Notice: Constant ABSPATH already defined in /public_html/wp-load.php on line 22

    Does anybody know what triggers this error?

    Thank you in advance.

    URL: http://ikpca.co.kr/

    • This topic was modified 3 years, 10 months ago by fede023.
Viewing 1 replies (of 1 total)
  • Hi,

    It sounds like another plugin or theme might be trying to define ABSPATH again.

    Or maybe ABSPATH is being defined again in wp-config.php

    Have a look in your wp-config.php for anything that might say

    define('ABSPATH', 'some path');

    If it’s there, try removing it or change it so it looks like:

    if (!defined('ABSPATH') {
    define('ABSPATH', 'some path');
    }

    if it’s not there, then try changing theme or disabling plugins to see if the problem goes away.

Viewing 1 replies (of 1 total)
  • The topic ‘PHP Error – Constant ABSPATH’ is closed to new replies.