• 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

Executive Pro

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 › Executive Pro

This topic is: resolved

Tagged: dashboard, wordpress themes

  • This topic has 14 replies, 4 voices, and was last updated 8 years, 8 months ago by Janiani.
Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • August 17, 2016 at 7:28 pm #191491
    Janiani
    Member

    I can't log into the dashboard of a site, I've hardly touched. The home page shows up fine, but when I try to login an error message flags up showing this:

    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 /home2/fusheva1/public_html/myneshealth.com/wp-content/themes/genesis/lib/admin/menu.php on line 122 and defined in /home2/fusheva1/public_html/myneshealth.com/wp-content/themes/genesis/lib/admin/cpt-archive-settings.php on line 38

    I cleared the cache too.

    Any thoughts?

    http://www.myneshealth.com
    August 17, 2016 at 7:54 pm #191493
    danieray
    Member

    I am having this same issue after updating to the latest version of WordPress. Not sure how to resolve this issue though.

    August 17, 2016 at 8:27 pm #191498
    danieray
    Member

    just found this post and it corrected the issue for me, hope it helps you too:

    Catchable fatal error: Argument 1 passed to Genesis_Admin_CPT_Archive_Settings

    August 18, 2016 at 2:47 am #191515
    Janiani
    Member

    Thanks @Danieray, really helpful to know where the issue lies.

    However, I can't get into the dashboard of this site, how did you manage it?

    Now that Genesis have tweaked something I'm getting a different error that says:

    Error establishing a database connection
    This either means that the username and password information in your wp-config.php file is incorrect or we can’t contact the database server at localhost. This could mean your host’s database server is down.

    Are you sure you have the correct username and password?
    Are you sure that you have typed the correct hostname?
    Are you sure that the database server is running?
    If you’re unsure what these terms mean you should probably contact your host. If you still need help you can always visit the WordPress Support Forums.

    I've gone over to Sal's site to ask for help. Thanks again for yours 🙂

    Jane

    August 18, 2016 at 5:49 pm #191566
    Janiani
    Member

    Actually that error message has gone and am back to the original 'Catchable' error. How did you get in do the changes, would I need to go into the cPanel through a programme like Filezilla?

    Many thanks.

    August 19, 2016 at 7:15 am #191597
    alyssaavant
    Member

    I just installed Executive Pro and I can no longer get into my dashboard or use the theme it says the theme is broken but this is the theme I want to use. Help!

    August 19, 2016 at 10:07 am #191612
    Christoph
    Member

    Hi @alyssasavant,

    please start your own topics.

    Your problem is most likely not related to this topic.

    Most likely something went wrong when the theme file was uploaded.
    Delete the theme / files from the server and install it again.

    If that doesn't work, please open a ticket with the official Studiopress support at my.studiopress.com/help.


    https://www.christophherr.com | Genesis Customizations | Buy me a coffee

    August 19, 2016 at 10:08 am #191613
    Christoph
    Member

    @janiani

    Hi,

    yes, you have to edit those files through the cPanel FileManager or FTP (Filezilla).


    https://www.christophherr.com | Genesis Customizations | Buy me a coffee

    August 19, 2016 at 11:34 am #191621
    Janiani
    Member

    Thanks Christoph...

    So I found the areas in functions-php to add the code, but am a tad nervous in doing it, lol, and my coder is on holiday, so I'm happy to do it provided I'm clear. If you'd be so kind, I've just one question?

    In STEP 1 it's recommended to add the recommended code AT THE END in the wp-content/themes/genesis/functions.php. file

    <b>Step 1: Add This Code to the Bottom of functions.php</b>

    Does it mean at the VERY END of the coding (shown here):

    <?php
    /*
    WARNING: This file is part of the core Genesis Framework. DO NOT edit
    this file under any circumstances. Please do all modifications
    in the form of a child theme.
    */

    /**
    * This file calls the init.php file, but only
    * if the child theme hasn't called it first.
    *
    * This method allows the child theme to load
    * the framework so it can use the framework
    * components immediately.
    *
    * This file is a core Genesis file and should not be edited.
    *
    * @category Genesis
    * @package Templates
    * @author StudioPress
    * @license GPL-2.0+
    * @link http://my.studiopress.com/themes/genesis/
    */

    require_once( dirname( __FILE__ ) . '/lib/init.php' );

    Does it mean after the */ (and before the last line starting with 'require') or AFTER?

    Many thanks.

    Jane

    August 19, 2016 at 3:44 pm #191627
    Christoph
    Member

    Hi Jane,

    that's the wrong file.

    You have to change the functions.php of your child theme, not of Genesis itself.

    The folder of your child them is probably called executive-pro ( /wp-content/themes/executive-pro )


    https://www.christophherr.com | Genesis Customizations | Buy me a coffee

    August 20, 2016 at 3:09 am #191643
    Janiani
    Member

    Hi Christoph

    Are you sure, because this was Sal Ferrarello's advice that you'll see in Step One above.

    I appreciate your help, but unless you had this happen and resolved it as you say, in which case I'll bow to your findings. Otherwise can I ask someone who's followed Sal's steps, did you make the adjustment in cpanel to Genesis or the Theme's functions-php?

    Many thanks.

    Jane

    August 20, 2016 at 6:51 am #191650
    Christoph
    Member

    It actually doesn't matter. It will work in both files.

    I guess Sal decided to use the genesis/functions.php to avoid having to deal with different child theme names and folders.

    It's fine to add the code to the genesis/functions.php


    https://www.christophherr.com | Genesis Customizations | Buy me a coffee

    August 20, 2016 at 7:02 am #191653
    Janiani
    Member

    Hi Christoph

    Thanks for explaining that, which makes complete sense now you've said 🙂

    So back to my earlier question, does the corrective code need to be placed after the very last line:

    require_once( dirname( __FILE__ ) . '/lib/init.php' );

    or the line above?

    August 20, 2016 at 9:20 am #191665
    Christoph
    Member

    Place it after.


    https://www.christophherr.com | Genesis Customizations | Buy me a coffee

    August 20, 2016 at 9:29 am #191667
    Janiani
    Member

    Many many thanks! 🙂

  • Author
    Posts
Viewing 15 posts - 1 through 15 (of 15 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

© 2025 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