Symfony2 Apc "Cannot redeclare...." - php

please, can you help me with using symfony2 apc class loader? I´m trying to set it up but it throws me error:
Fatal error: Cannot redeclare class Symfony\Component\ClassLoader\ApcClassLoader in /data/web/virtuals/48565/virtual/www/domains/kozusnikjan.com/Symfony/app/bootstrap.php.cache on line 2576
Here is my app.php file: http://pastebin.com/b3iE6cWq
I used this tutorial: http://symfony.com/doc/current/components/class_loader/cache_class_loader.html
Thank you very much for your help

Related

neo4j graphaware php-client: class not found

When I tray to access my neo4j-DB via Graphaware's php-client using http-protocol, I get the following error message:
Fatal error: Class 'GraphAware\Common\Result\AbstractRecordCursor' not found in ...
On the other hand when I'm using the bolt-protocol t says:
Fatal error: Uncaught Error: Call to undefined method GraphAware\Bolt\Result\Result::getResult() in...
At the beginning of my code I have used
require_once 'vendor/autoload.php';
use GraphAware\Neo4j\Client\ClientBuilder;
so I thought the classes should be autoloaded which is obviously not the case.
What's wrong?
I have solved this issue by replacing the respective syntax for queries of the example-files by one out of the README.

Fatal error: Class 'phpseclib\Crypt\Base'

Getting this Error in php encription what to do please help
Fatal error: Class 'phpseclib\Crypt\Base' not found in /usr/share/php/phpseclib/Crypt/DES.php on line 55
Are you using the master branch of phpseclib? If so you need to use an autoloader. eg. https://raw.githubusercontent.com/composer/composer/master/src/Composer/Autoload/ClassLoader.php

FatalErrorException: Error: Class 'Symfony\Component\Form\Exception\FormException' not found

When I tried to use ShtumiUsefulBundle's Ajax autocomplete type i got the following error..
FatalErrorException: Error: Class 'Symfony\Component\Form\Exception\FormException' not found in /var/www/example.com/vendor/Shtumi/UsefulBundle/Form/Type/AjaxAutocompleteType.php line 52
My project is Symfony2.3.
Please help.
ShtumiUsefulBundle is incompatible with your Symfony version. Try to find another bundle or implement your own for needed features or downgrade your Symfony to 2.0.

Fatal error: Class 'Mage_Mtbelano_Helper_Data' when loading page

I'm helping my brother but unfortunately, I'm very very new to Magento but I'm good in PHP and Unix.
I would like to ask what this error is and how to fix it.
Fatal error: Class 'Mage_Mtbelano_Helper_Data' not found in /home/scott/public_html/app/Mage.php on line 547

fatal Error when using pear pager !

i used PEAR Pager in my Projects . it's works fine in my local server but when i upload it to hosing server it's gaves me fatal error :
Fatal error: Cannot redeclare class PEAR_Common in /usr/lib/php/PEAR/Common.php on line 1123
i don't know what's the problem , how can i solve that ?!
The error message says it all. It seems like the class PEAR_Common is loaded twice. Check your code for includes/requires of this class.
If you are using other pear packages that might load (include) this class before you include your Pear_Pager class then this might be the problem.
Regards,

Categories