Tagged: Masonry Gallery, php, Shortcodes, update, wordpress
-
AuthorPosts
-
February 19, 2019 at 10:01 am #1068854
Hi there,
My site is currently returning the following on any page where a gallery was implemented:
Warning: count(): Parameter must be an array or an object that implements Countable in D:\home\site\wwwroot\wp-content\themes\enfold\config-templatebuilder\avia-shortcodes\av-helper-masonry.php on line 362
The site is running PHP 7.3 and thought since I recently updated the Enfold theme thought there could be a conflict between the two, however I’ve dropped the PHP down as far as 5.6 and no matter what the warning still persists. I updated Enfold directly through WordPress, and also am now seeing the following group of warnings on WordPress’ Updates screen as well:
Warning: Illegal string offset ‘http_code’ in D:\home\site\wwwroot\wp-content\themes\enfold\framework\php\auto-updates\class-envato-protected-api.php on line 307
Warning: Illegal string offset ‘api_error’ in D:\home\site\wwwroot\wp-content\themes\enfold\framework\php\auto-updates\class-envato-protected-api.php on line 307
Warning: Invalid argument supplied for foreach() in D:\home\site\wwwroot\wp-content\themes\enfold\framework\php\auto-updates\class-pixelentity-theme-update.php on line 49
Warning: Illegal string offset ‘http_code’ in D:\home\site\wwwroot\wp-content\themes\enfold\framework\php\auto-updates\class-envato-protected-api.php on line 307
Warning: Illegal string offset ‘api_error’ in D:\home\site\wwwroot\wp-content\themes\enfold\framework\php\auto-updates\class-envato-protected-api.php on line 307
Warning: Invalid argument supplied for foreach() in D:\home\site\wwwroot\wp-content\themes\enfold\framework\php\auto-updates\class-pixelentity-theme-update.php on line 49
Any ideas on how to remove the warnings, and what might have caused them in the first place?
Thanks in advance for your help!
Mark
February 19, 2019 at 1:17 pm #1068935Hey JoeSurf,
Please, add this code in your wp-config.php:
// Turn debugging on define('WP_DEBUG', true); // Tell WordPress to log everything to /wp-content/debug.log define('WP_DEBUG_LOG', true); // Turn off the display of error messages on your site define('WP_DEBUG_DISPLAY', false); // For good measure, you can also add the follow code, which will hide errors from being displayed on-screen @ini_set('display_errors', 0);
If you need further assistance please let us know.
Best regards,
VictoriaFebruary 20, 2019 at 6:56 am #1069281Thank you. That worked after also downgrading the site’s PHP from 7.3 to 7.1 and clearing the cache.
February 20, 2019 at 8:06 am #1069286 -
AuthorPosts
- The topic ‘Warning Issue Regarding "av-helper-masonry.php"’ is closed to new replies.