Skip to content
This repository has been archived by the owner on Mar 29, 2021. It is now read-only.

5.0.1 update breaks admin section with "Recoverable Fatal Error" #539

Closed
glorious1 opened this issue Jan 31, 2019 · 8 comments
Closed

5.0.1 update breaks admin section with "Recoverable Fatal Error" #539

glorious1 opened this issue Jan 31, 2019 · 8 comments

Comments

@glorious1
Copy link

glorious1 commented Jan 31, 2019

ABT Version: Attempted update to 5.0.1 from last version before 5.0

PHP Version: 7.2

Theme:

Plugin List:
Many plugins, I can't access wp-admin to see them now

Browser: Firefox 64.0.2

Expected behavior: Update ABT and go on about my business

Actual behavior: Now I can't access the admin pages at all; instead I get this error:
"Recoverable fatal error: Object of class WP_Post could not be converted to string in [ . . . ]/wp-content/plugins/academic-bloggers-toolkit/academic-bloggers-toolkit.php on line 73"

Console messages:

// Paste messages here
Request to access cookie or storage on “https://cdnsure.com/assets/style” was blocked because we are blocking all third-party storage access requests and content blocking is enabled.

I went into plugins via FTP and saw that ABT did update to 5.0.1. Considering deleting the plugin to see if I can regain admin access. Please advise.

@glorious1
Copy link
Author

glorious1 commented Jan 31, 2019

I changed the extension of academic-bloggers-toolkit.php and was able to regain admin access.

EDIT:
I then deactivated all plugins, changed the plugin file name back to *.php, and activated it. I again lost access to wp-admin.

@dsifford
Copy link
Owner

Looks like it has something to do with how I attempt to salvage user "custom CSS" by turfing it into the customizer.

I'm just gonna delete that and users who have custom CSS will just have to rewrite it. Not worth the effort to debug.

@dsifford
Copy link
Owner

Duplicate of #538

@dsifford dsifford marked this as a duplicate of #538 Jan 31, 2019
@glorious1
Copy link
Author

I think I do have custom css (probably why this bit me and not others). Would I be able to revert to the older version to copy out my css? Wouldn't be database problems?

@dsifford
Copy link
Owner

Not after you update unfortunately. The ABT custom CSS was added early in the life of the plugin and it's always been a mistake to have it. It was saved as part of the plugin options and those options get pruned/reset/adjusted on every update. CSS should go in the "customizer" or in a child theme.

@glorious1
Copy link
Author

Well, I was able to access the custom css from the plugin's settings when I reverted to 4.13.3. I deleted them from there and put them in the child theme's stylesheet as you suggested.

@dsifford
Copy link
Owner

Were you able to then update back to the latest version without any problems?

@glorious1
Copy link
Author

I was afraid to try, but since you asked, I went ahead, and had no problems. I guess deleting the css was the trick.

dsifford added a commit that referenced this issue Feb 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants