-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when running PHP via the command line: Call to a member function url() on a non-object #34
Comments
What version are you running? That error refers to a line of code that doesn't exist! |
Thanks for the plugin and reply John!
The latest from the WordPress directory: Version 2.3.11
Here's the line at that version: redirection/modules/wordpress.php Line 49 in e8201d3
Manually upgrading to 2.3.12 makes this exception get thrown instead when running via the command line:
Which is this line: https://github.com/johngodley/redirection/blob/2.3.12/modules/wordpress.php#L27 |
How are you running WordPress via the command line? The error isn't thrown when the plugin runs normally so something must be happening differently from the CLI |
It's CiviCRM scheduled jobs. When trying to run the scheduled job it throws the exception above. |
Same error here when running with wp-cli, trying to figure it out. And, no, I don't have Civi installed. |
Directly related to: wp-cli/wp-cli#2289 |
Adding |
@johngodley is this something you can fix? It's a shame to have to add |
Sorry for the length of time between replying. The code has changed significantly since this bug was raised and I don't think it applies any more. I'm closing it for now, but please reopen if its still a problem |
PHP Fatal error: Call to a member function url() on a non-object in /var/www/wp-content/plugins/redirection/modules/wordpress.php on line 49
I'm guessing this is something to do with other plugins on my install. CiviCRM leaps to mind :(
The text was updated successfully, but these errors were encountered: