FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » FUDforum Installation Issues » Error - Parse error: parse error on line 1812
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Error - Parse error: parse error on line 1812 [message #5797] Fri, 20 September 2002 19:12 Go to next message
findanoutfitter is currently offline  findanoutfitter   United States
Messages: 4
Registered: September 2002
Karma: 0
Junior Member
Installing forum on Unix/apache anyone see this error before.

Warning: Unexpected character in input: '' (ASCII=4) state=1 in /home2/www/mydomain/forum/install.php on line 1812

Warning: Unexpected character in input: '' (ASCII=18) state=1 in /home2/www/mydomain/forum/install.php on line 1812

Warning: Unexpected character in input: '' (ASCII=16) state=1 in /home2/www/mydomain/forum/install.php on line 1812

Parse error: parse error in /home2/www/mydomain/forum/install.php on line 1812


Thanks
Re: Error - Parse error: parse error on line 1812 [message #5798 is a reply to message #5797] Fri, 20 September 2002 20:04 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Did you upload the file as ASCII or Binary? Make sure you've uploaded the file as Binary.

FUDforum Core Developer
Re: Error - Parse error: parse error on line 1812 [message #5802 is a reply to message #5798] Fri, 20 September 2002 22:47 Go to previous messageGo to next message
findanoutfitter is currently offline  findanoutfitter   United States
Messages: 4
Registered: September 2002
Karma: 0
Junior Member
I uploaded in binary, and I also used the tar download and unzipped on the server.

Still got the error.

Ed
Re: Error - Parse error: parse error on line 1812 [message #5803 is a reply to message #5802] Sat, 21 September 2002 14:15 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
what php version are you using?

FUDforum Core Developer
Re: Error - Parse error: parse error on line 1812 [message #5879 is a reply to message #5797] Thu, 26 September 2002 19:46 Go to previous messageGo to next message
qwertz is currently offline  qwertz   Germany
Messages: 3
Registered: September 2002
Karma: 0
Junior Member
i got exactly the same error!!!
i uploaded install.php in ASCII and BINARY -- same error!!!
i use PHP 4.2.1

anyone any idea??

thanx for your help - cora
Re: Error - Parse error: parse error on line 1812 [message #5880 is a reply to message #5879] Thu, 26 September 2002 19:50 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
can you tell which install package were you trying to use as well as what is its md5 ?

FUDforum Core Developer
Re: Error - Parse error: parse error on line 1812 [message #5908 is a reply to message #5879] Fri, 27 September 2002 12:40 Go to previous messageGo to next message
qwertz is currently offline  qwertz   Germany
Messages: 3
Registered: September 2002
Karma: 0
Junior Member
the new one:
FUDforum2_20020911.zip
md5sum: 57e4d688f992e79fa458ac33ab8af668

but i tried also the tar.gz version

do you know, if there is a version without install.php
(with sites where i have to change my things and do the
database things with a dump?)

thanks for help
Re: Error - Parse error: parse error on line 1812 [message #5910 is a reply to message #5908] Fri, 27 September 2002 12:58 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
I see the problem the md5's do not match. Which unzip program did you use to decompress the file?

It appears that program did something (add \r most likely) to the install script, which is why it does not work for you.
The install.php contains a special headers that tells to applications to treat the file as binary, hence not add \r but it seems some apps ignore this.


I am not sure what you mean by your last question, currently you can only install FUDforum utilizing the provided installation script.


FUDforum Core Developer
Re: Error - Parse error: parse error on line 1812 [message #5934 is a reply to message #5910] Fri, 27 September 2002 18:28 Go to previous messageGo to next message
qwertz is currently offline  qwertz   Germany
Messages: 3
Registered: September 2002
Karma: 0
Junior Member
the zip-file i unzip with winzip
the tar.gz file i untared on the server with "tar xvfp ..."

but now i think the problem must be on the serverside
on an other server - installation has shown no problem.

but i have no idea which problem Sad
Re: Error - Parse error: parse error on line 1812 [message #5937 is a reply to message #5934] Fri, 27 September 2002 19:02 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Are the 2 servers using different FTP servers?



FUDforum Core Developer
Re: Error - Parse error: parse error on line 1812 [message #5999 is a reply to message #5803] Mon, 30 September 2002 19:19 Go to previous messageGo to next message
findanoutfitter is currently offline  findanoutfitter   United States
Messages: 4
Registered: September 2002
Karma: 0
Junior Member
I am using PHP Version 4.2.3.
Re: Error - Parse error: parse error on line 1812 [message #6002 is a reply to message #5999] Mon, 30 September 2002 19:27 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
The file was modified by your FTP Client/Server/Unzip Program or something else it went through, because something added \r to it.
The result is a corrupt archive and the errors you are seeing.


FUDforum Core Developer
Re: Error - Parse error: parse error on line 1812 [message #6003 is a reply to message #6002] Mon, 30 September 2002 19:30 Go to previous messageGo to next message
findanoutfitter is currently offline  findanoutfitter   United States
Messages: 4
Registered: September 2002
Karma: 0
Junior Member
So what can I do to fix the issue?
Re: Error - Parse error: parse error on line 1812 [message #6008 is a reply to message #6003] Mon, 30 September 2002 19:44 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Decompress the file on your *nix server rather then on Windows machine and then try running that file. If possible download the file directly to the unix server from FUDforum's website.

FUDforum Core Developer
Re: Error - Parse error: parse error on line 1812 [message #11789 is a reply to message #5797] Thu, 17 July 2003 11:04 Go to previous messageGo to next message
ngockhoi is currently offline  ngockhoi   France
Messages: 15
Registered: July 2003
Location: Paris
Karma: 0
Junior Member
It's strange, I have the same error

Warning: Unexpected character in input: '' (ASCII=14) state=1 in /home/www/html/ppiis.net/fud/install.php on line 1160

Parse error: parse error in /home/www/html/ppiis.net/fud/install.php on line 1160

I had verify md5 sum it's ok for all files. I had try with tar.gz, tar.bz2 and zip compressor for zlib and non zlib.

I use linux redhat 7.3 with apache-1.3.27-2 and php-4.2.3-7.3.6
and it's the same problem with php-4.3.2 (compile by us).

Files version try
FUDforum v2.5.0
FUDforum2_20030626
FUDforum v2.3.8

Only the old version work's
FUDforum2_20021028

It's the version of zlib or any archive lib problem ?.

Best regard's


[Updated on: Thu, 17 July 2003 11:13]

Report message to a moderator

Re: Error - Parse error: parse error on line 1812 [message #11792 is a reply to message #11789] Thu, 17 July 2003 15:53 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Very strange, I've just downloaded:
http://fud.prohost.org/download/FUDforum_zl_2-5-0.tar.bz2
and installed FUDforum 2.5.0 based on that archive without a problem.
The md5sum of install.php I've run was: aaf1b5b05c799167ecdca1e3c371cae7

This md5sum should be the same not matter which zlib archive (FUDforum 2.5.0 installer) you download. If you are using a non-zlib archive the md5sum of install.php should be:
fad8fc7ed8996ee6ca1b4caef70c6f14

I've also tested both the tar.gz & zip archive and successfuly installed FUDforum using them as well.


FUDforum Core Developer
Re: Error - Parse error: parse error on line 1812 [message #12044 is a reply to message #5797] Sat, 26 July 2003 08:05 Go to previous messageGo to next message
doncan311 is currently offline  doncan311   Chile
Messages: 1
Registered: July 2003
Karma: 0
Junior Member
hello:

My question is about "FUDforum v2.5.0 Installation Script".
I don't know what i am doing wrong but this message appears when execute install.php:

With zlib:

Warning: Unexpected character in input: '' (ASCII=14) state=1 in E:\wampp2\htdocs\miniportail\con_zl\install.php on line 1160

Parse error: parse error, unexpected '[' in E:\wampp2\htdocs\miniportail\con_zl\install.php on line 1160

Without zlib:

Warning: Unexpected character in input: '' (ASCII=6) state=1 in E:\wampp2\htdocs\miniportail\sin_zl\install.php on line 33115

Parse error: parse error, unexpected ')' in E:\wampp2\htdocs\miniportail\sin_zl\install.php on line 33115


I using windows xp with wampp 2(windows+apache+mysql+php+perl) with this versions:

Apache 2.0.46
MySQL 4.0.13
PHP 4.3.2

Others scripts works fine but this in particular sends that message...Can you help me?

Thank for help Smile

PD: sorry my bad english Shocked


[Updated on: Sat, 26 July 2003 08:09]

Report message to a moderator

Re: Error - Parse error: parse error on line 1812 [message #12049 is a reply to message #12044] Sat, 26 July 2003 22:54 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Your script is corrupt because somewhere along the line \r were added to the script.

FUDforum Core Developer
icon5.gif  Re: Error - Parse error: parse error on line 1812 [message #12174 is a reply to message #12049] Wed, 30 July 2003 19:30 Go to previous messageGo to next message
ngockhoi is currently offline  ngockhoi   France
Messages: 15
Registered: July 2003
Location: Paris
Karma: 0
Junior Member
It's difficul to be \r because :
* I use tar in linux system
* I can install in a auther linux computer.

I think, it can be any the compatible with any librairy version.

Best regards,
Re: Error - Parse error: parse error on line 1812 [message #12177 is a reply to message #12174] Wed, 30 July 2003 19:50 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Which version are you trying to install?

Also does your php have magic_quotes_runtime enabled?


FUDforum Core Developer
Re: Error - Parse error: parse error on line 1812 [message #12180 is a reply to message #12177] Wed, 30 July 2003 20:22 Go to previous messageGo to next message
ngockhoi is currently offline  ngockhoi   France
Messages: 15
Registered: July 2003
Location: Paris
Karma: 0
Junior Member
I had try with FUDforum_2-5-0.tar.gz, FUDforum_zl_2-5-0.tar.gz , cvs and any old version.

I use the same apache-1.3.27-2 and php php-4.2.3-7.3.6 on 3 computer and only one work.

It's same for magic_quotes_runtime enable or disable.

I had try to upgradre gzip on the failed computer but it's don't work bester.

Best regards,
Re: Error - Parse error: parse error on line 1812 [message #12181 is a reply to message #12180] Wed, 30 July 2003 20:23 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
When you first access the install or upgrade script does it create a file called "fudforum_archive" inside the directory the script is in?

FUDforum Core Developer
icon4.gif  Re: Error - Parse error: parse error on line 1812 [message #12183 is a reply to message #12181] Wed, 30 July 2003 20:38 Go to previous messageGo to next message
ngockhoi is currently offline  ngockhoi   France
Messages: 15
Registered: July 2003
Location: Paris
Karma: 0
Junior Member
Unfortunaly nothink of file is created.

Best regards,
Re: Error - Parse error: parse error on line 1812 [message #12198 is a reply to message #12183] Thu, 31 July 2003 00:34 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Try the FUDforum 2.5.1 installer and make sure that the installer can write to the directory it is in.

FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Upgrade 2.3.6 to 2.5.0 fails
Next Topic: 2.5.1 Upgrade Problem
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 02:37:37 GMT 2024

Total time taken to generate the page: 0.02679 seconds