Forums / Developer / Google Maps Extension Problem

Google Maps Extension Problem

Author Message

Mariusz Ściseł

Tuesday 28 April 2009 4:04:49 am

Hi,
I have installed eZ Publish 4.1 and tried to use Google Maps Extension 4 with it. Unfortunatelly errors occured. Who knows how to solve this problem?

Fatal error: Class 'eZDOMDocument' not found in \WWW\extension\gmaplocation\datatypes\ezgmaplocation\ezgmaplocation.php on line 116
Fatal error: eZ Publish did not finish its request

It seems to me that eZDOMDocument class is missing. How to resolve this?

    function &xmlString( )
    {
        include_once( 'lib/ezxml/classes/ezdomdocument.php' );

116:       $doc = new eZDOMDocument( "Location" );

        $root = $doc->createElementNode( "ezgmaplocation" );
        $root->appendAttribute( $doc->createAttributeNode( "latitude", $this->Latitude ) );
        $root->appendAttribute( $doc->createAttributeNode( "longitude", $this->Longitude ) );
        $doc->setRoot( $root );

        $xml = $doc->toString();

        return $xml;
    }

This is when I saved the new Map class with a new attribute "GMaps Location".
Thank you for your help
Mariusz.

Davide Garzetti

Tuesday 28 April 2009 9:37:58 am

That extension is not 4.1 compatible now.
You should rewrite some php code to correct the problem.

Bye

Mariusz Ściseł

Tuesday 28 April 2009 10:40:26 am

Thanks
I know that, of course the code of the map is incompatible. But maybe someone knows what part of code I should rewrite and how to compatible it? I am not a programmer. Any suggestion is very helpful.
M.

Marco Zinn

Tuesday 28 April 2009 11:21:19 am

Hi,
maybe you want to have a look at some other extension, that i recently tested successfully on ez 4.0 (did not try with 4.1 yet):
http://ez.no/developer/contribs/template_plugins/googlepath_for_ez_4_0_x

Just a hint...

Marco
http://www.hyperroad-design.com

Kristof Coomans

Wednesday 29 April 2009 3:05:25 am

Hi Mariusz

I ported the Google Maps extension to eZ Publish 4, you can find it in its Subversion repository on eZ Projects: http://svn.projects.ez.no/googlemaps/trunk/extension/gmaplocation/

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Mariusz Ściseł

Wednesday 29 April 2009 4:10:45 am

Man You are GREAT!!!!
Thakns a lot! It works very well on my 4.1 eZ site.
Mariusz.