Skip to content
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

Ruins old API access #45

Open
natanavra opened this issue May 11, 2017 · 2 comments
Open

Ruins old API access #45

natanavra opened this issue May 11, 2017 · 2 comments

Comments

@natanavra
Copy link

natanavra commented May 11, 2017

Old API becomes unusable because of this plugin.

Error received: 
<div id="current-theme" class="has-screenshot">
    <br />
    <b>Fatal error</b>: Uncaught Error: Call to a member function get_page_permastruct() on null in /var/www/html/wp/wp-includes/link-template.php:357
    Stack trace: #0 /var/www/html/wp/wp-includes/link-template.php(320): _get_page_link(Object(WP_Post), false, false) #1
    /var/www/html/wp/wp-includes/link-template.php(144): get_page_link(Object(WP_Post), false, false) #2 /var/www/html/wp/wp-content/plugins/woocommerce/includes/wc-page-functions.php(72):
    get_permalink(Object(WP_Post)) #3 /var/www/html/wp/wp-content/plugins/woocommerce/includes/wc-account-functions.php(30):
    wc_get_page_permalink('myaccount') #4 /var/www/html/wp/wp-includes/class-wp-hook.php(300): wc_lostpassword_url('https://sweet21...')
BrianHenryIE added a commit to BrianHenryIE/Basic-Auth that referenced this issue Aug 9, 2017
Sometimes, with an incorrect username and password (or using email address rather than username, which made `wp_authenticate_username_password` error) when `$user = wp_authenticate( $username, $password );` errored, it would call `$wp_rewrite->get_page_permastruct();` before `$wp_rewrite` was initialized, returning a 500 server error. In my case, this would happen when I enabled the SkyVerge WooCommerce Print Invoices/Packing Lists plugin.
BrianHenryIE added a commit to BrianHenryIE/Basic-Auth that referenced this issue Aug 9, 2017
@chrishaff
Copy link

Dumb question: What's the old API?

@natanavra
Copy link
Author

Sorry, this thing is wayyy to old and I don't remember.
Apparently I didn't know how to write issues back then :-D

martin-rueegg added a commit to metaworx/Basic-Auth that referenced this issue Apr 14, 2020
Merge pull request #2 from BrianHenryIE/wp_authenticate-bugfix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants