WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Landing Pages
[resolved] Warning: Invalid argument supplied for foreach( (15 posts)

  1. aehageman
    Member
    Posted 1 year ago #

    here is a temporary screen shot of what I see.

    http://awesomescreenshot.com/045tyxu32

    here are the errors

    Warning: Invalid argument supplied for foreach() in /home/content/56/8132156/html/wp-content/plugins/landing-pages/modules/module.split-testing.php on line 82

    Warning: array_filter() expects parameter 1 to be array, null given in /home/content/56/8132156/html/wp-content/plugins/landing-pages/modules/module.split-testing.php on line 181

    Warning: Invalid argument supplied for foreach() in /home/content/56/8132156/html/wp-content/plugins/landing-pages/modules/module.split-testing.php on line 223

    I was attempting to create a group name.

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

    http://dogpen.com/?landing-page-group=name

    Fatal error: Call to undefined function of_get_option() in /home/content/56/8132156/html/wp-content/themes/xenastore/header.php on line 78

  2. aehageman
    Member
    Posted 1 year ago #

    update
    I changed the theme and the last error is now gone and the link works.

    http://dogpen.com/?landing-page-group=name

    Fatal error: Call to undefined function of_get_option() in /home/content/56/8132156/html/wp-content/themes/xenastore/header.php on line 78

    All other errors unchanged.

  3. aehageman
    Member
    Posted 1 year ago #

    I deleted the group.

    attempted to create a new one named 'fred'

    Here is the text from the following page.
    http://dogpen.com/wp-admin/edit.php?post_type=landing-page&page=lp_split_testing

    Warning: Invalid argument supplied for foreach() in /home/content/56/8132156/html/wp-content/plugins/landing-pages/modules/module.split-testing.php on line 82
    Manage Split Tests Create New Split Test

    Warning: array_filter() expects parameter 1 to be array, null given in /home/content/56/8132156/html/wp-content/plugins/landing-pages/modules/module.split-testing.php on line 181

    Permalink: http://dogpen.com/?landing-page-group=fred

    Warning: Invalid argument supplied for foreach() in /home/content/56/8132156/html/wp-content/plugins/landing-pages/modules/module.split-testing.php on line 223
    lander name impressions conversions conversion rate bounces bounce rate performance actions

  4. aehageman
    Member
    Posted 1 year ago #

    When I use manage split testing on landing page

    Warning: implode() [function.implode]: Invalid arguments passed in /home/content/56/8132156/html/wp-content/plugins/landing-pages/modules/module.split-testing-splash.php on line 172

    Warning: Invalid argument supplied for foreach() in /home/content/56/8132156/html/wp-content/plugins/landing-pages/modules/module.split-testing-splash.php on line 176

    Created new group: fred2!

  5. aehageman
    Member
    Posted 1 year ago #

    If you are curious, I have installed this on two different hosting accounts. the second install is a fresh up to date WP install.

    still having issues.

  6. David Wells
    Member
    Plugin Author

    Posted 1 year ago #

    Hey aehageman,

    Do you have wp_debug defined as true?

    Can you try to use without the debug on?

    You shouldn't see these error messages with wp_debug False http://codex.wordpress.org/WP_DEBUG

    -David

  7. aehageman
    Member
    Posted 1 year ago #

    debug is/was set to false.

    define('WP_DEBUG', false);

  8. David Wells
    Member
    Plugin Author

    Posted 1 year ago #

    Hmmm that odd then.

    WordPress shouldn't throw any php errors if debug is set to false.

    The PHP warnings would only throw if debug was set to true. Also the PHP warning shouldn't cause the functionality to break, fatal errors would do that.

    Off the top of my head...This might be related to your permalink structure. We designed the plugin group urls to work with /%postname%/ permalink structures.

    To troubleshoot this we might need access to the backend of your site to see exactly what is happening as I'm unable to recreate the problem. Can you head here: http://plugins.inboundnow.com/advanced-support/ and fill in a ticket?

    Thanks!
    -David

  9. Hudson Atwell
    Member
    Plugin Author

    Posted 1 year ago #

    Hey aehageman

    I've found what was causing a couple of these issues and corrected them, but am still moving through this thread...

    What caused the errors from the first two posts was the creation of a Split Testing Group without adding landing pages to it.

    I added a restriction to not attempt to create a group if no landers are included.

    Still looking into the other issues.

    [edit] I added in a fix for the module.split-testing-splash.php issue too. If I didn't select any groups while saving it would throw the error. Now it will ignore the rest of the code if no group ids are selected when saving. About to increment version.

    Hey David,

    On some wordpress installs on PHP errors still throw even if WP_DEBUG is not enabled. It was this way on a couple of my shared hosts. It's even that way now on my semi-dedicated host. Debug is off (just checked) but I was able to get the errors to throw.

  10. aehageman
    Member
    Posted 1 year ago #

    I thought that might have been the cause.
    Since I seem to have broke the first two tries.

    Third try ended sooner than the first two.

    I started with a fresh install.
    installed
    A/B Theme Testing Plugin
    Version 1.0.2

    Then I installed
    Landing Pages
    Version 1.0.3.6
    This is what happened.

    Downloading install package from http://downloads.wordpress.org/plugin/landing-pages.zip…

    Unpacking the package…

    Could not copy file. /home/content/56/8132156/html/b/AMIFREETOGO.COM/wp-content/upgrade/landing-pages1.tmp/landing-pages/css/admin-style.css

    Return to Plugin Installer

    Thank you for creating with WordPress.

    Get Version 3.5.1

    I plan to try again on another install and only install this plugin.

  11. aehageman
    Member
    Posted 1 year ago #

    deactivated A/B Theme Testing Plugin

    new install was not up to date, so updated wordpress

    reinstalled your plugin and the installation went fine.

    going to your site to watch the videos again before I continue, so I go in order.

    thanks

  12. aehageman
    Member
    Posted 1 year ago #

    http://amifreetogo.com/?landing-page-group=free-to-go-01

    {“10″:{“id”:”10″,”status”:”active”},”12″:{“id”:12,”status”:”active”}}

    everything is working without errors until I attempt to visit the group permalink.

    http://amifreetogo.com/?landing-page-group=free-to-go-01

    I can move to the ticket area if you like, but I believe the most recent update fixed the problem I was creating by starting with groups and not landing pages.

    Thanks so far for the help

  13. Hudson Atwell
    Member
    Plugin Author

    Posted 1 year ago #

    The permalink structure for the group has to be http://www.site.com/slug/permalink-name in order to work as the system stands.

    eg, this works: http://amifreetogo.com/group/free-to-go-01

    It's because of the way we handle redirects via .htaccess.

    We may can find a solution though if you're wanting to keep this permalink type.

    It might take a couple of days though and there's no guarantee.

  14. aehageman
    Member
    Posted 1 year ago #

    I changed the permalink as you suggested, but did not realize the link in the split test area had changed to the correct link.

    Everything is working now.

    I expected this plugin to be awesome, but did not expect the same from the support.

    what an unexpected surprise!

    Thanks

    Alan

  15. David Wells
    Member
    Plugin Author

    Posted 1 year ago #

    Glad we could help Alan!

    Tell your friends =)

    Let us know if you have any other issues/feature requests. We are always open to suggestions.

    -David

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.