• Hi! Before I say anything, I think this plugin is awesome.

    The only real problem I found is that, in some pages that are not using panels, I got the following PHP warnings:

    Warning: Illegal string offset 'grids' in /path-to-wordpress/wp-content/plugins/siteorigin-panels/siteorigin-panels.php on line 636
    
    Warning: Invalid argument supplied for foreach() in /path-to-wordpress/wp-content/plugins/siteorigin-panels/siteorigin-panels.php on line 636
    
    Warning: Illegal string offset 'widgets' in /path-to-wordpress/wp-content/plugins/siteorigin-panels/siteorigin-panels.php on line 644
    
    Warning: Invalid argument supplied for foreach() in /path-to-wordpress/wp-content/plugins/siteorigin-panels/siteorigin-panels.php on line 644
    
    Warning: Illegal string offset 'grids' in /path-to-wordpress/wp-content/plugins/siteorigin-panels/siteorigin-panels.php on line 466
    
    Warning: Invalid argument supplied for foreach() in /path-to-wordpress/wordpress/wp-content/plugins/siteorigin-panels/siteorigin-panels.php on line 466

    Maybe you’d want to consider checking if the array values are set before calling the foreach. I did that in my implementation, but it will break if I update the plugin again, and I really like to keep my plugins up to date.

    Thank you very much for your great work!

    http://wordpress.org/plugins/siteorigin-panels/

Viewing 3 replies - 1 through 3 (of 3 total)
  • First off, deactivate other plugins and switch to another template. This is not a known problem and seems to be impacting your environment only. There may be either a plugin conflict or a template issue. Please report your findings.

    Plugin Author Greg Priday

    (@gpriday)

    Hi there Andrés. I’ll harden Page Builder up against those warnings. I’m not entirely sure why they’re coming up for you, but it wouldn’t harm to add in some checks.

    Thread Starter Andrés Villarreal

    (@andrezrv)

    Hi Greg, thanks for your answer! It’s true, it surely have something to do with my environment, but adding checks for arrays never hurt anybody. Again, thanks a lot.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP Warnings’ is closed to new replies.