Link to home
Start Free TrialLog in
Avatar of Manoj Chacko
Manoj Chacko

asked on

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...')
Avatar of Manoj Chacko
Manoj Chacko

ASKER

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
ASKER CERTIFIED SOLUTION
Avatar of gr8gonzo
gr8gonzo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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
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
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
My first 2 comments address the issue. Unless anyone else objects, I'll auto-close this with those comments as the accepted answers.

@David - Memory errors don't cascade into other problems. If a memory limit is reached it stops the script in its tracks. I'd suggest never recommending an increase in PHP memory limits until it's been well-established that there is no memory leak. Increasing the memory limits to fix an out-of-memory issue when the process is already taking up 1 gigabyte of memory is usually not a good idea. In fact, a 1 gigabyte memory limit is pretty outrageous for a WP site, since it dramatically decreases the number of possible concurrent visitors AND is pretty slow (it takes a while to load up 1 gigabyte of data, even in memory).

NOTE: I just noticed the OP asked follow-up questions about another plugin, which really should have been covered by my earlier comments about plugins, but since I wasn't specific about it, I'd suggest that your comment be included in the solution.