Parse error [message #22937] |
Tue, 22 February 2005 03:13 |
Pikachu
Messages: 47 Registered: February 2005 Location: ITALY
Karma: 0
|
Member |
|
|
Hi
now the forum is out, a message error only:
Parse error: parse error, unexpected T_STRING, expecting ')' in /web/htdocs/www.mysite.com/home/forum/FUDforum/include/theme/default/ err.inc on line 74
Server error?
Thanks
[Updated on: Tue, 22 February 2005 03:18] Report message to a moderator
|
|
|
Re: Parse error [message #22938 is a reply to message #22937] |
Tue, 22 February 2005 03:59 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
looks like you broke a template.
FUDforum Core Developer
|
|
|
|
Re: Parse error [message #22940 is a reply to message #22939] |
Tue, 22 February 2005 04:21 |
Pikachu
Messages: 47 Registered: February 2005 Location: ITALY
Karma: 0
|
Member |
|
|
Ok
I upload err.inc, and ave another error in theme/default/index.php.
Upload it, and have access to my forum.
I used (for trying) the Rebuild Theme, and have the same errors in the 2 files.
Now can U tell me how can repair it, once I upload again the corrupted files?
I upload also the entire directory tmpl, but have errors too.
-----
I run again the file upgrade.php
and now I have errors only in some other file...
like:
forum/theme/default/uc.php on line 497
forum/theme/default/thread.php on line 512
forum/theme/default/usrinfo.php on line 257
/forum/theme/default/ppost.php on line 123
...ecc
Thanks for your help if possible.
[Updated on: Tue, 22 February 2005 04:58] Report message to a moderator
|
|
|
Re: Parse error [message #22947 is a reply to message #22940] |
Tue, 22 February 2005 14:10 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
You need to find the template you've changed last and revert it to it's previous state and then rebuild the theme.
FUDforum Core Developer
|
|
|
|
Re: Parse error [message #22961 is a reply to message #22958] |
Wed, 23 February 2005 05:15 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
You can do the following:
move the modified templates into a separate directory and run the upgrade script.
FUDforum Core Developer
|
|
|
|
|
|
Re: Parse error [message #22980 is a reply to message #22972] |
Wed, 23 February 2005 18:20 |
Pikachu
Messages: 47 Registered: February 2005 Location: ITALY
Karma: 0
|
Member |
|
|
I have restored my forum by a local back up.
- Rebuid the theme, all works, tmpl modified too
- Don't works only the register page (after logout, click on the register link no the top)
- Now, I upload a english MSG adding a line
(post_private_msg: Invia messaggio privato)
And registration now works!
SO I've proved that the problem is only in italian MSG, and some modify I have add. I need of an editor for that file?? What can I use to modify it?
I found the file MSG italian, version 2.6.11.
Thanks
[Updated on: Wed, 23 February 2005 18:29] Report message to a moderator
|
|
|
Re: Parse error [message #22983 is a reply to message #22980] |
Wed, 23 February 2005 18:31 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Hmm... I suspect your changed to the italian msg file broken one of the text string used on the registration causing the parse error you've reported.
If you want send me (attach to your reply) the msg file and I can compare it to the original italian translation in CVS.
FUDforum Core Developer
|
|
|
Re: Parse error [message #22985 is a reply to message #22980] |
Wed, 23 February 2005 18:43 |
Pikachu
Messages: 47 Registered: February 2005 Location: ITALY
Karma: 0
|
Member |
|
|
Pikachu wrote on Wed, 23 February 2005 19:20 | I have restored my forum by a local back up.
- Rebuid the theme, all works, tmpl modified too
- Don't works only the register page (after logout, click on the register link no the top)
- Now, I upload a english MSG adding a line
(post_private_msg: Invia messaggio privato)
And registration now works!
SO I've proved that the problem is only in italian MSG, and some modify I have add. I need of an editor for that file?? What can I use to modify it?
I found the file MSG italian, version 2.6.11.
Thanks
|
I attach the msg that don't works, I modified it in several lines.
Can U tell me an adapted editor for this file?
Thanks
-
Attachment: msg mod.txt
(Size: 61.73KB, Downloaded 1171 times)
[Updated on: Wed, 23 February 2005 18:49] Report message to a moderator
|
|
|
Re: Parse error [message #22988 is a reply to message #22985] |
Wed, 23 February 2005 19:01 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
I use a unix editor called "joe" to edit the file.
The one problem I noticed in your file (likely cause for the parser error) was on adm_account_accepted: line.
On that line you had ' (single quote) that was not escaped
\' or HTML encoded.
FUDforum Core Developer
|
|
|
|
|
Re: Parse error [message #22995 is a reply to message #22991] |
Wed, 23 February 2005 23:18 |
Pikachu
Messages: 47 Registered: February 2005 Location: ITALY
Karma: 0
|
Member |
|
|
Using the msg modified, again the registration link give this error: -
Parse error: parse error, unexpected T_STRING in /web/htdocs/www.donnaolimpia.com/home/forum/theme/default/pre_reg.php on line 69
I'll restore the last MSG (and attach it).
It works but the italian traduction is bad and incomplete. It works but not the pdf generator link :
Parse error: parse error, unexpected '\'', expecting ')' in /web/htdocs/www.donnaolimpia.com/home/forum/FUDforum/include/fpdf.inc on line 68)
I would like to use this file whit all the fudforum function, pdf generator too. If you want, could you try to correct this file, if its possible?
Thanks
-
Attachment: msg.inc
(Size: 61.53KB, Downloaded 1172 times)
-
Attachment: fpdf.inc
(Size: 3.22KB, Downloaded 1053 times)
[Updated on: Wed, 23 February 2005 23:22] Report message to a moderator
|
|
|
Re: Parse error [message #22996 is a reply to message #22995] |
Wed, 23 February 2005 23:42 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Looks something is clearly wrong with you revisions since I don't get these errors with the stock italian translation, which is somewhat incomplete.
I suspect the errors are the result of un-escaped ' characters and similar. Find and correct all those instances and parse errors will go away.
FUDforum Core Developer
|
|
|
|
|