Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author codepeople

    (@codepeople)

    Hi,

    Thank you very much for your ticket. Please, follows the steps below:

    1. Open the “/wp-content/plugins/codepeople-post-map/js/cpm.js” file with the text editor your choice.

    2. Go to the snippet of code:

    script.src=(( typeof window.location.protocol != ‘undefined’ ) ? window.location.protocol : ‘http:’ )+’//maps.google.com/maps/api/js?sensor=false’+((typeof cpm_language != ‘undefined’ && cpm_language.lng) ? ‘&language=’+cpm_language.lng: ”)+’&callback=cpm_init’;

    and modify as follows:

    script.src=(( typeof window.location.protocol != ‘undefined’ ) ? window.location.protocol : ‘http:’ )+’//maps.google.com/maps/api/js?callback=cpm_init’+((typeof cpm_language != ‘undefined’ && cpm_language.lng) ? ‘&language=’+cpm_language.lng: ”);

    3. In a similar way, open the “/wp-content/plugins/codepeople-post-map/js/cpm.admin.js” file, and replace the snippet of code:

    $(‘<script type=”text/javascript” src=”‘+(( typeof window.location.protocol != ‘undefined’ ) ? window.location.protocol : ‘http:’ )+’//maps.google.com/maps/api/js?sensor=false’+((language) ? ‘&language=’+language: ”)+’&callback=cpm_get_latlng”></script>’).appendTo(‘body’);

    by:

    $(‘<script type=”text/javascript” src=”‘+(( typeof window.location.protocol != ‘undefined’ ) ? window.location.protocol : ‘http:’ )+’//maps.google.com/maps/api/js?callback=cpm_get_latlng’+((language) ? ‘&language=’+language: ”)+'”></script>’).appendTo(‘body’);

    4. Finally, clear the browser’s cache after edit the online files.

    I’ll publish a plugin update immediately.

    Best regards.

    Thread Starter Mark Smallman

    (@marks99)

    Many thanks, have made the edits.

    Is this error related…
    “Warning: Illegal string offset ‘post_id’ in /srv/www/cdproperty3/htdocs/wp-content/plugins/codepeople-post-map/include/functions.php on line 1090”

    Thread Starter Mark Smallman

    (@marks99)

    That line refers to the following ‘$point[‘post_id’] = $post_id;’ in the section below

    if(!empty($points)){
    			if(!isset($points[0])) $points = array($points);
                foreach($points as $point){
    				$point['post_id'] = $post_id;
                    $this->points[] = $point;
                }
    Plugin Author codepeople

    (@codepeople)

    Hi Mark Smallman,

    I’ve checked the plugin in multiple enviroments, and have not received the warning message. Could you create a ticket in our private support page, with the access to your WordPress to check if exists a conflict with another plugin in your website, please?

    https://wordpress.dwbooster.com/support

    Best regards.

    Thread Starter Mark Smallman

    (@marks99)

    Thanks, I have submitted the ticked on your support system.
    Also, tried disabling ALL other plugins, and also switching theme to Twenty-Fifteen – still get the Warning.
    I appreciate it’s not an error, but wanted to make you aware of the possible issue.
    Here’s what I am seeing when the plugin is activated (with no other plugins, and twenty-fifteen theme)

    Warning: Illegal string offset ‘post_id’ in /home/graphi40/public_html/devs/cdp/wp-content/plugins/codepeople-post-map/include/functions.php on line 1090

    Hi Everyone!
    I had a similar problem at my website. As you said above, it is caused by inside “codepeople-post-map” plugin. But in my website haven’t has any plugins about google maps. I don’t know why it’s still warning. Can you tell me how to solve this error? Thank you so much!

    Plugin Author codepeople

    (@codepeople)

    Hi NguyenThao2192,

    If you are receiving a Warning in the “/wp-content/plugins/codepeople-post-map/include/functions.php” file, you should have installed the “CP Google Maps” plugin, in this case please, reinstall the plugin, and let me know if the warning message dissapear.

    Thank you very much for using our plugins.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Chrome Error – SensorNotRequired’ is closed to new replies.