This site has been archived. To learn more about our current products Ibexa Content, Ibexa Experience, Ibexa Commerce head over to the Ibexa Developer Portal
Wednesday 05 January 2011 9:50:31 pm - 6 replies
Hi everyone
I have set up a new instance of eZ Publish 4.3.0 on a vhost. Settings up siteaccess etc. worked fine. Now i wanted to work with a custom PHP class but i ran into a fatal error:
Fatal error: Class 'eZSplash' not found in /data/site-abc/extension/splash/modules/mymodule/myview.php on line 10
Fatal error: eZ Publish did not finish its request
The execution of eZ Publish was abruptly ended, debug information can be found in the log files normally placed in var/log/*
So i checked my error.log but there is nothing in there.
Then i tried to generate my autoload array by typing
php bin/php/ezpgenerateautoload.php with the following result:
Scanning for PHP-files.
Scan complete. Found 299 PHP files.
Searching for classes (tokenizing).
after this i tried to call my module again, with the same fatal error.
Then i tried to regenerate my autoload array via backoffice (setup/extensions -> Regenerate autoload arrays for extensions) which resulted in:
Fatal error: eZ Publish did not finish its request
The execution of eZ Publish was abruptly ended, debug information can be found in the log files normally placed in var/log/*
and again, there is nothing in my logs.
The error seems to happend here in kernel/setup/extensions.php:
$autoload = new eZAutoloadArrays();
After trying and googling for a few hours I gave up and decided to ask you guys for help!
Any ideas?
Thanks,
Robert
Thursday 06 January 2011 12:11:27 am
When you regenerate the autoloads via the command line your class eZSplash should have been added to var/autoload/ezp_extension.php
Check that file to make sure that it is actually present in there.
In regard to the fatal error when trying to regenerate from the web interface, check your apache error logs rather than the ez publish logs and you should find what php error caused that fatal error. Let us know what it is.
Thursday 06 January 2011 10:02:34 am
Try php bin/php/ezpgenerateautoload.php -e to generate the autoloads for the extensions. Then check to see that your class has been added to var/autoload/ezp_extension.php - if not check the file permissions of the php file with that class definition and make sure it is readable by the user running the ezgenerateautoload.php script. Also make sure that var/autoload/ezp_extension.php is writeable by that user.
Thursday 16 February 2012 6:19:40 pm
When you regenerate the autoloads via the command line your class eZSplash should have been added to var/autoload/ezp_extension.php
Check that file to make sure that it is actually present in there.
In regard to the fatal error when trying to regenerate from the web interface, check your apache error logs rather than the ez publish logs and you should find what php error caused that fatal error. Let us know what it is.
HELLO,
I have the same ERROR, the problem is that I don't have the ezp_extension.php, the folder var/autoload is empty, waht I had to do ?
Tuesday 21 February 2012 10:41:33 am
Hi,
Did you check if the tokenizer php extension is installed and enabled ?
The regenerate autoload script use this extension, and the code invoking the tokenizer hide the php error that you should get if you do not have this extension. It tooks me a while before figuring what the problem was...
Cheers,
Hakim Bouras
PRISMALOG - Creation de site Internet
You must be logged in to post messages in this topic!