Wednesday 11 April 2012 6:22:32 pm - 16 replies
I get this error when trying to access the MachForms tab of the ezpublish admin in my site. What are the options to get this repaired?
Fatal error: Class 'ezcBaseOptions' not found in /var/www/XXXXX/XXXX/kernel/private/options/ezpextensionoptions.php on line 58
Wednesday 11 April 2012 8:44:56 pm
Hi Melissa,
Can you tell us if this is a new install of eZ Publish, and which version?
I just did a search on the forum for "ezcBaseOptions" and get several results. In some of the cases the solution is in getting an eZ Publish version which includes eZ Components.
Regards Robin
Wednesday 11 April 2012 8:50:47 pm
Quote from Robin Muilwijk :Hi Melissa,
Can you tell us if this is a new install of eZ Publish, and which version?
I just did a search on the forum for "ezcBaseOptions" and get several results. In some of the cases the solution is in getting an eZ Publish version which includes eZ Components.
Regards Robin
This is not a new install, this is a site we brought into our system. It is version 4.3.0. I do believe eZ Components is installed, it seems to be in lib/ezc as indicated in some of my searches. I think the next step is to check that the site/php include paths for the site are set to point to the lib/ezc folder, correct?
Thanks for your response!
Edited: To clarify the rest of the site is working as expected. Only the MachForms tab in the admin is not behaving properly.
Modified on Wednesday 11 April 2012 9:34:58 pm by Melissa Anderson
Wednesday 11 April 2012 10:17:57 pm
Hello,
ezcBaseOptions is part of ezcomponent.
you should have the ezcomponent library in your website in the lib/ezc
then do this check list :
let us know.
Alex
Wednesday 11 April 2012 11:36:01 pm
Quote from Alexandre SEBBANE :Hello,
ezcBaseOptions is part of ezcomponent.
you should have the ezcomponent library in your website in the lib/ezc
then do this check list :
- try to define a config.php file at root of your website which exists a constant to link to it
- regenerate the autoloads : php bin/php:ezpgenerateautoloads.php -e -p
let us know.
Alex
What should the config set the include path to be?
When I tried this..I got the following errors trying to regen the autoloads...
PHP Fatal error: require(): Failed opening required 'Base/src/base.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/XXXX/XXXX/bin/php/ezpgenerateautoloads.php on line 49
Fatal error: require(): Failed opening required 'Base/src/base.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/XXXX/XXXX/bin/php/ezpgenerateautoloads.php on line 49
Thursday 12 April 2012 5:11:36 am
Quote from Alexandre SEBBANE :hello,
in fact there is a config.php-recommended in the root of ezpublish.
rename it config.php
then uncomment the line define( 'EZP_USE_BUNDLED_COMPONENTS', true );
and regenerate autoloads.
you should,'at any error ...
Alex
I will try the bundled setting in the morning.
What do you mean by "you should, 'at any error ...' ? I should what?
I apologize, I don't really know much about ezPublish and this is an inherited site awaiting rebuild, I'm just hoping to make a piece of it more useful while it waits. I did manage to get a different error after messing with a few things. Thanks very much for the help!
Thursday 12 April 2012 5:10:14 pm
Quote from Alexandre SEBBANE :hello,
it is you should not have any errors ...
Alex
Thank you. This is not working. The original error remains and I cannot regenerate the autoloads. I will work to find another path around the issues. Thanks.
Thursday 12 April 2012 8:54:27 pm
Quote from Arnaud Lafon :Hi Melissa,
you said that you could not regenerate the autoloads, and as this is a requirements, I'll suggest that we help you fix this first. Could you tell us how did you try to do that ? And what errors do you get ?
We were not using the config file previously, so I'm removing that from the equation as well for now. I changed the include paths on the site which has resulted in different errors.I believe the original issue was include pathing and my current issue is database connection related.
This is the error I get when trying to regen autoloads (also posted above in another response).
PHP Fatal error: require(): Failed opening required 'Base/src/base.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/XXXX/XXXX/bin/php/ezpgenerateautoloads.php on line 49
Fatal error: require(): Failed opening required 'Base/src/base.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/XXXX/XXXX/bin/php/ezpgenerateautoloads.php on line 49
I adjusted the command to adjust the command line and received errors slightly differently each time. I appreciate the help.
Thursday 12 April 2012 11:05:25 pm
I don't think that your issue is related to your database connection (Base/src/base.php is not about database...).
When I asked how did you try to regenerate your autoloads, I was thinking about the way you do that. Is it from the web interface ? The command line ? If yes, are you executing the command from eZ Publish root or somewhere else ?
You said that lib/ezc contains an eZComponents installation, so Alex was right, you need to rename config.php-recommend to config.php and uncomment "//define( 'EZP_USE_BUNDLED_COMPONENTS', true );"
If you don't want to do that try this in your command line :
sudo pear channel-discover components.ez.no sudo pear install -a ezc/eZComponents
This will install the Components on your system and this should fix your issue since the installation will be done in the pear folder (which looks like to be in your include path).
Thursday 12 April 2012 11:58:14 pm
I was trying to regenerate autoloads with the command line in one of the above comments. Is there a place in admin to do it instead? Where exactly?
After adjusting the site include paths..this is the error I am now getting. Which is what leads me to believe there is a database connection issue..
<b>Fatal error</b>: Uncaught exception 'eZDBNoConnectionException' with message 'Unable to connect to the database server '172.20.0.133'' in /var/www/xxxx/xxxx/lib/ezdb/classes/ezmysqldb.php:164 Stack trace: #0 /var/www/xxxx/xxxx/lib/ezdb/classes/ezmysqldb.php(80): eZMySQLDB->connect('172.20.0.133', 'capitalregionus...', 'ezp', 'publish', false, 'utf-8', '') #1 [internal function]: eZMySQLDB->eZMySQLDB(Array) #2 /var/www/xxxx/xxxx/lib/ezutils/classes/ezextension.php(457): ReflectionClass->newInstanceArgs(Array) #3 /var/www/xxxx/xxxx/lib/ezdb/classes/ezdb.php(296): eZExtension::getHandlerClass(Object(ezpExtensionOptions)) #4 /var/www/xxxx/xxxx/extension/machform/standalone/includes/check-session.php(52): eZDB::instance() #5 /var/www/xxxx/xxxx/extension/machform/standalone/config.php(10): require_once('/var/www/xxxx...') #6 /var/www/xxxx/xxxx/extension/machform/standalone/manage_form.php(12): require('/va in <b>/var/www/xxxx/xxxx/lib/ezdb/classes/ezmysqldb.php</b> on line <b>164</b>
Friday 13 April 2012 7:21:31 pm
Quote from Melissa Anderson :I was trying to regenerate autoloads with the command line in one of the above comments. Is there a place in admin to do it instead? Where exactly?
Yes, there is one, check /setup/extensions
Well, now you have a database connection error.
Looks like you're attempting to get connected to a distant MySQL server (since the hostname is not localhost or something equivalent). You should first try to connect to the server using the command line, because the server might not accept external connexions... Try something like this :
$ mysql -uuser -ppassword databasename
If the server hangs up, that means that you should probably have a look to your MySQL server configuration.
If not, let us know.
Arnaud
Modified on Friday 13 April 2012 7:22:04 pm by Arnaud Lafon
You must be logged in to post messages in this topic!