Home | Products | Consulting | Forums | Support | Order | 1-800-752-0455
  Main
Index
Search
Posts
Who's
Online
Log
In

Home: Older Forums & Discontinued Products: Article Manager 1 Add-ons:
Creating a sitemap for Google Sitemaps... addl

 

 


jmueller0823
User

Jan 19, 2006, 3:08 PM

Post #1 of 9 (6158 views)
Shortcut
Creating a sitemap for Google Sitemaps... addl Can't Post

Hey Cliff
Great idea.

We've used publishcron for some time, so
we're very familar with that.

We loaded your xml template and ran publishcron,
and we're seeing this error:


Quote
XML Parsing Error: junk after document element
Location: http://www.oursite.com/sitemap.xml
Line Number 2, Column 1:Parse error: parse error in /usr/u/home/g/oursite/public_html/artman/publish/temp_1137709819.php on line 1

Obviously, the template is launching.

Have you released a new template?
(Were there errors in the old template?)

BTW the file referenced above (temp_1137709819.php) does not exist.

Thanks.


Jim

g r o w t h t r a c dot c o m
Life Changing Resources for Your Marriage


Cliff
Staff


Jan 19, 2006, 3:58 PM

Post #2 of 9 (6151 views)
Shortcut
Re: [jmueller0823] Creating a sitemap for Google Sitemaps... addl [In reply to] Can't Post

Hi Jim,

Thanks for posting.

I'm not sure why that message would show up, so could you send me an email so I can take a closer look at your setup.

From there I'll take a look at things and post back with anything that I find for you.

Thanks Smile
Regards,
Cliff Stefanuk - Customer Service Manager
support@interactivetools.com


lorraine
New User

Jul 25, 2006, 3:22 AM

Post #3 of 9 (5468 views)
Shortcut
Re: [Cliff] Creating a sitemap for Google Sitemaps... addl [In reply to] Can't Post

Hi I am actually getting the same kind of error when i try to run the publish cron script

Parse error: parse error, unexpected T_STRING in /hsphere/local/home/irishmot/irishmotoring.ie/cms/publish/temp_1153822798.php on line 1

Could you tell me why this is? Would it be anything got to do with the file extensions. All my files are php?


Donna
Staff / Moderator


Jul 26, 2006, 9:21 AM

Post #4 of 9 (5454 views)
Shortcut
Re: [lorraine] Creating a sitemap for Google Sitemaps... addl [In reply to] Can't Post

Hi Lorraine,

Thanks for your post. :)

It sounds like something in the outputted file is choking a bit, but without seeing the actual file it's trying to create, I can't see what exactly the problem would be. Most likely, there's a syntax error in your template.

There are a couple of ways that we can figure out what's going on... first, you could send us a copy of the template you're using to create this file. Alternately, you can fill out a support request and have us pop in and take a look directly to see what's being created. If you'd like to do this, you can fill in the support request form here:

https://www.interactivetools.com/support/email_support.cgi

Thanks, Lorraine! I look forward to helping you. :)

Donna


Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.


lorraine
New User

Jul 26, 2006, 9:32 AM

Post #5 of 9 (5451 views)
Shortcut
Re: [Donna] Creating a sitemap for Google Sitemaps... addl [In reply to] Can't Post

Hi Donna

I'm just using a basic xml template. See attached. I've tried this on another site and it works fine when the pages are just .shtml files.

Would it be that the pages are php? -that's why it's causing an error?

Thanks for your help.

Lorraine
Attachments: sitemap_template.xml (1.20 KB)


Donna
Staff / Moderator


Jul 27, 2006, 10:24 AM

Post #6 of 9 (5433 views)
Shortcut
Re: [lorraine] Creating a sitemap for Google Sitemaps... addl [In reply to] Can't Post

Hi Lorraine,

Yep, you're right -- it's definitely the PHP that's causing this. Because XML files start with <? -- same as PHP calls -- it's getting a bit confused when it tries to process it.

So, what you can do is simply remove the first line of the template, the one that says this:


Code
<?xml version="1.0" encoding="UTF-8"?>


It's not going to validate perfectly, but it should still work. Give that a try and let me know. :)

Donna


Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.


lorraine
New User

Oct 10, 2006, 7:35 AM

Post #7 of 9 (5031 views)
Shortcut
Re: [Donna] Creating a sitemap for Google Sitemaps... addl [In reply to] Can't Post

Hi

The published file is just a list of url's one after another.. It doesn't recognise it as an xml file. Is there a way i can include the header <?xml version="1.0" encoding="UTF-8"?> in the published file to parse it as an xml?

Thanks
Lorraine


ross
Staff / Moderator


Oct 10, 2006, 1:06 PM

Post #8 of 9 (5024 views)
Shortcut
Re: [lorraine] Creating a sitemap for Google Sitemaps... addl [In reply to] Can't Post

Hi Lorraine.

I am actually thinking it might be best if you could send in a support request so I can take a closer look at things on your server:

https://www.interactivetools.com/support/email_support.cgi

How does that sound? I look forward to hearing from you Smile.
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Product Specialist
support@interactivetools.com


Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.




Mike4172
User

Oct 10, 2006, 1:07 PM

Post #9 of 9 (5022 views)
Shortcut
Re: [lorraine] Creating a sitemap for Google Sitemaps... addl [In reply to] Can't Post

An easy solution would be:

Setup Options --> General --> Resolove Template Includes.

Publish all and you won't have a problem with the <? portion that confuses it with PHP. Of course you would need to change over existing SSI's to template includes.

Regards,
Michael
NEW!Logo and Website Design
Auto Post Date and Expiration
GoForum 2.02
http://www.amscripts.net
SKYPE - michael.amscripts

 
 
 


Search for (options)
Products
CMS Builder
Article Manager
Realty Manager
Listings Manager
Order Now
Services
Priority Consulting
Support
Online Documentation
Support Forums
Support Homepage
Company Info
12 reasons to choose us!
Meet the team
Monthly newsletter
Contact Us
Toll Free: 1-800-752-0455
Phone: (604) 689-3347
Sales | Support
Conditions of Use | Privacy Policy | Copyright © interactivetools.com 2008
#201 - 2730 Commercial Drive, Vancouver BC Canada V5N 5P4