Jump to content

Recommended Posts

suzyo    1
suzyo

Okay, so, this is a WP question of sorts, but it also applies to PL, because I think it's related to the Hooker. Undoubtedly my fault.

 

So, here goes: 

 

 

PHP Warning: call_user_func_array() [<a href='function.call-user-func-array'>function.call-user-func-array</a>]: First argument is expected to be a valid callback, 'google_leaderboard_ad' was given in /home1/suzytest/public_html/wp-includes/plugin.php on line 406

 

line 406

call_user_func_array($the_['function'], array_slice($args, 0, (int) $the_['accepted_args']));

 

after digging around, i found that it is calling 

 

wp-content/plugins/pagelines-customize/functions.php

 

*/

add_action('pagelines_inside_top_branding', 'google_leaderboard_ad');

 

 

i know that this is the problem, but when i try to remove the above i can't access site. 

 

which part of the above do i remove?

 

also, this is weird because i used hooker to put that in, and i used hooker to remove it. but, apparently, hooker did not remove it, although it seems as if it did on my admin.

 

from the codex: "It is also worth noting that you may need to prioritise the removal of the action to a hook that occurs after the action is added. You cannot successfully remove the action before it has been added."

 

apparently removing this action calls for more than just deleting that line in the customize/functions.php am i on the right track, and can you guide me through? thank you.

Share this post


Link to post
Share on other sites
suzyo    1
suzyo

forgot to add this:

 

when i removed "*/

add_action('pagelines_inside_top_branding', 'google_leaderboard_ad');

 

i got this:

 

PHP Fatal error: fatal flex scanner internal error--end of buffer missed in /home1

 

finally, i'm pretty sure that i didn't write "add_action" anywhere, since i never heard of it until today!

Share this post


Link to post
Share on other sites
Simon    247
Simon

pagelines-customize has nothing to do with the hooker plugin.

 

You can safely disable the customize plugin that will stop the framework from looking in the functions.php, or just delete the contents of the file.

Share this post


Link to post
Share on other sites
suzyo    1
suzyo

Hey, thanks for getting back so quickly, Simon! Please be gentle w me, I'm trying.

 

This shows the content of the file: http://imgur.com/xPgpK

 

I don't want to lose the customize plugin.  What part of the contents (show in the imgur file) shall I delete?

 

Thanks.

Share this post


Link to post
Share on other sites
Simon    247
Simon

remove add_action('pagelines_inside_top_branding', 'google_leaderboard_ad'); or place // in front of it.

Share this post


Link to post
Share on other sites
suzyo    1
suzyo

I just noticed your OMG avatar. Laughing my ass off.

Share this post


Link to post
Share on other sites
suzyo    1
suzyo

Yes, Simon, I did that, and got the fatal php error! (see my first post above)

Share this post


Link to post
Share on other sites
Simon    247
Simon

Then deactivate the customize plugin.

 

I have absolutely no idea what 'fatal flex scanner' is.

Share this post


Link to post
Share on other sites
Simon    247
Simon

Actually after some google, seems PHP will crash with this error if there is php comments that are left open:

 

/* this is open tag

* still a comment

*/ this is the close tag.

 

If any file is missing the close tag, php will crash.

Share this post


Link to post
Share on other sites
suzyo    1
suzyo

Yeah, but I actually did close that tag, still got the crash. Now I've deactivated the Customize plug in, and...BRB.

 

So, yeah, that error is gone. STILL have a freaking unbelievable 7 second load time on my empty site. 

 

I can delete Customize plugin and re-install, right? Thanks for all your help!

Share this post


Link to post
Share on other sites
Simon    247
Simon
 can delete Customize plugin and re-install, right? Thanks for all your help!

Yes you can.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Similar Content

    • webmktco
      By webmktco+
      I'm getting the following errors when trying to add hooks:

      Here's the debug info: http://www.stackdental.com/?pldebug=1
      Core, themes, and plugins are up to date.
       
       
       
    • art23130
      By art23130+
      We had a very nice shortcodes library and hooker in the previous version of the platform. But in the version 5 they are missing. 
      So are you going to improve it again in future or no they are not supported anymore? 
      and one more question, what do you suggest for sharing bar which we had in DMS2 ?
      Thanks for your effort 
    • dreamsight
      By dreamsight+
      We add phone number to the top right of sites using hooker (example http://hub.theasap.org.uk/) but it's not responsive. Is there a better way to add here, which would be responsive?
    • kellid
      By kellid
      Hello, 
      I'm in a dramatic situation.  I have a live site that is totally screwed up and I'm in desperate need to fix it asap.  The site was originally build with Pagelines but have made several upgrades through the years.  With the latest WP upgrade, somehow the action loop I was using on my homepage came through dramatically wrong and not sure how to fix the problem.  I have the Hooker plugin and in need of finding the action map to figure out where to implement the loop and fix the problem.  I found the action map plugin stored on an old hardrive but when activated, I got an error so I quickly deleted it.  I can't find a download or instructions on this anywhere, only broken links and no documentation.   
      Can you please direct me to the action map to use the hooker that I already have or show me the documentation to use this product?  
      Thank you
    • ipitts
      By ipitts+
      To whom it may concern:
      I am developing a website for a client using the PageLines DMS2 theme and am having an issue getting a custom jQuery function to work using your Hooker plugin. I have used Hooker to add HTML and PHP to the wp_head hook successfully, so I do not understand where the issue exists – I am using the pageslines_after_footer hook to place my jQuery at the bottom of the document (alongside the many other scripts that come with the theme and various other plugins). I checked the document HEAD section and know that jQuery is enabled, and after enabling my custom hook saw that my script was loaded into the footer (as hoped for), but it is not working.
      I am trying to make a simple, custom back-to-top button that appears after a user has scrolled the page a certain distance, as calculated in jQuery. After an hour, I decided to troubleshoot my script on a test WordPress site on my localhost (using jQuery version 1.11.3) and it works exactly as intended. I would like to avoid writing any code within the DMS2 theme files if possible.
      I have also tried the wp_head, wp_footer and pagelines_before_footer hooks to no avail. Am I using the wrong hook(s)? What else can I try?
      My code:
      HTML
      <a href="#"><div id="bttb-cont" style="">Hello</div></a>
       
      jQuery (within the Hooker plugin)
      <script type="text/javascript">
                      $(document).scroll(function() {
                                      var windowHeight = $(window).height() / 7;
                                      var scroll = $(window).scrollTop();
                                      
                                      if (scroll > windowHeight) {
                                                      $('#bttb-cont').fadeIn();
                                      } else {
                                                      $('#bttb-cont').fadeOut();
                                      };
                      });
      </script>
       
      As you can see, it is a very simple script.. Any help on this matter will be greatly appreciated.
       
×