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.