 |

del
User
Dec 14, 2005, 11:38 PM
Post #1 of 11
(6045 views)
Shortcut
|
|
Publishcron 1.1 T_STRING Error
|
Can't Post
|
|
I have installed publishcron 1.1 as per the instructions in the Article Manager Tutorial. When I publish all the rss.xml file is created in the publish folder but it contains the following: Parse error: parse error, unexpected T_STRING in /home/au12345/public_html/publish/temp_1134627130.php on line 1 I have attached a zip file with the changes made according to the tutorial. Any ideas what has gone wrong?
|
|
Attachments:
|
publishcron.zip
(21.8 KB)
|
|
|  |
 |

ross
Staff
/ Moderator

Dec 15, 2005, 2:23 PM
Post #2 of 11
(6031 views)
Shortcut
|
|
Re: [del] Publishcron 1.1 T_STRING Error
[In reply to]
|
Can't Post
|
|
Hi Del. Thanks for posting and welcome to the board! The error message looks like it’s coming from PHP and not the publishcron script. I think it’s going to be related to either your template or the content that’s getting put into it. XML is really picky when it comes to the content so things like quotes, html tags and scripting will most likely throw it off. Could I get you double check that your article summaries are just text and not a whole bunch of html? If that all checks out, could I get you to send me send me a support request with FTP details: https://www.interactivetools.com/support/email_support.cgi That way I can take a closer look at what’s happening. I look forward to hearing from you . ----------------------------------------------------------- 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.
|
|
|  |
 |

ross
Staff
/ Moderator

Dec 15, 2005, 3:03 PM
Post #3 of 11
(6027 views)
Shortcut
|
|
Re: [del] Publishcron 1.1 T_STRING Error
[In reply to]
|
Can't Post
|
|
Hi again Del. A quick update here for you . I was talking to Mike about this and it actually seems like the problem is going to be a combination of the first line in your rss template and the fact you are going with php extentions. The first line of that template will look like this: <?xml version="1.0"?> The problem is that anything that starts with <? on a page with a php extension will be treated as php code. Of course, the code in that tag is not actually php so you’re getting the error message. There are a couple things you can try here. The first, would be to just remove that line altogether. The only thing is that I don’t know for sure that the page will still validate. I tried loading a sample XML page here in the office and it comes up in a browser just fine, but I don’t have anywhere to test it out online so I can run it through a validate. The second option would be to see if you can change the php setting on your server so that it only looks for script between tags that start with <?php instead of just <? Do either of those options seem like they might work for you? Keep me up to date with how you are making out . ----------------------------------------------------------- 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.
|
|
|  |
 |

del
User
Dec 15, 2005, 6:30 PM
Post #4 of 11
(6021 views)
Shortcut
|
|
Re: [ross] Publishcron 1.1 T_STRING Error
[In reply to]
|
Can't Post
|
|
Ross, Thanks for the reply. I removed the <?xml version="1.0"?> line and the rss.xml file was generated OK. I validated it using http://feedvalidator.org and have attached the results. A few things regarding the generated xml file. - When reading the feed using RssReader the preview of the articles just show the article description. How do I get the summary into the feed as well?
- With summary only articles the generated rss.xml file has a link to an article document that does not exist. How do I prevent these links being generated for summary only articles?
- The validator for the rss.xml file showed there were empty links generated. Why is this happening?
Thanks.
|
|
Attachments:
|
Feed Validator Results http--www_australia_coop-publish-rss_xml.zip
(6.07 KB)
|
|
|  |
 |

Cliff
Staff

Dec 16, 2005, 2:09 PM
Post #5 of 11
(6000 views)
Shortcut
|
|
Re: [del] Publishcron 1.1 T_STRING Error
[In reply to]
|
Can't Post
|
|
Hi del, Thanks for the additional details. I'll go over your points one at a time. 1. I actually just posted on this topic a little while ago. Check out that thread and let me know if that helps. 2. You will want to remove reference to the summary only, internet URL and uploaded file types as there isn't an effective way to link to them through the RSS feed. Just make sure that the code on the RSS template for those sections just doesn't ouput anything. So on the template it would look like this:<!-- templatecell : row_summary --> <!-- /templatecell : row_summary --> <!-- templatecell : row_link --> <!-- /templatecell : row_link --> <!-- templatecell : row_ufile --> <!-- /templatecell : row_ufile --> 3. I suspect that this is related to the summary only articles. Try removing the reference to them with the details in step two and see if that helps. Let me know if you need any more details Regards, Cliff Stefanuk - Customer Service Manager support@interactivetools.com
|
|
|  |
 |

