• Archived  

By terryally - May 21, 2009

Hi,

I am getting the following error. The "next" navigation works well for the first five pages. At page six I am getting the following error.

Parse error: syntax error, unexpected T_STRING in /home/barbados/www/www/pages/temp_1242929239000.php on line 136

I did insert some PHP code to trim the summary text to 150 characters but it does not stop the parsing for the first five pages.

The URL is: http://www.barbadosdisabled.org.bb/pages/news/index.php

Thanks for your help.

P.S. Please don't gawk too much at the page ... the site is well under construction at this time and there is 'debris' everywhere.

Re: [terryally] Unexpected T-String error in next page navigation

  • Archived  

By Donna - May 21, 2009

Hi Terry,

It's hard to say exactly without being able to see the server directly. It looks like there's just one article causing the problem, since if I tell it to display 100 articles, I get the same error... it looks like it's the 41st article causing the issue, as showing 40 works, but 41 doesn't.

To help you track down what is showing as the 41st article, the 40th is "Envisioning: linking past to future" -- so, the one that should come after that is the one you'll want to look at. :)

I usually only see this on pages using PHP if they've got an <?xml> declaration (because PHP tries to parse anything starting with <? as PHP), but if that was the case, I'd expect to see the error more consistently, and not just with one article.

Anyway, this might help you narrow it down, but if not feel free to fill in a support request and I can pop in and see if I can find what in that article is causing the problem. :)
Donna

--
support@interactivetools.com

Re: [terryally] Unexpected T-String error in next page navigation

  • Archived  

By terryally - May 22, 2009

Hi Donna,

So this seems to be the problem. Is there another way of achieving this in Artman2?


I found the answer to my question while working on the social networking links. It's below.

$article.summary:maxWords(40):textOnly$

Re: [terryally] Unexpected T-String error in next page navigation

  • Archived  

By Donna - May 22, 2009

Hi Terry,

Glad to hear you got that figured out! :) Let me know if you run into any other problems.
Donna

--
support@interactivetools.com