• Resolved BackpackersUnion

    (@backpackersunion)


    Hi Jeff,

    I’ve been frequently seeing this error in my Logs and I wasn’t sure if there’s an easy fix? The plugin still seems to be working great.

    PHP Warning: extract() expects parameter 1 to be array, boolean given in /nas/content/live/username/wp-content/plugins/ga-google-analytics/ga-google-analytics.php on line 54

    Hope you’re are doing well and thanks for everything!

    Regards,
    Carl

    Detials: Running 2014 theme, with up-to-day WP and BP

    https://www.ads-software.com/plugins/ga-google-analytics/

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Jeff Starr

    (@specialk)

    Hi Carl,

    Thanks for reporting this, it looks like that warning is happening when gap_options is not available in the database.. that is, when get_option() returns false:

    https://codex.www.ads-software.com/Function_Reference/get_option

    Can you verify whether or not gap_options exists in your database?

    Thread Starter BackpackersUnion

    (@backpackersunion)

    Thanks for the quick response!

    I’m not very well versed when it comes to working with the DB, so I did a search through the DB for gap_options and returned 4 results referencing it.

    Is there a better way to properly confirm gap_options is where it needs to be?

    Sorry for the learning curve on this one.

    Plugin Author Jeff Starr

    (@specialk)

    Sounds correct, can you verify that gap_options exists in the WP options table, which by default is named wp_options (may be different if you are using a custom db prefix).

    Thread Starter BackpackersUnion

    (@backpackersunion)

    It looks like gap_options is present in the wp_options table.

    The search populated 1 gap_options result within the wp_options table, followed by the GA tracking code and other "gap_ " related code.

    Does this sound about right?

    Plugin Author Jeff Starr

    (@specialk)

    Yep that sounds correct. So not sure why the extract function would throw that warning.. maybe are you running WP Multisite?

    Thread Starter BackpackersUnion

    (@backpackersunion)

    You are correct, it is a Multisite install with “GA Google Analytics” Network Activated. Should I deactivate network-wide and then activate individually?

    Plugin Author Jeff Starr

    (@specialk)

    Yes that would be a good call.. let me know if that resolves the PHP warning..

    Thread Starter BackpackersUnion

    (@backpackersunion)

    I just checked the client IP Address associate with the Error and it looks like it came from China, possibly a Baidu search engine spider: 180.76.15.145 (The Chinese search engine I believe).

    Is it possible the crawler was trying to extract data from the GA code and asked for an incorrect option? I’m 90% guessing, but figured it was worth an ask.

    Thread Starter BackpackersUnion

    (@backpackersunion)

    Sorry, I hadn’t refreshed the page to read your last comment. I will do!

    Thanks for sticking with me on this one ?? !

    Plugin Author Jeff Starr

    (@specialk)

    Not sure.. but you had mentioned “frequently seeing this error in my Logs”, so unless that IP/request is associated with the all of the many warnings that you are seeing, chances are it’s a Multisite issue.

    Thread Starter BackpackersUnion

    (@backpackersunion)

    Good point! It could take me a few days to make the changes and watch the logs for the error, so I’ll mark this resolved for now. If it ends up not solving the Error I’ll just open a new thread.

    Thanks again for everything, Jeff!

    All the best,
    Carl

    Plugin Author Jeff Starr

    (@specialk)

    My pleasure, Carl – Good luck!

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Error Log’ is closed to new replies.