Forums / Install & configuration / Parse error: parse error, unexpected $ ..?????

Parse error: parse error, unexpected $ ..?????

Author Message

Jorge Garza

Thursday 24 April 2003 5:00:33 pm

Hi

I followed the installation proccess, I couldn't run the $ bin/modfix.sh file, but I founded something about doing it manually on the ez site, and hope i did't right.
But when I try to access the index file in /ezpublish it sends me the error
Parse error: parse error, unexpected $ in /home/jgarza/public_html/ezpub/lib/ezi18n/classes/ezutf8codec.php on line 63

Followed by several can't send header errors

Well, I looked for that file and yes is has a variable called $char in that line, but everything seems ok.
I have installed PHP scripts before(I know some PHP/MySQL)

Some help please.

Thank you

Jorge

Jan Borsodi

Thursday 24 April 2003 11:11:19 pm

Which PHP version are you using?

Could you to try to change the line to
$char = chr( 0 );
and see if it works?

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

Jorge Garza

Friday 25 April 2003 10:25:39 am

Using..

PHP Version 4.3.1
Mysql Version 4.0.12

I'm gonna try wjat you're saying

Thank you

JGARZA

Jorge Garza

Friday 25 April 2003 10:41:37 am

I changed this...
-------------------------------------------------
case 0:
$char = "";
-------------------------------------------------------
to this....
----------------------------------------------
case 0:
$char = chr( 0 );//$char = ""; <-- Line 63
------------------------------------------
And now I get a blank screen("Done" in the Browser status bar).

Some Ideas..?
Thank you

JGARZA

Jorge Garza

Sunday 27 April 2003 10:43:14 pm

zzzzzzzzzz!!!!!!!!

I guess I'll just have to forget about EZ Pub, it looked very good

JGARZA

Jan Borsodi

Sunday 27 April 2003 11:16:05 pm

Try to view the page source and see if you get anything back from the server.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

Karsten Jennissen

Monday 28 April 2003 12:33:09 am

Hi Jorge,

try setting the memory limit of PHP from 8 to 10MB. I had exactly the same behaviour, blank pages, and it helped

Karsten

Jim Kalogeros-Chattan

Wednesday 30 April 2003 1:53:01 pm

I am getting this error also, with ezpublish 3.0.2:
Parse error: parse error, unexpected $ in ....../ezpublish/lib/ezi18n/classes/ezutf8codec.php on line 63

On looking at the source, the error is being displayed right at the top of the page (before <html>, etc.

I figured I would live with it until the install was complete, as the rest of the page was display OK during the System Check (OK), choosing database (mySQL - OK), but when I continue from Language Options (have tried both settings) to Regional Settings, I get:

Parse error: parse error, unexpected $ in /hsphere/local/home/sunteach/technologypla.net/ezpublish/lib/ezi18n/classes/ezutf8codec.php on line 63

Fatal error: Undefined class name 'ezutf8codec' in /hsphere/local/home/sunteach/technologypla.net/ezpublish/lib/ezi18n/classes/ezcodepage.php on line 325
Fatal error: eZ publish did not finish it's request

The execution of eZ publish was abruptly ended, the debug output is present below.

(there is nothing down here).

I have tried changing line 63 of ezutf8codec.php to all the options suggested in previous posts, but get the same result each time. I can't change the memory of php as my host does not give me permissions to do that.

One additional thing I noticed using wordpad to edit ezutf8codec.php - there was a non-printable character in between the quotes on line 63 (although I removed this when changing the line to "0" or chr(0) ).

Any other ideas, anyone?

My server software is:
SERVER_SOFTWARE="Apache/1.3.27 (Unix) Chili!Soft-ASP/3.6.2 mod_ssl/2.8.11 OpenSSL/0.9.6b FrontPage/5.0.2.2510 PHP/4.3.0 mod_throttle/3.1.2"