Title: Call to undefined method stdClass::display()
Last modified: August 20, 2016

---

# Call to undefined method stdClass::display()

 *  Resolved [bpnorth](https://wordpress.org/support/users/bpnorth/)
 * (@bpnorth)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/call-to-undefined-method-stdclassdisplay/)
 * I’m trying to use Mappress along with Shortcode Exec PHP to create a map and 
   then populate poi’s from some records I have in a data table. However, when I
   try to display a map, I get the “Call to undefined method stdClass::display()”
   error message. As a test, I used the code from the example in the documentation:
 *     ```
       $mypoi_1 = new Mappress_Poi(array("title" => "DC", "body" => "Beautiful Washington, DC", "point" => array("lat" => 38.90279, "lng" => -77.037849)));
       $mypoi_2 = new Mappress_Poi(array("address" => "500 chestnut st, phildelphia"));
       $mypoi_2->geocode();
       $mymap->pois = array($mypoi_1, $mypoi_2);
       echo $mymap->display(array("directions"=>"none"));
       ```
   
 * Everything works fine until I hit that last line of code. Can anyone help me 
   figure out what I am doing wrong? thanks.

Viewing 1 replies (of 1 total)

 *  Plugin Author [chrisvrichardson](https://wordpress.org/support/users/chrisvrichardson/)
 * (@chrisvrichardson)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/call-to-undefined-method-stdclassdisplay/#post-2243903)
 * Hi,
 * I just saw your post on the official forum:
    [http://wphostreviews.com/forums/topic.php?id=319&replies=2#post-1050](http://wphostreviews.com/forums/topic.php?id=319&replies=2#post-1050)
 * I’ll answer you there!
 * Thanks
    -Chris

Viewing 1 replies (of 1 total)

The topic ‘Call to undefined method stdClass::display()’ is closed to new replies.

 * ![](https://ps.w.org/mappress-google-maps-for-wordpress/assets/icon-256x256.png?
   rev=2410347)
 * [MapPress Maps for WordPress](https://wordpress.org/plugins/mappress-google-maps-for-wordpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mappress-google-maps-for-wordpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mappress-google-maps-for-wordpress/)
 * [Active Topics](https://wordpress.org/support/plugin/mappress-google-maps-for-wordpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mappress-google-maps-for-wordpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mappress-google-maps-for-wordpress/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [chrisvrichardson](https://wordpress.org/support/users/chrisvrichardson/)
 * Last activity: [14 years, 10 months ago](https://wordpress.org/support/topic/call-to-undefined-method-stdclassdisplay/#post-2243903)
 * Status: resolved