close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

PHP Errors

Thread began 4/24/2011 8:39 am by sysop349733 | Last modified 5/31/2011 7:28 am by sysop349733 | 2695 views | 6 replies |

sysop349733

PHP Errors

I'm seeing the following errors/warnings in my server's error log file:

PHP Warning:  DOMDocument::load() [<a href='domdocument.load'>domdocument.load</a>]: Extra content at the end of the document in /home/altmediaadmin/www/greensboro101.com/htdocs/includes/_promaps_cache/_promaps_geocache.xml, line: 3 in /home/altmediaadmin/www/greensboro101.com/htdocs/includes/google_javascript/promaps_geocache_php.php on line 21, referer: http://www.greensboro101.com/includes/EventsMap.php

PHP Fatal error: Call to a member function appendChild() on a non-object in /home/altmediaadmin/www/greensboro101.com/htdocs/includes/google_javascript/promaps_geocache_php.php on line 36, referer: http://www.greensboro101.com/includes/EventsMap.php



Lines 21 and 36 of promaps_geocahce_php.php referenced in the errors are as follows:

21: $dom->load($xmlFile);
36: $geocodeEntry = $root->appendChild($geocodeEntry);



And here is the _promaps_geocache.xml file

<?xml version="1.0" encoding="UTF-8"?>
<geocode_data version="1.0"><geocode_entry ID="113 N. Greene St. Greensboro NC 27401 U.S."><address><![CDATA[113 N. Greene St., Greensboro, NC, 27401, U.S.]]></address><geocode><![CDATA[(36.073109, -79.792041)]]></geocode></geocode_entry></geocode_data>



How can I eliminate these errors?

Sign in to reply to this post

Dani Chankhour

Can you please post a link to the page that has the map on it so i can debug the issue further, but looking at the errors that you are seeing, it could be possible that you have a version of PHP that does not support the DOMDocument.

Thanks.

Sign in to reply to this post

sysop349733

Reply

I am running PHP version 5.2.17 with DOM/XML enabled.

The page generating the error is: EventsMap.php

It is being included via i-frame on www.greensboro101.com

Sign in to reply to this post

Jason ByrnesWebAssist

I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:
supporthistory.php

If anyone else is experiencing this same issue, please append to this thread.

Sign in to reply to this post

sysop349733

Resolved -- Permissions error

Got a call from tech support today. The issue has been resolved. The permissions were too strict on the _promaps_geocache.xml file in the _promaps_cache directory.

Thanks for the help.

Sign in to reply to this post

gamedbs398030

Can you share the solution for us?

Originally Said By: sysop349733
  Got a call from tech support today. The issue has been resolved. The permissions were too strict on the _promaps_geocache.xml file in the _promaps_cache directory.

Thanks for the help.  



I also had this type of problem while running the firebug with Firefox browser.
Can you share the information from Webassist on how to resolve this problem? Thanks

Sign in to reply to this post

sysop349733

Permission

Originally Said By: gamedbs398030
  I also had this type of problem while running the firebug with Firefox browser.
Can you share the information from Webassist on how to resolve this problem? Thanks  



I don't remember the exact settings, just incrementally increase your permissions for the web user on the cache file until you no longer get the error.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...