[pmwiki-users] WikiSh t_string error
john.rankin at affinity.co.nz
Wed Jul 4 16:51:13 CDT 2012
On 4/07/12 8:19 PM, a.sonderhoff at gassi-tv.de wrote:
> the obvious next question would be: does the error message only occur on pages where WikiSh is used?
> On Jul/04, 2012, at 0406 , adam overton wrote:
>> hi there
>> indeed, after digging around a little bit, it seems to be on only a few pages, but not the whole site. that said, WikiSh isn't used on every page. but maybe this suggests it's not a server thing, but a break in my code?
FWIW, it looks like a break originating in the code. A common cause of
"unexpected T_STRING" php errors is missing punctuation or operators.
For example, a missing semi-colon terminating a line of code, a missing
string concatenation character, or a missing quote mark. It looks as if
pmwiki is trying to evaluate a php command originating in WikiSh and the
string contains a syntax error.
>> On 3 Jul 2012, at 4:33 AM, a.sonderhoff at gassi-tv.de wrote:
>>> does this error pop up on every site in your wiki? or just a couple of them?
>>> On Jul/03, 2012, at 0047 , adam overton wrote:
>>>> hi there!
>>>> i've been away from one of my sites for awhile, not making any real changes, and up popped the following message recently.
>>>> Parse error: syntax error, unexpected T_STRING in /home/mysite/public_html/pmwiki/cookbook/WikiSh.2010-06-09/WikiSh.php(2119) : eval()'d code on line 1
>>>> Warning: Cannot modify header information - headers already sent by (output started at /home/mysite/public_html/pmwiki/cookbook/WikiSh.2010-06-09/WikiSh.php(2119) : eval()'d code:1) in/home/mysite/public_html/pmwiki/pmwiki.php on line 1089
>>>> b) or is it more likely to be from data being processed by some WikiSh code (i.e. maybe it's using something a user entered into a profile or page, i.e. with odd characters or something).
More information about the pmwiki-users