del
User
Dec 18, 2005, 5:45 PM
Post #6 of 11
(5985 views)
Shortcut
|
|
Re: [Cliff] Publishcron 1.1 T_STRING Error
[In reply to]
|
Can't Post
|
|
1. Will have to remove HTML from the summary before I can do this. If I change the options for summary fields from WYSIWYG to text area and publish all will that remove any html code that is in the summary fields or will I have to manually remove all HTML? 2 & 3 Making the recommended changes worked. Thanks for the help.
|
|
|  |
 |

ross
Staff
/ Moderator

Dec 19, 2005, 11:01 AM
Post #7 of 11
(5955 views)
Shortcut
|
|
Re: [del] Publishcron 1.1 T_STRING Error
[In reply to]
|
Can't Post
|
|
Hi del. Good to hear that 2&3 got you going again . When you are using the WYSIWYG editor it saves the html code directly to the article so when you open it with a regular text area, the html will still be there. To completely remove the html you’d need to delete it all in either a text area, or in the code view of your editor. I recommend the text area way. Keep us up to date with how you are making out ----------------------------------------------------------- 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.
|
|
|  |
 |

DefenceTalk.com
User
Jun 29, 2006, 9:44 PM
Post #8 of 11
(5293 views)
Shortcut
|
|
Re: [del] Publishcron 1.1 T_STRING Error
[In reply to]
|
Can't Post
|
|
I have installed publishcron 1.1 as per the instructions in the Article Manager Tutorial. When I publish all the rss.xml file is created in the publish folder but it contains the following: Parse error: parse error, unexpected T_STRING in /home/au12345/public_html/publish/temp_1134627130.php on line 1 I have attached a zip file with the changes made according to the tutorial. Any ideas what has gone wrong?
|
|
|  |
 |

MikeB
Staff
/ Moderator

Jul 1, 2006, 10:00 AM
Post #9 of 11
(5278 views)
Shortcut
|
|
Re: [DefenceTalk.com] Publishcron 1.1 T_STRING Error
[In reply to]
|
Can't Post
|
|
Hi DefenceTalk, Thanks for the post! I'm actually a bit confused here as to what you were looking for in your forum post. Were you running into this same error? If you can just provide me with a bit more detail I'd be happy to answer any questions you have. I look forward to hearing from you! Cheers, Mike Briggs - 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.
|
|
|  |
 |

DefenceTalk.com
User
Jul 1, 2006, 11:00 AM
Post #10 of 11
(5276 views)
Shortcut
|
|
Re: [MikeB] Publishcron 1.1 T_STRING Error
[In reply to]
|
Can't Post
|
|
Hi Mike, Thanks for the reply. Actually, I removed <?xml version="1.0"?> and I was able to run the query through publishcron. However, I still get RSS syntax or invalid character errors once in while, even on "-" and some other special characters but thus far its okay. thanks
|
|
|  |
 |

Mike4172
User
Jul 4, 2006, 12:30 PM
Post #11 of 11
(5256 views)
Shortcut
|
|
Re: [DefenceTalk.com] Publishcron 1.1 T_STRING Error
[In reply to]
|
Can't Post
|
|
The problem lies since PHP sees the XML line <?xml version="1.0"?> it thinks it SHOULD be just <?. That's the reason it gives you that T_STRING error. What you need to do is go inside Setup Options --> Dynamic Page Rendering and change the bubble from Resolve SSIs and Server-side Scripting to Resolve "template include" tags and click save. Then hit publish all and you should be in business. Regards, Michael NEW!Logo and Website Design Auto Post Date and Expiration GoForum 2.02 http://www.amscripts.net SKYPE - michael.amscripts
(This post was edited by Mike4172 on Jul 4, 2006, 1:29 PM)
|
|
|  |
|