close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Number of entries varies with refresh

Thread began 12/16/2009 8:51 am by millerb395386 | Last modified 7/12/2010 1:30 pm by Dani Chankhour | 4924 views | 20 replies |

millerb395386

Number of entries varies with refresh

Are there any good FAQs on debugging maps?

I notice that when my map loads, the number of addresses displayed varies quite a bit. I have 2 items in the database for the city of Pueblo and 8 in Colorado Springs. But, if I refresh, I may see 1 in Pueblo the first time, 2 the next, 0 the next. I think I have yet to see all 8 items displayed at once for Colorado Springs.

When I look at the source code for the page I see all the entries in the code but for some reason they are not all getting displayed.

map_view.php

Sign in to reply to this post

Jason ByrnesWebAssist

it looks like the cache file is not being created, create a new folder at the root of you site:
_promaps_cache


and add a new empty file to the folder named "_promaps_geocache.xml" make sure this folder has read and write permissions so the cache can be created.

Sign in to reply to this post

millerb395386

I noticed that as well. I created the _promaps_geocache.xml and chmoded it to 0664 and it still is not propagating. I wonder if some block of code is missing?

I'll check it again this evening.

Sign in to reply to this post

Dani Chankhour

you are not missing any blocks of code. But i was able to find this error when it is trying to create the xml file:

<br />
<b>Warning</b>: DOMDocument::load() [<a href='plugins/domdocument.load'>domdocument.load</a>]: Document is empty in /home/rmgoorg/public_html/merchant/_promaps_cache/_promaps_geocache.xml, line: 1 in <b>/home/rmgoorg/public_html/merchant/google_javascript/promaps_geocache_php.php</b> on line <b>21</b><br />
<br />
<b>Warning</b>: DOMDocument::load() [<a href='plugins/domdocument.load'>domdocument.load</a>]: Start tag expected, '&lt;' not found in /home/rmgoorg/public_html/merchant/_promaps_cache/_promaps_geocache.xml, line: 1 in <b>/home/rmgoorg/public_html/merchant/google_javascript/promaps_geocache_php.php</b> on line <b>21</b><br />
<br />
<b>Fatal error</b>: Call to a member function appendChild() on a non-object in <b>/home/rmgoorg/public_html/merchant/google_javascript/promaps_geocache_php.php</b> on line <b>36</b><br />



I'm not sure exactly the meaning of the error, but to start, could you tell me the PHP version you are using (4 or 5)?

Sign in to reply to this post

millerb395386

I am running PHP v5.2.9.

How did you capture the error messages?

Thanks!

Sign in to reply to this post

Dani Chankhour

In firefox i use a plugin called firebug to help me see the results of the ajax calls.

It looks like you have the latest php version.

Can you please delete the folder and the xml file that you have created and try giving write permissions on the "google_javascript" folder. Since the script that creates the xml file is in that folder.

Let me know if this clears the issue.

Sign in to reply to this post

millerb395386

Thanks Dani. I use firebug as well but didn't think to use it for this.

I will regenerate my code in the morning and see if that corrects anything. I had made minor tweaks to the javascript code to use mouseover rather than click and a few other things (scaling, etc).

Giving the "google_javascript" folder write permissions to the user won't change the ability of the code in that folder to write to the cache folder.

Sign in to reply to this post

Dani Chankhour

You are correct, in most cases you should not have to give the google_javascript folder any special permission to write the cache file, you should only need to give the _promaps_cache folder write permissions.

Let me know if you are still having an issue with the cache file.

Sign in to reply to this post

millerb395386

I am completely stumped.

I regenerated all the files and copied them to my test site. You can view it at map_view.php

I used Beyond Compare to ensure all the files are exactly as generated.

I am getting these errors in the firebug console:

<br />
<b>Warning</b>: DOMDocument::load() [<a href='plugins/domdocument.load'>domdocument.load</a>]: Document is empty in /home/rmgoorg/bryantest/merchant/_promaps_cache/_promaps_geocache.xml, line: 1 in <b>/home/rmgoorg/bryantest/merchant/google_javascript/promaps_geocache_php.php</b> on line <b>21</b><br />
<br />
<b>Warning</b>: DOMDocument::load() [<a href='plugins/domdocument.load'>domdocument.load</a>]: Start tag expected, '&lt;' not found in /home/rmgoorg/bryantest/merchant/_promaps_cache/_promaps_geocache.xml, line: 1 in <b>/home/rmgoorg/bryantest/merchant/google_javascript/promaps_geocache_php.php</b> on line <b>21</b><br />
<br />
<b>Fatal error</b>: Call to a member function appendChild() on a non-object in <b>/home/rmgoorg/bryantest/merchant/google_javascript/promaps_geocache_php.php</b> on line <b>36</b><br />

but yet I am seeing well formed data in the post:

actionaddaddress 15305 E Colfax Ave, Aurora, CO, 80011
entryId 15305 E Colfax Ave Aurora CO 80011
geocode (39.740553, -104.809347)
sender promapsforgoogle

and the cache file is not being written to.

I deleted the _promaps_cache directory and gave the parent directory 777 (yikes!) permissions but the directory and cache file is not being created by the script.

Sign in to reply to this post

millerb395386

Just for grins I created a new PHP file in Dreamweaver. It contains nothing but boilerplate XHTML 1.0 Transitional. I added a new map in the body section and I am seeing the same behaviour. :-(

The generic page is map_test.php.

-Bryan

Sign in to reply to this post
loading

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...