What steps will reproduce the problem?
1. Use the code below and a standard installation of xampp 1.7.7
<?php
include_once("include/GoogleMap.php");
include_once("include/JSMin.php");
$MAP_OBJECT = new GoogleMapAPI(); $MAP_OBJECT->_minify_js =
isset($_REQUEST["min"])?FALSE:TRUE;
$MAP_OBJECT->setDSN("mysql://root:@localhost/tomoto");
$MAP_OBJECT->addMarkerByAddress("Denver, CO","Marker Title", "Marker
Description");
$MAP_OBJECT->enableStreetViewControls();
?>
<html>
<head>
<?php $MAP_OBJECT->getHeaderJS(); ?>
<?php $MAP_OBJECT->getMapJS(); ?>
</head>
<body>
<?php $MAP_OBJECT->printOnLoad(); ?>
<?php $MAP_OBJECT->printMap(); ?>
<?php $MAP_OBJECT->printSidebar(); ?>
</body>
</html>
What is the expected output? What do you see instead?
A map with a marker.
What version of the product are you using? On what operating system?
Google Map Api V3 on Windows 7 EN 64bit
Please provide any additional information below.
I get the following error:
Strict Standards: Non-static method DB::connect() should not be called
statically, assuming $this from incompatible context in C:\My Web
Server\xampp\htdocs\tomoto_test\include\GoogleMap.php on line 2513
Strict Standards: Non-static method DB::parseDSN() should not be called
statically, assuming $this from incompatible context in C:\My Web
Server\xampp\php\PEAR\DB.php on line 520
Strict Standards: Non-static method DB::isError() should not be called
statically, assuming $this from incompatible context in C:\My Web
Server\xampp\php\PEAR\DB.php on line 557
Strict Standards: Non-static method PEAR::isError() should not be called
statically, assuming $this from incompatible context in C:\My Web
Server\xampp\htdocs\tomoto_test\include\GoogleMap.php on line 2514
Strict Standards: Non-static method DB::isError() should not be called
statically, assuming $this from incompatible context in C:\My Web
Server\xampp\php\PEAR\DB\common.php on line 1208
Strict Standards: Non-static method DB::isError() should not be called
statically, assuming $this from incompatible context in C:\My Web
Server\xampp\php\PEAR\DB\common.php on line 1009
Strict Standards: Non-static method DB::isManip() should not be called
statically, assuming $this from incompatible context in C:\My Web
Server\xampp\php\PEAR\DB\common.php on line 2195
Strict Standards: Non-static method DB::errorMessage() should not be called
statically, assuming $this from incompatible context in C:\My Web
Server\xampp\php\PEAR\DB.php on line 965
Strict Standards: Non-static method DB::isError() should not be called
statically, assuming $this from incompatible context in C:\My Web
Server\xampp\php\PEAR\DB.php on line 688
Strict Standards: Non-static method PEAR::getStaticProperty() should not be
called statically, assuming $this from incompatible context in C:\My Web
Server\xampp\php\PEAR\PEAR.php on line 871
Strict Standards: Non-static method DB::isError() should not be called
statically, assuming $this from incompatible context in C:\My Web
Server\xampp\php\PEAR\DB\common.php on line 1014
Strict Standards: Non-static method PEAR::isError() should not be called
statically, assuming $this from incompatible context in C:\My Web
Server\xampp\htdocs\tomoto_test\include\GoogleMap.php on line 2518
DB Error: no such table
What table are we talking about? I have just created a DB named tomoto as it is
required in the code.
Thanks a lot for your help!
Kindest Regards
Original issue reported on code.google.com by antonino...@gmail.com on 5 Mar 2012 at 12:28
Original issue reported on code.google.com by
antonino...@gmail.com
on 5 Mar 2012 at 12:28