Mailing List Archive

error: "Unexpected character in input"
I'm having problems with a brand new installation of mediawiki (v
1.3.1). I'm getting the following error:

*Warning*: Unexpected character in input: ' in
*/tmp/tpl_0_7_0_67ce1c01a1d29790ffaa24acf1ad38a2.php* on line *58*

*Warning*: Unexpected character in input: ' in
*/tmp/tpl_0_7_0_67ce1c01a1d29790ffaa24acf1ad38a2.php* on line *58*

*Warning*: Unexpected character in input: ' in
*/tmp/tpl_0_7_0_67ce1c01a1d29790ffaa24acf1ad38a2.php* on line *58*

*Warning*: Unexpected character in input: ' in
*/tmp/tpl_0_7_0_67ce1c01a1d29790ffaa24acf1ad38a2.php* on line *58*

*Warning*: Unexpected character in input: '' (ASCII=1) state=1 in
*/tmp/tpl_0_7_0_67ce1c01a1d29790ffaa24acf1ad38a2.php* on line *58*

*Warning*: Unexpected character in input: ' in
*/tmp/tpl_0_7_0_67ce1c01a1d29790ffaa24acf1ad38a2.php* on line *58*

*Warning*: Unexpected character in input: ' in
*/tmp/tpl_0_7_0_67ce1c01a1d29790ffaa24acf1ad38a2.php* on line *58*

*Warning*: Unexpected character in input: ' in
*/tmp/tpl_0_7_0_67ce1c01a1d29790ffaa24acf1ad38a2.php* on line *58*

*Warning*: Unexpected character in input: '' (ASCII=26) state=1 in
*/tmp/tpl_0_7_0_67ce1c01a1d29790ffaa24acf1ad38a2.php* on line *58*

*Warning*: Unexpected character in input: ' in
*/tmp/tpl_0_7_0_67ce1c01a1d29790ffaa24acf1ad38a2.php* on line *58*

*Warning*: Unexpected character in input: ' in
*/tmp/tpl_0_7_0_67ce1c01a1d29790ffaa24acf1ad38a2.php* on line *58*

*Warning*: Unexpected character in input: ' in
*/tmp/tpl_0_7_0_67ce1c01a1d29790ffaa24acf1ad38a2.php* on line *58*

*Warning*: Unexpected character in input: ' in
*/tmp/tpl_0_7_0_67ce1c01a1d29790ffaa24acf1ad38a2.php* on line *58*

*Warning*: Unexpected character in input: ' in
*/tmp/tpl_0_7_0_67ce1c01a1d29790ffaa24acf1ad38a2.php* on line *58*

*Warning*: Unexpected character in input: ' in
*/tmp/tpl_0_7_0_67ce1c01a1d29790ffaa24acf1ad38a2.php* on line *58*

*Parse error*: parse error, unexpected T_LNUMBER in
*/tmp/tpl_0_7_0_67ce1c01a1d29790ffaa24acf1ad38a2.php* on line *58


*
Based on my research, it may be a MySQL-related issue, or a browser
issue. It seems obvious that the wrong characters are getting put into
template files. But, checking the database using phpMyAdmin to browse
records, it 'seems like' I was the last one editing the site, so I'm
puzzled to find there errors about 24 hours later. I am using Mozilla
1.6 (actually Mozilla Debian Package 1.6-5) on Debian, and may have also
used Firefox 0.8 (Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6)
Gecko/20040614 Firefox/0.8). I would guess that these browsers work
correctly with wikimedia.

Is there some way to delete the tmp folder files to have the application
regenerate the templates in cache? This is hosted, so I can't just
delete everything in /tmp

Thanks,

Greg
Re: error: "Unexpected character in input" [ In reply to ]
Greg Rundlett wrote:
> I'm having problems with a brand new installation of mediawiki (v
> 1.3.1). I'm getting the following error:
> *Warning*: Unexpected character in input: ' in
> */tmp/tpl_0_7_0_67ce1c01a1d29790ffaa24acf1ad38a2.php* on line *58*
[snip]
> *
> Based on my research, it may be a MySQL-related issue, or a browser
> issue.

The template engine shouldn't be affected by either...

> Is there some way to delete the tmp folder files to have the application
> regenerate the templates in cache? This is hosted, so I can't just
> delete everything in /tmp

Try modifying templates/xhtml_slim.pt; it should regenerate the compiled
template in response (and hopefully correctly!)

Or you can write a quick PHP script like this:
<?php unlink("/tmp/tpl_0_7_0_67ce1c01a1d29790ffaa24acf1ad38a2.php"); ?>

-- brion vibber (brion @ pobox.com)
Re: error: "Unexpected character in input" [ In reply to ]
Brion Vibber wrote:

> Greg Rundlett wrote:
>
>> I'm having problems with a brand new installation of mediawiki (v
>> 1.3.1). I'm getting the following error:
>> *Warning*: Unexpected character in input: ' in
>> */tmp/tpl_0_7_0_67ce1c01a1d29790ffaa24acf1ad38a2.php* on line *58*
>
>
> The template engine shouldn't be affected by either...
>
>> Is there some way to delete the tmp folder files to have the
>> application regenerate the templates in cache? This is hosted, so I
>> can't just delete everything in /tmp
>
>
> Try modifying templates/xhtml_slim.pt; it should regenerate the
> compiled template in response (and hopefully correctly!)
>
Thanks Brion, that did the trick. And I haven't seen the error repeat
since.