• Resolved creeser

    (@creeser)


    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

    (@talextech)

    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

    (@creeser)

    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.