Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: Article Manager 2:
Unexpected T-String error in next page navigation

 

 


terryally
User

May 21, 2009, 11:11 AM

Post #1 of 5 (1942 views)
Shortcut
Unexpected T-String error in next page navigation Can't Post

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.


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


Donna
Staff / Moderator


May 21, 2009, 4:23 PM

Post #2 of 5 (1938 views)
Shortcut
Re: [terryally] Unexpected T-String error in next page navigation [In reply to] Can't Post

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


terryally
User

May 22, 2009, 2:53 AM

Post #3 of 5 (1911 views)
Shortcut
Re: [Donna] Unexpected T-String error in next page navigation [In reply to] Can't Post

Hi Donna,

Thanks for your speedy response.

I've had a look and it's sorta temperamental.

There are a lot of special characters in all the articles. I assume the folks copy and pasted from Word or elsewhere. I rectified those in article 41 but the error still popped up. So I changed the status of the article to hidden and I got passed it to the next. But then it would not show up article 42. I change the characters in that and it showed up. Did the same for 43 but it did not.

I back-tracked and it would not go pass 39 now.

On the template I am using a PHP code (see below) to trim the number of characters in the summary to 150. I've removed this and it all displays fine.

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

Cheers


Code
 
<?php
$summary = "$article.summary$";
$max = 300;
if (strlen($summary) > $max)
$summary = substr($summary, 0, strrpos(substr($summary, 0, $max), ' '));
?>

<?php echo $summary; ?>



(This post was edited by terryally on May 22, 2009, 2:54 AM)


terryally
User

May 22, 2009, 7:02 AM

Post #4 of 5 (1900 views)
Shortcut
Re: [terryally] Unexpected T-String error in next page navigation [In reply to] Can't Post

Hi Donna,


In Reply To
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.


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



Donna
Staff / Moderator


May 22, 2009, 3:01 PM

Post #5 of 5 (1882 views)
Shortcut
Re: [terryally] Unexpected T-String error in next page navigation [In reply to] Can't Post

Hi Terry,

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

Donna

--
support@interactivetools.com