Archived

This topic is now archived and is closed to further replies.

  • 0

Resolved Use of undefined constant SECTION_ROOT


Question

Posted · Report post

After upgrading to 2.3.3 I now get error messages on every page (admin and frontend) that say:

Notice: Use of undefined constant SECTION_ROOT - assumed 'SECTION_ROOT' in [LOCAL_FILE_PATH]/production/wp-content/themes/[CHILD_THEME_DIR]/sections/nav_plus/section.php on line 28

Has anything changed that would create this problem? The actual line that it is referring to is a block of code that I used from a Pagelines example and looks like this:

self::$nav_url = SECTION_ROOT.'/nav';[/CODE]

It's never been changed but it looks like the [b]const[/b] SECTION_ROOT is no longer being defined?

Share this post


Link to post
Share on other sites

3 answers to this question

Posted · Report post

That worked.

Share this post


Link to post
Share on other sites

Posted · Report post

The topic was marked as resolved.

Share this post


Link to post
Share on other sites

Posted · Report post

We had to namespace the constants

Add PL_ in front

Share this post


Link to post
Share on other sites