WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Landing Pages
[resolved] Warning: Invalid argument supplied - Installed, Reinstalled, still error. (10 posts)

  1. johnsinsight
    Member
    Posted 8 months ago #

    Warning: Invalid argument supplied for foreach() in /home/content/28/11710228/html/wp-content/plugins/landing-pages/modules/module.global-settings.php on line 466

    This shows up on all the global settings pages.

    So some of the templates are not working very well w/ it - maybe that's the cause. And, the contact forms aren't working w/ it.

    http://wordpress.org/plugins/landing-pages/

  2. David Wells
    Member
    Plugin Author

    Posted 8 months ago #

    What contact form are you using?

  3. johnsinsight
    Member
    Posted 8 months ago #

    Hi, thanks!
    I'm using contact form 7, which works - BUT: The built-in contact form for 'wp landing pages' wasn't working... that's what sent me down this rabbit trail.
    I'm at http://www.treeservicehendersonville.com, that's the landing page...

  4. David Wells
    Member
    Plugin Author

    Posted 8 months ago #

    You have javascript errors breaking our forms from

    Uncaught TypeError: Cannot read property 'left' of undefined script.js?ver=3.7.1:316
    Uncaught TypeError: Cannot read property 'left' of undefined script.js?ver=3.7.1:316

    http://fullerlandandtree.com/wp-content/themes/FLTv17/script.js?ver=3.7.1

    Fix your theme and these issues will go away.

  5. johnsinsight
    Member
    Posted 8 months ago #

    I've installed it on other sites - both with theme 'twenty thirteen' theme, the basic one included in all wordpress installs... still the same error. they're all on the same server, perhaps - is there some php version or some such making the error?

  6. David Wells
    Member
    Plugin Author

    Posted 8 months ago #

    Send me links to the other sites and I will take a look

    The JS error is breaking our form ajax for sure on the link you posted above.

  7. johnsinsight
    Member
    Posted 8 months ago #

    Here is the other page: http://www.techguyasheville.com/go/testing/
    It appears to work.
    If you look at this screenshot, you'll see the preview doesn't load:
    https://dl.dropboxusercontent.com/u/21402424/Screenshot%202013-11-08%2010.16.41.png
    So I was under the impression the whole thing was not working.
    Although, you'll also see that on this site, the same error is there on this screenshot:
    https://dl.dropboxusercontent.com/u/21402424/Screenshot%202013-11-08%2010.41.45.png

  8. David Wells
    Member
    Plugin Author

    Posted 8 months ago #

    So the plugin works on http://www.techguyasheville.com then?

    The previews are pulled from mshots a wordpress 3rd party service. We dont have any conrtols over that.

  9. greg.siefert
    Member
    Posted 8 months ago #

    The error goes away when you change line 466 of module.global-settings.php
    From the original:
    foreach ($custom_fields as $field) {

    To this:
    foreach ((array)$custom_fields as $field) {

    DavidWells -- is this an appropriate change?

  10. David Wells
    Member
    Plugin Author

    Posted 8 months ago #

    The error:

    Warning: Invalid argument supplied for foreach() in /home/content/28/11710228/html/wp-content/plugins/landing-pages/modules/module.global-settings.php on line 466

    has been solved on our dev branch https://github.com/inboundnow/landing-pages/commit/305a0f2e64a1ba986c12e802807eedc1dbf587c0

    It will be released in a day or two

    Thanks for for suggestion greg!

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.