• Resolved jombie

    (@jombie)


    Getting an invalid arg foreach() error on line 193
    google-maps-builder/public/class-wordpress-google-maps-engine.php

    Otherwise everything works as advertised.
    I’m a little concerned with all the compatibility issues listed here as I’m using WooCommerce AND Contact7!

    I have adjusted the ‘Menu_Position’ in the settings to several different values and tried it with and without a Google Places API key.

    Error in this class. Don’t see the argument here so not sure what gives. Maybe see if I can create a new map with a different shortcode and see if that fixes this bug.

    class Google_Maps_Builder_Engine {
    
    	/**
    	 * Instance of this class.
    	 *
    	 * @since    1.0.0
    	 *
    	 * @var      object
    	 */
    	protected static $instance = null;
    
    	public function __construct() {
    
    		/*
    		 * Call $plugin_slug from public plugin class.
    		 */
    		$plugin            = Google_Maps_Builder::get_instance();
    		$this->plugin_slug = $plugin->get_plugin_slug();
    
    		// Filter to automatically add maps to post type content
    		add_filter( 'the_content', array( $this, 'the_content' ), 2 );
    
    		//add shortcode support
    		add_shortcode( 'google_maps', array( $this, 'google_maps_shortcode' ) );
    
    	}

    https://wordpress.org/plugins/google-maps-builder/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter jombie

    (@jombie)

    I tried creating a new map with different Shortcode and still receive the same warning on the page Google Maps Builder is included on.

    Warning: Invalid argument supplied for foreach() in /mydomainname.com/wp-content/plugins/google-maps-builder/public/class-wordpress-google-maps-engine.php on line 193

    Map still displays ok. this is a strange one.

    may edit wp-config to hide errors until this is resolved

    EDIT: forgot to add I’m using WP 4.1 and latest version of Google Maps Builder 1.0.2

    Thread Starter jombie

    (@jombie)

    Actually after looking at this more this plug-in totally killed my site when using Chrome. Text on everypage of the site was no longer rendering correctly just a bunch of random characters – looked like it was messing with the div tags and the framework was busted in the frontend. Backend was ok and Firefox was functioning normally.

    I even Deactivated it and it was still not functioning correctly until I deleted the entire plug-in folder.

    Total Bummer. Something is seriously broken with this plug-in.

    Plugin Author Matt Cromwell

    (@webdevmattcrom)

    Hi there, thanks for your feedback. The Menu Position issue should no longer be an issue, meaning there should be no conflict with Contact Form 7 at all. Further, no one else has reported any of the issues you’re reporting here.

    Please provide the following:
    1) Name of your theme
    2) List of activated plugins

    Hopefully with that info I can reproduce at least some of the trouble you’re having.

    One other suggestion, have you made sure to clear your server cache (like Cloudflare or W3TC)? There’s no reason why there would be any problems with your site after the plugin is deactivated. The fact that there were problems suggests that there’s a lot more going on. I know it might seem obvious that when you activate you see trouble, when you deactivate you don’t, but in my experience (several years of doing Support and seeing thousands of installs and plugins) problems like this are typically much larger than any one particular plugin.

    Let me know about those items and we’ll see what we can figure out.

    Plugin Author Devin Walker

    (@dlocc)

    Hmm, I’d like to hear more about the frontend issues you experienced with the plugin. I’m going to see if I can reproduce that invalid arg issue. The plugin shouldn’t mess up anything on your frontend!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Invalid Arg Error message on line 193’ is closed to new replies.