Forums / Install & configuration / ezcomponents + ez 4.2 problems [closed]

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...

eZ debug

Timing: Jan 18 2025 10:37:46
Script start
Timing: Jan 18 2025 10:37:46
Module start 'content'
Timing: Jan 18 2025 10:37:46
Module end 'content'
Timing: Jan 18 2025 10:37:47
Script end

Main resources:

Total runtime0.8900 sec
Peak memory usage4,096.0000 KB
Database Queries228

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0072 587.8359180.8203
Module start 'content' 0.00720.7269 768.6563744.4844
Module end 'content' 0.73410.1558 1,513.1406353.3125
Script end 0.8899  1,866.4531 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00550.6214210.0003
Check MTime0.00210.2406210.0001
Mysql Total
Database connection0.00070.083210.0007
Mysqli_queries0.790188.77522280.0035
Looping result0.00240.27482260.0000
Template Total0.857096.320.4285
Template load0.00280.312120.0014
Template processing0.854295.972820.4271
Template load and register function0.00020.019210.0002
states
state_id_array0.00180.207510.0018
state_identifier_array0.00090.097320.0004
Override
Cache load0.00270.2991790.0000
Sytem overhead
Fetch class attribute can translate value0.00120.136150.0002
Fetch class attribute name0.00130.1497150.0001
XML
Image XML parsing0.00160.180850.0003
class_abstraction
Instantiating content class attribute0.00000.0044180.0000
General
dbfile0.00240.2736340.0001
String conversion0.00000.000630.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
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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 60
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs