Community Forums › Forums › Archived Forums › General Discussion › I can't log into my dashboard after upgrading to WordPress 4.6
- This topic has 8 replies, 7 voices, and was last updated 8 years, 5 months ago by
Ted.
-
AuthorPosts
-
August 17, 2016 at 7:57 pm #191494
pinar
MemberToday I upgraded WordPress to 4.6 and I receive this error when I try to log into my dashboard:
Catchable fatal error: Argument 1 passed to Genesis_Admin_CPT_Archive_Settings::__construct() must be an instance of stdClass, instance of WP_Post_Type given, called in /home4/user/public_html/wp-content/themes/genesis/lib/admin/menu.php on line 121 and defined in /home4/user/public_html/wp-content/themes/genesis/lib/admin/cpt-archive-settings.php on line 38
There are no problems on other pages. Any idea how I can fix this?
August 17, 2016 at 8:21 pm #191496pinar
MemberNever mind, I found the solution. If you ever experience the same problem when you update your website to WordPress 4.6, just follow the instructions below:
(Thanks to Sal Ferrarello: Catchable fatal error: Argument 1 passed to Genesis_Admin_CPT_Archive_Settings)Step 1: Add This Code to the Bottom of functions.php
You or your developer should add this code to the bottom of the functions.php file of the Genesis theme. It is most likely located at wp-content/themes/genesis/functions.php./**
* Disable Genesis CPT Archives
*
* This is useful to temporarily disable the Genesis CPT Archives,
* if you can not log into your WordPress site
* after updating to WordPress 4.6.add_filter( 'genesis_cpt_archives_args', 'fe_modify_args_to_include_non_existant_name' );
function fe_modify_args_to_include_non_existant_name( $args ) {
$args['name'] = 'this-is-a-name-that-does-not-exist-resulting-in-no-matching-cpts';
return $args;
}Step 2: Log into Your WordPress Site
Step 3: Update to the Latest Version of Genesis
Step 4: Remove the Code we Added to functions.phpAugust 18, 2016 at 1:23 pm #191551Andrea Rennick
MemberThe error message you shared, appears when website is updated to latest 4.6 WordPress, but Genesis framework version is older than 2.3.1.
Please check if websites with error have latest Genesis framework version and if it's older one, replace it with a latest copy, downloaded from member's download area at:
http://my.studiopress.com/downloads/You can overwrite files either using FTP software, or if you still have admin area access, from theme section at WP Admin -> Appearance -> Themes (you'll delete old copy of Genesis first and then upload it again). Additionally, you can also contact your hosting support team with latest files, so they can perform the update, for you.
**forum signature**
If you need technical support for your theme please file a ticket.The forums are community based. Staff only monitors the forum for issues relating to the forum itself and to redirect users to where they need to go.
August 19, 2016 at 3:52 am #191586Colinz
ParticipantThanks Andrea
For some reason 2.1.3 didnt upgrade nor prompt for the update.
The above solution worked great. I renamed the themes/genesis to themes/genesis_old uploaded the new genesis 2.3.1, extracted and we're up and running again.
August 19, 2016 at 10:09 am #191614pamelamaureen
MemberHi,
Just wondering if I complete the update for genesis will I lose current content? Thanks for your help (I'm a beginner :))
August 20, 2016 at 4:50 am #191645Derek
MemberYou won't loose any settings or features because the framework is being updated and not your child theme.
~’;’~
August 22, 2016 at 10:26 am #191789Ted
ParticipantHi!
I've tried adding that code to the Genesis functions.php file and I still get the error message. Then I manually uploaded Genesis 2.3.1 and still get the error message.
Anything else I've missed?
Thanks so much!!
Ted
August 27, 2016 at 11:25 am #192140shooni
ParticipantHi
I have the same issue tooAugust 27, 2016 at 12:10 pm #192144Ted
ParticipantHi shooni,
My problem persisted because I was uploading files to the wrong host (long story). That's why the changes I was making didn't have any effect on the LIVE site. The easies solution is if you have FTP access to the site just manually upload the current version of Genesis (I think it's 2.3.1. Then everything should be fine.
🙂
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.