Title: Fatal PHP Error?
Last modified: August 4, 2023

---

# Fatal PHP Error?

 *  Resolved [creeser](https://wordpress.org/support/users/creeser/)
 * (@creeser)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/fatal-php-error-34/)
 * Hi there, I’m getting a php error in my server logs. It doesn’t seem to be affecting
   this plugin but I was curious if this is a known issue. This is the error:
 * PHP Fatal error:  Uncaught Error: Call to a member function admin_url() on null
   in /var/app/current/wp-content/plugins/eps-301-redirects/plugin.php:320
   Stack
   trace: 0 /var/app/current/wp/wp-includes/class-wp-hook.php(308): EPS_Redirects_Plugin::
   plugin_resources(”) 1 /var/app/current/wp/wp-includes/class-wp-hook.php(332):
   WP_Hook->apply_filters(NULL, Array) 2 /var/app/current/wp/wp-includes/plugin.
   php(517): WP_Hook->do_action(Array) 3 /var/app/current/wp/wp-settings.php(617):
   do_action(‘init’) 4 /var/app/current/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(
   1349): require(‘/var/app/curren…’) 5 /var/app/current/vendor/wp-cli/wp-cli/php/
   WP_CLI/Runner.php(1267): WP_CLI\Runner->load_wordpress() 6 /var/app/current/vendor/
   wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(28): WP_CLI\Runner->start()
   7 /var/app/current/vendor/wp-cli/wp-cli/php/bootstrap.php(83): WP_CLI\Bootstrap\
   LaunchRunner->process(Object(WP_CLI\Bootstrap\BootstrapState)) 8 /var/app/current/
   vendor/wp-cli/wp-cli/php/wp-cli.php(32): WP_CLI\bootstrap() 9 /var/app/current/
   vendor/wp-cli/wp-cli/php/boot-fs.php(17): require_once(‘/var/app/curren…’) 10{
   main}
 * Thank you for any insight you can provide!

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Alexandru Tapuleasa](https://wordpress.org/support/users/talextech/)
 * (@talextech)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/fatal-php-error-34/#post-16947571)
 * Hi,
 * We haven’t had this reported before so I don’t know 🙁
 * It seems the issue comes up when WordPress get’s loaded via CLI by some plugin
   so you would not see it when opening wp-admin or the the website in the browser
   🙁
 * I’m not sure why it’s coming up though. Maybe whatever is calling it is selectively
   only running some specific hooks and some of the stuff needed by 301 Redirects
   does not get loaded.
 *  Thread Starter [creeser](https://wordpress.org/support/users/creeser/)
 * (@creeser)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/fatal-php-error-34/#post-16947575)
 * This gives me a direction to start looking. Thank you for the reply!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Fatal PHP Error?’ is closed to new replies.

 * ![](https://ps.w.org/eps-301-redirects/assets/icon-256x256.png?rev=2413221)
 * [301 Redirects - Redirect Manager](https://wordpress.org/plugins/eps-301-redirects/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/eps-301-redirects/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/eps-301-redirects/)
 * [Active Topics](https://wordpress.org/support/plugin/eps-301-redirects/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/eps-301-redirects/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/eps-301-redirects/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [creeser](https://wordpress.org/support/users/creeser/)
 * Last activity: [2 years, 10 months ago](https://wordpress.org/support/topic/fatal-php-error-34/#post-16947575)
 * Status: resolved