ezcomponents + ez 4.2 problems [closed]

Author Message

scrieler _

Thursday 08 October 2009 9:52:16 am

heya, my ezc pear install don't work with ez4.2 (ez4.0 - ez4.1.3 works fine of that server)

An unexpected error has occurred. Please contact the webmaster.
Unable to connect to the database server 'localhost' in /var/www/web14/html/lib/ezdb/classes/ezmysqldb.php on line 164

----

can't get ez4.2 with ezc bundle to work, too

Fatal error: Class 'ezcBaseOptions' not found in /var/www/web14/html/kernel/private/options/ezpextensionoptions.php on line 54
Fatal error: eZ Publish did not finish its request

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

Fatal error: Class 'ezpExtensionOptions' not found in /var/www/web14/html/kernel/classes/ezclusterfilehandler.php on line 54

Piotrek Karaś

Thursday 08 October 2009 10:36:06 am

Have you updated eZ Components recently?
http://ez.no/ezpublish/requirements

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

Josh Rader

Friday 09 October 2009 10:05:00 am

I am trying to upgrade to only version 4.0.4 and had a lot of problems getting ez components to work. At first I was trying the Pear install (this is on a Windows Server 2003 system) and could not get it working. Finally I just downloaded the zip, extracted it and wrote a config.php file and put that in the main eZ directory and everything worked fine. Maybe you should try that.

scrieler _

Saturday 10 October 2009 4:16:26 pm

First issue is because of old ezc version (I wonder myself because Requirements says by Compatible platform eZ Components 2008.2.2- 2009.1) I think

Second issue is because of wrong place or wrong include_path!

My new problem !!! -> With new ezc bundle and correct include_path I get a White Page only...

don't know there is anythink needed more than for ez4.1.3

my server:
Apache/2.2.3
PHP Version 5.2.8-0.dotdeb.1
MySQL Client API version 5.0.75

Piotrek Karaś

Saturday 10 October 2009 11:49:01 pm

What do the logs (server, eZ) say?

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

scrieler _

Sunday 11 October 2009 1:37:58 am

no errors or warnings...

Pablo Pernot

Sunday 11 October 2009 2:42:58 am

activate the front display of error within php.ini. the white page will probably make appear an error (probably an include path).
display_errors = On
and check error reporting in php.ini

Pablo Pernot
http://www.smartview.fr
http://www.areyouagile.com

scrieler _

Sunday 11 October 2009 3:28:55 am

hmm, changed include_path from

php_admin_value include_path "/var/www/web14/html/lib/ezc"

to

php_admin_value include_path ".:/var/www/web14/html/lib/ezc"

and I again get this:

An unexpected error has occurred. Please contact the webmaster.
Unable to connect to the database server 'localhost' in /var/www/web14/html/lib/ezdb/classes/ezmysqldb.php on line 164

like with ezc server install, is there a known bug with my mysql server version?

Pablo Pernot

Sunday 11 October 2009 6:13:26 am

hum...
check mysql

try to connect with console
mysql -u<user> -p

try to check if you're using socket or tcp (look at the socket and bind-address parameter in my.cnf)

try to check if your mysql-php is on (phpinfo)

Pablo Pernot
http://www.smartview.fr
http://www.areyouagile.com

scrieler _

Monday 12 October 2009 1:13:52 am

don't need to try it...
it's same server some ez4.0 - ez4.1.3 versions works!

scrieler _

Tuesday 13 October 2009 12:51:37 pm

played around with site.ini, turned on the debugs to find any info,
look @ my page and see my install wizard o.0

seems that CheckValidity=true was not read, don't know what's the issue...

Pablo Pernot

Tuesday 13 October 2009 11:13:25 pm

Is your problem still the mysql connection ?

near line 164 on my ez420 in ezmysqldb.php it checks the connection.

eZDebug::writeError( "Connection error: Couldn't connect to database. Please try again later or inform the system administrator.\n$dbErrorText", "eZMySQLDB" );

If not working you should have a message with an explicit error.

Did you also try debugging with xdebug step by step debugger ? Especially just above you can put breakpoints:

 if ( $this->UsePersistentConnection == true )
        {
            $connection = mysql_pconnect( $server, $user, $password );
        }
        else
        {
            $connection = mysql_connect( $server, $user, $password, true );
        }

 

As you noticed you may check if something goes wrong due to persitence or not :

ezdbinterface.php

if ( $parameters['use_persistent_connection'] == 'enabled' )
        {
            $this->UsePersistentConnection = true;
        }

At least are you sure you're not using socket for your 4.0 and 4.1 version, and tcp for the 4.2. The database setting in your ini are the same ?

 

Pablo Pernot
http://www.smartview.fr
http://www.areyouagile.com

scrieler _

Wednesday 14 October 2009 2:00:48 am

thanks Pablo Pernot and Piotrek Karaś!

don't need help for this anymore, solved the problem...! :]
changed the site.ini and save it again and it works...
don't know what the problem was...

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

Main resources:

Total runtime0.8582 sec
Peak memory usage4,096.0000 KB
Database Queries91

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0081 591.7813152.6406
Module start 'layout' 0.00810.0051 744.421939.4766
Module start 'content' 0.01320.8432 783.8984739.3906
Module end 'content' 0.85630.0018 1,523.289124.1406
Script end 0.8582  1,547.4297 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.4094160.0002
Check MTime0.00130.1569160.0001
Mysql Total
Database connection0.00140.160010.0014
Mysqli_queries0.760188.5706910.0084
Looping result0.00120.1360890.0000
Template Total0.821395.720.4106
Template load0.00240.284920.0012
Template processing0.818895.408020.4094
Template load and register function0.00030.032510.0003
states
state_id_array0.00180.211510.0018
state_identifier_array0.00120.134820.0006
Override
Cache load0.00200.2308790.0000
Sytem overhead
Fetch class attribute can translate value0.00060.069540.0001
Fetch class attribute name0.00230.2673150.0002
XML
Image XML parsing0.00470.543340.0012
class_abstraction
Instantiating content class attribute0.00000.0053180.0000
General
dbfile0.00500.5769230.0002
String conversion0.00000.001340.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
13content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
24content/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
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
6content/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: 60
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs