• In “strict standards” mode (PHP 5.4 with WordPress debug turned on), Mappress generates an error:

    Strict standards: Non-static method Mappress_Map::register() should not be called statically, assuming $this from incompatible context in /srv/www/wordpress.hampelgroup.co/wp-content/plugins/mappress-google-maps-for-wordpress/mappress.php on line 305

    This is because the definition of Mappress_Map::register() is not declared to be a static function, yet it is called statically.

    Looking at the code, I believe the function can be made static, so I suggest that you change mappress_map.php line 48 to be:

    static function register() {

    … which should solve the problem.

    http://wordpress.org/plugins/mappress-google-maps-for-wordpress/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Calling non-static method statically error’ is closed to new replies.