WordPress.org

Ready to get started?Download WordPress

Forums

Page Builder by SiteOrigin
[resolved] PHP Warnings (4 posts)

  1. Andrés Villarreal
    Member
    Posted 8 months ago #

    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/

  2. RonDsy
    Blocked
    Posted 8 months ago #

    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.

  3. Greg Priday
    Member
    Plugin Author

    Posted 8 months ago #

    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.

  4. Andrés Villarreal
    Member
    Posted 8 months ago #

    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.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.