Community Forums › Forums › Archived Forums › General Discussion › call_user_func_array error in agencypress pro theme
- This topic has 12 replies, 2 voices, and was last updated 9 years, 9 months ago by Anita.
-
AuthorPosts
-
July 28, 2014 at 7:42 am #116058gswartzMember
On our inside pages we're getting the error message -
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'genesis_after_entry_widget_area' not found or invalid function name in /home/gabrielacoldea/public_html/wp-includes/plugin.php on line 470
However our front page is fine. Any ideas what might be causing this? Thanks.
http://www.arch360group.com/clients/July 28, 2014 at 9:51 am #116086AnitaKeymasterLook at a couple things for me -
1) Open up your widgets. Do you see one that says "After Entry". Yes/No
2) Then open up your Functions.php file and see if you have this towards the bottom. Yes/No
genesis_register_sidebar( array( 'id' => 'after-entry', 'name' => __( 'After Entry', 'agentpress' ), 'description' => __( 'This is the after entry widget area.', 'agentpress' ), ) );
Tell me if yours says the same exact thing. I just installed/activated this and I am not getting that error.
Love coffee, chocolate and my Bella!
July 28, 2014 at 9:54 am #116088gswartzMember1) No
2) NoJuly 28, 2014 at 9:59 am #116093AnitaKeymasterAre you customizing this yourself? Did you hire someone? If you don't have those in there, you should log in and download a new copy of the theme.
Love coffee, chocolate and my Bella!
July 28, 2014 at 10:00 am #116094gswartzMemberInteresting. I asked the dev if she edited the functions file and she said no so I'm not sure why it wouldn't be in there. I'll redownload it and give it another try. Thanks!
July 28, 2014 at 10:01 am #116095AnitaKeymasterIf you already have the original zip file, just unzip it to your desktop - and check those files.
Love coffee, chocolate and my Bella!
July 28, 2014 at 10:03 am #116096gswartzMemberI just redownloaded it, opened functions.php and the code you show is not in there. Are we talking about the same theme? I misspoke originally, not agencypress but agentpress pro.
I do see this...
//* Add support for after entry widget
add_theme_support( 'genesis-after-entry-widget-area' );//* Relocate after entry widget
remove_action( 'genesis_after_entry', 'genesis_after_entry_widget_area' );
add_action( 'genesis_after_entry', 'genesis_after_entry_widget_area', 5 );But it's the only after entry code I see in the functions file.
July 28, 2014 at 10:32 am #116102AnitaKeymasterAhhh hold on. I thought you wrote AgentpressPro. My mistake, I'm sorry. But even so, the functions.php file in Agency Pro does not include an After Entry Widget area. Did your developer try to add that in there?
Agency Pro only has this for registered widget areas:
//* Register widget areas genesis_register_sidebar( array( 'id' => 'home-top', 'name' => __( 'Home Top', 'agency' ), 'description' => __( 'This is the top section of the homepage.', 'agency' ), ) ); genesis_register_sidebar( array( 'id' => 'home-middle', 'name' => __( 'Home Middle', 'agency' ), 'description' => __( 'This is the middle section of the homepage.', 'agency' ), ) ); genesis_register_sidebar( array( 'id' => 'home-bottom', 'name' => __( 'Home Bottom', 'agency' ), 'description' => __( 'This is the bottom section of the homepage.', 'agency' ), ) );
The error means that it's trying to locate an After Entry widget area that is not coded in that theme.
Love coffee, chocolate and my Bella!
July 28, 2014 at 10:35 am #116104gswartzMemberNo, in the subject I originally said AgencyPress Pro but I mistyped. The theme we're using is AgentPress Pro. That's what I was trying to clear up in my last post.
July 28, 2014 at 10:38 am #116105AnitaKeymasterSo are you using AgentPress or AgencyPro? Because I get the error in AgencyPro and not Agentpress.
Love coffee, chocolate and my Bella!
July 28, 2014 at 10:40 am #116106AnitaKeymasterYour style sheet says AgentPress. I don't get that error in AgentPress.
Love coffee, chocolate and my Bella!
July 28, 2014 at 10:42 am #116107gswartzMemberYes, we're using AgentPress Pro.
July 28, 2014 at 11:01 am #116110AnitaKeymasterAt this point, I would put in a support ticket with the Help Desk because if you downloaded a fresh copy and you are getting that error, I don't know what else to tell you.
Love coffee, chocolate and my Bella!
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.