• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

I can't log into my dashboard after upgrading to WordPress 4.6

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › I can't log into my dashboard after upgrading to WordPress 4.6

This topic is: not resolved

Tagged: error, php

  • This topic has 8 replies, 7 voices, and was last updated 5 years, 8 months ago by Ted.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • August 17, 2016 at 7:57 pm #191494
    pinar
    Member

    Today 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 #191496
    pinar
    Member

    Never 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.php

    August 18, 2016 at 1:23 pm #191551
    Andrea Rennick
    Member

    The 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:

    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 #191586
    Colinz
    Participant

    Thanks 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 #191614
    pamelamaureen
    Member

    Hi,

    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 #191645
    Derek
    Member

    You 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 #191789
    Ted
    Participant

    Hi!

    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 #192140
    shooni
    Participant

    Hi
    I have the same issue too

    August 27, 2016 at 12:10 pm #192144
    Ted
    Participant

    Hi 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.

    🙂

  • Author
    Posts
Viewing 9 posts - 1 through 9 (of 9 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2022 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble