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.ww.wp.xz.cn/Function_Reference/get_option
Can you verify whether or not gap_options exists in your database?
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.
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).
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?
Yep that sounds correct. So not sure why the extract function would throw that warning.. maybe are you running WP Multisite?
You are correct, it is a Multisite install with “GA Google Analytics” Network Activated. Should I deactivate network-wide and then activate individually?
Yes that would be a good call.. let me know if that resolves the PHP warning..
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.
Sorry, I hadn’t refreshed the page to read your last comment. I will do!
Thanks for sticking with me on this one 🙂 !
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.
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
My pleasure, Carl – Good luck!