I was trying to get installed the bundle egeloen/IvoryCKEditorBundle in my Symfony 2.5 but it's my first time installing a bundle and I need specific steps to make it, I don't understand in which files I have to put the code lines to get it installed, I write the code in the README file in appKernel, autoload.php and composer.json. It runs in a local host and I Use Xampp, my OS is Windows 7.
The error I got was:
Fatal error: Class 'web\bundles\IvoryCKEditorBundle' not found in
D:...\Source\app\AppKernel.php on line 19
Related
I had fresh install symfony (3.3.2) project on Debian 8, PHP 5.6, but I have issue when running web application.
PHP Fatal error: Method ReflectionMethod::__toString() must not throw an exception in /var/www/html/vendor/symfony/symfony/src/Symfony/Component/Config/Resource/ReflectionClassResource.php on line 0, referer:
I see this message after composer completes symfony installation and tries to clean cache, also web is not working and in error_log is this error.
Can't find solution for this problem, or it's Symfony bug?
I have a symfony 2 project. It was running just fine two different ubuntu systems. Now I have deployed it to an OpenShift instance and get this error:
PHP Fatal error: Class 'Doctrine\\DBAL\\Platforms\\MySqlPlatform' not found in /var/lib/openshift/552ba6ecfcf93371e600007a/app-root/runtime/repo/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOMySql/Driver.php on line 80
I have no idea where to look for the error. Any ideas?
Please check the file permissions. Is it executable? Does it exist at all?
The solution was:
- remove folder "vendor"
- remove file composer.lock
php composer.phar self-update
php composer.phar install
All good now
I'm trying to execute ZendSkeletonApplication example for frist time.
I've acted pursuant this articles from official Zend site:
http://framework.zend.com/manual/2.0/en/user-guide/skeleton-application.html
BUT
Why should I download again all dependecies (entire ZF2) via composer if I already downloaded it (ZF2) from Git as zip archive?
Or Does part with php composer doing anything else than downloading entire ZF2? (I've very slow connection so it's problem)
I still get this error:
Fatal error: Uncaught exception 'RuntimeException' with message
'Unable to load ZF2. Run php composer.phar install or define
a ZF2_PATH environment variable.'
My approach is following: (Using Win7, PHP 5.3.5)
I downloaded entire ZF2 and ZendSkeletonApplication from Git as zip archives.
I Unziped ZF2 to htdocs/ directory. (Now my path to the framework is: xampp/htdocs/ZendFramework-2.3.1/ )
I Unziped ZendSkeletonApplication to htdocs/ (Path location: xampp/htdocs/zf2-tutorial/ )
I checked presence of openssl extension. It's now enabled in php.ini
I added the Zend Frameworkâs library path to the PHP include_path in php.ini
( include_path = ".;C:\xampp\php\PEAR; C:\xampp\htdocs\ZendFramework-2.3.1\library" )
Now, If I type: localhost/zf2-tutorial/public/ , I get FatalError as I mentioned above..
Need I setup some other settings in ZendSkeletonApplication?
Is it possible to install dependencies via php composer from downloaded zip archive of ZF2? (No internet connection) ... If so, How can I setup the composer?
EDIT:
After XAMPP update (php 5.5) I was capable to successfuly access ZFSkeletonAppllication's introductory site (localhost/) after I set ZF2_PATH environment variable.
Ok, but unfortunately same FatalError still occur right when I got to the next chapter of ZF2 SkeletonApplication:
http://framework.zend.com/manual/2.0/en/user-guide/unit-testing.html
There, PHPUnit framework has been involved to ZF2 application.
When I want to run phpunit I get same error as above:
Fatal error: Uncaught exception 'RuntimeException' with message
'Unable to load ZF2. ....
I setuped ZF2_PATH environment variable in httpd.conf to:
SetEnv ZF2_PATH c:/xampp/htdocs/ZendFramework-2.3.1/library
I really don't know what I can do now...
Thanks for help.
Chances are include_path not working. You need to debug it why. Otherwise you can set ZF2_PATH environment variable as error itself demanded. It is easy way as you may setup framework at one folder while just need to setup ZF2_PATH variable. For debug, how ZF2 autoloading works, check /init_autloader.php .
No need to using composer every time for project setup. I also found it very annoying in composer way to install every time ZF2.
I'm trying to testing my app made with Symfony. I wrote a test and when I launch it, i get the following error:
Fatal error: Class 'Doctrine\Bundle\DoctrineBundle\DoctrineBundle'
not found in /.../app/AppKernel.php on line 17
I had the same error with Symfony's MonologBundle, AsseticBundle and SwiftmailerBundle: then I've manually added these bundles into my app, so pheraps I have fixed those errors, but with Doctrine I've not found any solutions yet.
It looks like maybe you did not install the Doctrine bundle.
Try to go to the root of your project where the composer.phar is located through a console, and try to run it like this:
php composer.phar
It will install all dependencies of Symfony2,and hopefully everything is going to work :)
I successfully completed the configuration check on web/config.php when installing Symfony on a U10 LAMP server, but now running across this error when trying to run web/app_dev.php/_configurator/:
Fatal error: Interface 'Symfony\Bridge\Doctrine\RegistryInterface' not found in /var/www/symfony/vendor/symfony/src/Symfony/Bundle/DoctrineBundle/Registry.php on line 26
Did I forget to install something?
You are missing Doctrine bridge for some reason. I guess something went wrong when you installed vendors (github might have been down for a minute and it just skipped this part).
Try to reinstall vendors:
./bin/vendors install
Or just download Symfony2 with pre-installed vendors.