Support Forum
I've updated the plugin from 6.2.1 to 6.3.0 but I'm running into trouble running the upgrade.
At first it looks like it's processing, then it shows
[code]Simple:Press is being upgraded to version 6.3.0 / build #15865
%%%marker%%%{"status":"success","type":"upgrade","section":15864,"response":"Build upgrade section 15864 executing. Status: success
","message":"","error":""}%%%marker%%%
If there are any messages shown below, please copy and include them on any support forum question you may have.
[/code]
then it finishes with
[code]Upgrade Aborted
current build: 15864
There has been a critical error on your website.
Learn more about debugging in WordPress.
If there are any messages shown below, please copy and include them on any support forum question you may have.[/code]
There are no messages shown below that line. Now the discussion forum is stuck in upgrade limbo. I'll roll back to the backup if I have to but if you have anything to suggest, I welcome it.
A Way with Words, North America's number one broadcast program about language!
Hello:
What's the error message in your WordPress debug.log file? If there isn't one, you can turn on the WordPress debug flags in wp-config, access the forum upgrade page again and see if one shows up. That will go a long way towards letting us know what the issue might be.
Thanks.
Here's the error from Wordpress, anonymized:
[code]PHP Fatal error: Uncaught Error: Call to a member function add_cap() on bool in /nas/content/live/SERVERNAME/wp-content/plugins/simplepress/sp-startup/install/sp-upgrade.php:396
Stack trace:
#0 /nas/content/live/SERVERNAME/wp-content/plugins/simplepress/sp-startup/admin/spa-admin-ajax-actions.php(271): require()
#1 /nas/content/live/SERVERNAME/wp-includes/class-wp-hook.php(288): spa_ajax_upgrade('')
#2 /nas/content/live/SERVERNAME/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters('', Array)
#3 /nas/content/live/SERVERNAME/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
#4 /nas/content/live/SERVERNAME/wp-admin/admin-ajax.php(175): do_action('wp_ajax_upgrade')
#5 {main}
thrown in /nas/content/live/SERVERNAME/wp-content/plugins/simplepress/sp-startup/install/sp-upgrade.php on line 396, referer: https://www.HOST.NAME/wp-admin/admin.php?page=simplepress%2Fsp-startup%2Fsp-load-install.php%5B/code%5D
A Way with Words, North America's number one broadcast program about language!
That's strange. I just re-ran the upgrade process a bunch of times, going from 6.2.1 to 6.3 and didn't encounter that error. Which means its likely something specific to your users.
How many WordPress admins do you have? Vs How many Simple:Press admins? Are all Simple:Press admins WordPress Admins as well?
Thanks.
There are six SP admins. Two of those are also WP admins. There is a third WP admin that is not an SP admin.
I see one oddity. My own SP admin account is listed as both an admin and a moderator in the "Manage Admins and Moderators" settings page in SP settings.
A Way with Words, North America's number one broadcast program about language!
By the way, I did try to run the upgrade with all other plugins disabled and it did not work that way, either.
A Way with Words, North America's number one broadcast program about language!
I don't think this is a case of a plugin conflict. I just tried doing the upgrade with the specific combination of admins you described and that succeeded.
One thing to try is to remove all Simple:Press admins except the main WP admin and try the upgrade. Then, add back in the other Simple:Press admins if the upgrade works. The upgrade code that is trying to run (based on the error message you posted) is related to upgrading some admin rights. So that's why I'm making this suggestion.
Other than that I'm fresh out of ideas. If the above idea doesn't work you'll likely need someone to log in to your site to take a closer look which is beyond the scope of what we can do in this community forum.
Thanks.
That worked! I removed all the other SP admins, upgraded the plugin, upgraded the DB, then all is well. Thanks for your help!
A Way with Words, North America's number one broadcast program about language!
I had a similar problem updating a site today, and this thread helped me find the problem. Maybe the information can help others?
I use the "iThemes Security" plug-in, and on the site in question it is actually the Pro version. One thing this plug-in does, is to change the number of the initial administrator account in WordPress, to make it more difficult to hack (since ?id=1 is not longer a valid user).
It appears that this had been done after Simple:Press had been setup, thus in the Simple:Press user table (sfmembers) the administrator account was actually in the table twice. Once with id=1, and once with another number. In the list of Admins, I could see id=1 as an administrator, and the second id listed at the bottom of the screen as an WP Admin without SP Admin rights. I couldn't remove that id=1 from the list using the "Remove All Capabilities from this Admin" button.
So I removed the id=1 record from the sfmembers table and then assigned the initial test posts in sfposts table to the new id number. After this the Upgrade worked.
1 Guest(s)