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"

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 16:09:31
Script start
Timing: Jan 18 2025 16:09:31
Module start 'layout'
Timing: Jan 18 2025 16:09:31
Module start 'content'
Timing: Jan 18 2025 16:09:31
Module end 'content'
Timing: Jan 18 2025 16:09:31
Script end

Main resources:

Total runtime0.7611 sec
Peak memory usage4,096.0000 KB
Database Queries76

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0067 588.0391152.6406
Module start 'layout' 0.00670.0033 740.679739.4766
Module start 'content' 0.01000.7494 780.1563666.2813
Module end 'content' 0.75940.0016 1,446.437516.1250
Script end 0.7610  1,462.5625 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4357160.0002
Check MTime0.00140.1895160.0001
Mysql Total
Database connection0.00120.158710.0012
Mysqli_queries0.687990.3778760.0091
Looping result0.00090.1126740.0000
Template Total0.723395.020.3617
Template load0.00210.273420.0010
Template processing0.721294.761920.3606
Template load and register function0.00010.017510.0001
states
state_id_array0.00120.162310.0012
state_identifier_array0.00100.130120.0005
Override
Cache load0.00190.2451680.0000
Sytem overhead
Fetch class attribute can translate value0.00060.079940.0002
Fetch class attribute name0.00110.148490.0001
XML
Image XML parsing0.00100.129640.0002
class_abstraction
Instantiating content class attribute0.00000.0026100.0000
General
dbfile0.00080.1067170.0000
String conversion0.00000.001140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
8content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
16content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
10content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 38
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs