Community Forums › Forums › Archived Forums › General Discussion › Executive Pro
Tagged: dashboard, wordpress themes
- This topic has 14 replies, 4 voices, and was last updated 7 years, 3 months ago by
Janiani.
-
AuthorPosts
-
August 17, 2016 at 7:28 pm #191491
Janiani
MemberI 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.comAugust 17, 2016 at 7:54 pm #191493danieray
MemberI 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 #191498danieray
Memberjust 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 #191515Janiani
MemberThanks @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 #191566Janiani
MemberActually 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 #191597alyssaavant
MemberI 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 #191612Christoph
MemberHi @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.
August 19, 2016 at 10:08 am #191613Christoph
MemberHi,
yes, you have to edit those files through the cPanel FileManager or FTP (Filezilla).
August 19, 2016 at 11:34 am #191621Janiani
MemberThanks 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 #191627Christoph
MemberHi 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 )
August 20, 2016 at 3:09 am #191643Janiani
MemberHi 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 #191650Christoph
MemberIt 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
August 20, 2016 at 7:02 am #191653Janiani
MemberHi 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 #191665Christoph
MemberAugust 20, 2016 at 9:29 am #191667Janiani
MemberMany many thanks! 🙂
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.