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"

eZ debug

Timing: Jan 18 2025 11:25:00
Script start
Timing: Jan 18 2025 11:25:00
Module start 'content'
Timing: Jan 18 2025 11:25:02
Module end 'content'
Timing: Jan 18 2025 11:25:02
Script end

Main resources:

Total runtime1.9054 sec
Peak memory usage4,096.0000 KB
Database Queries213

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 588.9531180.8203
Module start 'content' 0.00581.7236 769.7734671.3750
Module end 'content' 1.72940.1759 1,441.1484340.4219
Script end 1.9053  1,781.5703 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00500.2611210.0002
Check MTime0.00150.0802210.0001
Mysql Total
Database connection0.00070.034410.0007
Mysqli_queries1.789893.93262130.0084
Looping result0.00330.17412110.0000
Template Total1.868998.120.9344
Template load0.00220.115020.0011
Template processing1.866797.969920.9333
Template load and register function0.00020.012910.0002
states
state_id_array0.00130.068010.0013
state_identifier_array0.00220.113120.0011
Override
Cache load0.00240.1234680.0000
Sytem overhead
Fetch class attribute can translate value0.00140.073950.0003
Fetch class attribute name0.00200.106790.0002
XML
Image XML parsing0.00130.066750.0003
class_abstraction
Instantiating content class attribute0.00000.0014100.0000
General
dbfile0.00480.2519280.0002
String conversion0.00000.000430.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 38
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs