What's a web "designer" to do...?

Author Message

john delrios

Monday 27 April 2009 4:13:21 am

I'm a newbee here, so please be gentle...

I'm a long-time web designer (NOT a code-guy) although I do my best with HTML, Javascript & Actionscript.

I would love to be able to figure out how to setup and use EZ Publishing CMS up and offer it to some of my clients (I build websites).

So I downloaded, installed it on my ISP Host (Linux) and fired it up, only to get this message right away:

Parse error: syntax error, unexpected ',', expecting '(' in /hsphere/local/home/delwad/riodesignltd.com/ez/index.php on line 106

Now before you say did you review the manual and setup the MySQL & PHP some-thing or other...my answer is "the what??"

I struggle here because documentation is written for code-people, not the rest of us. So when it say first do this (@#$^()**), then do this (%*U^%#@), etc. I get totally lost, discouraged, and bail out.

Is there an install guide that speaks "non-code-speak"??

I'll keep trying...

Any help would be appreciated ;-)

John

Björn Dieding@xrow.de

Monday 27 April 2009 8:14:43 am

can you cut and paste the lines around line index.php on line 106. 10 lines before and after would be ok i guess.

I have the feeling the something went wrong when unzipping or uploading the index.php. I would retry it, maybe that fixes it.

Did you make sure that you use php5?

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

john delrios

Monday 27 April 2009 10:01:49 am

Thanks Bjorn,

I've cut-n-pasted the section that you requested. I'll try unzipping and uploading again. I didn't get any "unzip" errors...Thanks

John

/*!
Reads settings from site.ini and passes them to eZDebug.
*/
function eZUpdateDebugSettings()
{
$ini = eZINI::instance();

$settings = array();
list( $settings['debug-enabled'], $settings['debug-by-ip'], $settings['log-only'], $settings['debug-by-user'], $settings['debug-ip-list'], $logList, $settings['debug-user-list'] ) =
$ini->variableMulti( 'DebugSettings',
array( 'DebugOutput', 'DebugByIP', 'DebugLogOnly', 'DebugByUser', 'DebugIPList', 'AlwaysLog', 'DebugUserIDList' ),
array( 'enabled', 'enabled', 'disabled', 'enabled' ) );
$logMap = array( 'notice' => eZDebug::LEVEL_NOTICE,
'warning' => eZDebug::LEVEL_WARNING,
'error' => eZDebug::LEVEL_ERROR,
'debug' => eZDebug::LEVEL_DEBUG,
'strict' => eZDebug::LEVEL_STRICT );
$settings['always-log'] = array();
foreach ( $logMap as $name => $level )
{
$settings['always-log'][$level] = in_array( $name, $logList );
}
eZDebug::updateSettings( $settings );
}

/*!

cousin mosquito

Monday 27 April 2009 8:39:17 pm

 

I struggle here because documentation is written for code-people, not the rest of us. So when it say first do this (@#$^()**), then do this (%*U^%#@), etc. I get totally lost, discouraged, and bail out.

Is there an install guide that speaks "non-code-speak"??

>>Is there an install guide that speaks "non-code-speak"??

I reckon its a codey kind of product.

I'd try installing it locally in a stack from these guys,
http://bitnami.org/stack/ezpublish
and see if you really want to invest your time in it. It does lots of very clever things, but you have to be prepared to spend the time to really understand. You might find other CMSes that do 90% of what it does but are easier to use.

Good luck

jeff

Asking the dumb questions for your benefit

Björn Dieding@xrow.de

Tuesday 28 April 2009 2:59:20 am

is $logMap = array( 'notice' => eZDebug::LEVEL_NOTICE, line 106?

If so your hosting provider runs php4 you need php5. Please check upon this.

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

Sara Keighley

Tuesday 28 April 2009 8:29:54 am

Good afternoon all,

I'm very interested in talking to any PHP developers who are familiar with eZ publish please!!

skeighley@teksystems.co.uk

Nikola Jankovic

Saturday 09 May 2009 8:21:27 am

Hello,

I have the same problem, getting error on the same line (106). My host is running PHP 5.2.9.

This is the code around line 106

                             array( 'DebugOutput', 'DebugByIP', 'DebugLogOnly', 'DebugByUser', 'DebugIPList', 'AlwaysLog', 'DebugUserIDList' ),
                             array( 'enabled', 'enabled', 'disabled', 'enabled' ) );
    $logMap = array( 'notice' => eZDebug::LEVEL_NOTICE,
                     'warning' => eZDebug::LEVEL_WARNING,
                     'error' => eZDebug::LEVEL_ERROR,
                     'debug' => eZDebug::LEVEL_DEBUG,
                     'strict' => eZDebug::LEVEL_STRICT );
    $settings['always-log'] = array();

(line 106 is the one beggining with $logMap)

I would appreciate your help.

Best regards,
Nikola

André R.

Saturday 09 May 2009 9:25:47 am

You hoster is probably running both php5 and 4, and you need to enable 5 somewhere or the hoster need to do it for you.

If you do not believe me, rename index.php to something else and create index.php with this content:

<?php
phpinfo();
?>

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

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 21:14:40
Script start
Timing: Jan 18 2025 21:14:40
Module start 'layout'
Timing: Jan 18 2025 21:14:40
Module start 'content'
Timing: Jan 18 2025 21:14:41
Module end 'content'
Timing: Jan 18 2025 21:14:41
Script end

Main resources:

Total runtime0.8018 sec
Peak memory usage4,096.0000 KB
Database Queries80

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0166 588.0313152.6406
Module start 'layout' 0.01660.0056 740.671939.4766
Module start 'content' 0.02220.7783 780.1484758.9453
Module end 'content' 0.80040.0013 1,539.093820.1406
Script end 0.8017  1,559.2344 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00490.6115160.0003
Check MTime0.00200.2449160.0001
Mysql Total
Database connection0.00510.632010.0051
Mysqli_queries0.712088.7979800.0089
Looping result0.00080.1012780.0000
Template Total0.746193.120.3730
Template load0.00190.236820.0009
Template processing0.744292.816020.3721
Template load and register function0.00010.015110.0001
states
state_id_array0.00220.276410.0022
state_identifier_array0.00210.256120.0010
Override
Cache load0.00180.2192800.0000
Sytem overhead
Fetch class attribute can translate value0.00060.073460.0001
Fetch class attribute name0.00130.1678110.0001
XML
Image XML parsing0.00270.340560.0005
class_abstraction
Instantiating content class attribute0.00000.0025120.0000
General
dbfile0.00230.2879290.0001
String conversion0.00000.002340.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
14content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 35
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs