Answered: How to resolve this errorQ2A 1.8.6

Post date: 2021-05-14 04:54:57
Views: 89

That will almost certainly be from a plugin or theme. Probably the easiest option is to try switching themes, or disable plugins one by one until the error goes away, then that's the one causing the problem. Look for uses of the count() function, you'll need to check that the variable is an array before calling it.

Finding the exact line causing the problem is more tricky due to how Q2A processes plugin code, but you can try uncommenting the line marked "to debug munged code" in either

  • qa-base.php, qa_load_override_files function
  • app/format.php, qa_load_theme_class function
When the page loads it will show the final PHP code used, and the error will be the line listed in your error (50 or 25).
Please click Here to read the full story.
 
Other Top and Latest Questions:
What will it take to get tech stocks rising again? An unemployment rate above 4%
Here's why FEMA has spent about $4 billion to help destroy flood-prone homes
China is still years behind the U.S. despite Huawei's breakthrough chips, Raimondo tells '60 Minutes'
83% of teenagers are already thinking about retirement — but many make this one mistake
Protein calories not adding up
Trump trial: Ex-National Enquirer publisher David Pecker is first prosecution witness to testify
Delta Air Lines gives staff another 5% raise, hikes starting wages to $19 an hour
Ex-JetBlue CEO Robin Hayes to run Airbus North America
Crypto prices gain to start the week following first Bitcoin halving since 2020
Cricket, a big business in India, brings star power to the U.S. with the country's first world cup