PHP Fatal error: Uncaught Error: Call to undefined function wp_normalize_path()

Trying to resolve certain wordpress php errors after upgrade.


PHP Fatal error:  Uncaught Error: Call to undefined function wp_normalize_path() in (...)\wp-includes\plugin.php:654
Stack trace:
#0 (...)\wp-includes\plugin.php(755): plugin_basename('(...)\\wp...')
#1 (...)\wp-content\plugins\bbpress-genesis-extend\init.php(44): register_activation_hook('(...)\\wp...', Array)
#2 (...)\wp-content\plugins\bbpress-genesis-extend\init.php(89): bbpge_init->__construct()
#3 (...)\wp-settings.php(84): include('(...)\\wp...')
#4 (...)\wp-config.php(205): require_once('(...)\\wp...')
#5 (...)\wp-load.php(37): require_once('(...)\\wp...')
#6 (...)\wp-blog-header.php(13): require_once('(...)\\wp...')
#7 (...)\index.php(17): require((...)\\wp...')
Manoj ChackoAsked:
Who is Participating?
 
Manoj ChackoAuthor Commented:
also getting a lot of this
PHP Fatal error:  Uncaught Error: Call to undefined function get_header()

and

PHP Fatal error:  Allowed memory size of 1073741824 bytes exhausted (tried to allocate 262144 bytes) in (...)\wp-includes\class-wp-hook.php on line 286
[22-May-2018 16:30:28 UTC] PHP Fatal error:  Allowed memory size of 1073741824 bytes exhausted (tried to allocate 262144 bytes) in (...)\wp-includes\load.php on line 679
0
 
gr8gonzoConsultantCommented:
It's almost certainly a bug in the plugin.

The wp_normalize_path() function is defined in "functions.php", which is included on line 98 from wp-settings.php, but on line 84 of wp-settings.php, it will include the advanced cache code if there are any plugins that enable it.

In this case, it looks like bbpress-genesis-extend is called from within the advanced cache file, and it is initializing itself too early and tries to use the function that hasn't been defined yet.

It also looks like this plug-in hasn't been tested on recent versions of WP, so you might need to find another plugin that does something similar that is being actively maintained, because my guess is that the developer just stopped updating the plugin and doesn't care anymore if it breaks in newer versions of WP.
0
 
gr8gonzoConsultantCommented:
The get_header() error is the same root cause - it is being called too early, before it is being defined. Try disabling your bbpress-genesis-extend plugin.

The memory problem also sounds like a bad plugin. Wordpress should never be taking up 1 gig of memory, so you might have a plugin that is caught in an infinite loop or something.
0
 
Manoj ChackoAuthor Commented:
the get header was on this line
PHP Fatal error:  Uncaught Error: Call to undefined function get_header() in (...)\wp-includes\theme-compat\embed.php:13
Stack trace:
#0 {main}
  thrown in (...)\wp-includes\theme-compat\embed.php on line 13
0
 
Manoj ChackoAuthor Commented:
This is another Error I get a lot
All-in-One Event Calendar: ob_get_clean(): failed to delete buffer of zlib output compression (1) @ (...)\wp-content\plugins\all-in-one-event-calendar\lib\global-functions.php:38 #8
All-in-One Event Calendar: ob_get_clean(): failed to discard buffer of zlib output compression (1) @ (...)\wp-content\plugins\all-in-one-event-calendar\lib\global-functions.php:38 #8
0
All Courses

From novice to tech pro — start learning today.