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.
Related
I have a PHP solution which is being moved from PHP7.4 -> PHP8.1. This required updating many packages used, such as Symfony and Doctrine. Everything seems fine, but when I go to run my deployment script, which re-generates Doctrine proxy files, I encounter an error:
Fatal error: Uncaught Symfony\Component\Console\Exception\LogicException: An option named "em" already exists. in /usr/local/store/vendor/symfony/console/Input/InputDefinition.php:232
I've tried playing with the Doctrine and Symfony versions which are required (I've tried symfony/console 5.4.16 and 6.2.5, and I had to downgrade doctrine/dbal from 3.5.1 to 2.13.9 to fix a different issue in the same deployment step), but I can't find any combination of packages that solves this issue.
The deployment is running the following:
php ./vendor/bin/doctrine-module orm:generate-proxies --em=orm_databasename
I have a Laravel/Homestead project that is finally working locally. Now I'm trying to port it over to HostGator and can't get it running due to titled error. I've tried all the suggested solutions to no avail. Including:
composer require laravel/laravel
composer dump-autoload
composer install --no-scripts
composer update
composer update --no-scripts
Nothing works. Same error. If this is a clue, I also tried
php artisan clear-compiled
and get response of
Could not open input file: artisan
I'm about ready to give up on Laravel/Homestead. I've spent countless hours on this framework with nothing but problems to show for it. Would not recommend it to anybody.
You can see the error yourself here:
http://www.tekknow.net/MedAverter/medaverter/
Any suggestions before I throw in the towel?
For the artisan file, the artisan file is not required through includes, you have it in your root project, which is created when you create your Laravel project. Here is the file.
So you need to have that file in your project.
For the missing class, you try to require laravel/laravel but that is not the correct dependency. Again that github repo is a shell for a project, to have Laravel features you need to base of laravel/laravel and include laravel/framework.
Hope this clears up some confusing and can get you on the right track. Secondly you shouldn't port it over, but simply cloning your project and running composer install should be sufficient.
The problem turned out to be two issues.
1. The wrong version of PHP was running. If I ssh'ed into the hostgator server and did
php -v
It showed PHP 5.6.30 even though I had selected Php 7.1 in the cPanel PHP Selector. If I did
tekknow.net/phpinfo.php
it would say I was using 7.1. Called up HostGator tech support and they were able to change it to PHP 7.3.13.
Now if I do:
php artisan clear cache
I no longer get the error about
Parse error: syntax error, unexpected '?' in
/home1/sl1k7f3j/public_html/medaverter/bootstrap/app.php on line 15
which was an error caused by a version of php that doesn't support the ?? operator.
The second problem was a lack of memory issue. If I did
composer update
It would start to work but would fail in about 30 seconds with
Fatal error: Out of memory (allocated 709623808) (tried to allocate
34187559 bytes) in
phar:///opt/cpanel/composer/bin/composer/src/Composer/Json/JsonFile.php
on line 270
The HostGator tech rep could not figure out why that was happening but I got around that issue by manually uploading my local vendor folder to the host server.
Now when I go to http://tekknow.net/medaverter/ it works!
I've encountered a strange error when installing libraries from composer.
After running 'composer install' and installing all libraries this is what I get in the terminal:
Updating the "app/config/parameters.yml" file
Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap
Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache
[Symfony\Component\DependencyInjection\Exception\InvalidArgumentException]
Unable to replace alias "swiftmailer.mailer.default.transport.real" with actual definition "".
Strangely on my MAC dev (mac air, homebrew php and mysql) setup I don't have this issue. However on this machine (windows 10, Yoga 900) when installing the the project from my github repo, I've had this issue.
I can't run 'php bin/console debug:container' without the error occuring again.
Versions:
Symfony 3.0.9
SwiftMailer v5.4.3
I've googled the issue and had no luck finding an answer but found related issues:
https://github.com/symfony/swiftmailer-bundle/issues/59
Error after updating symfony/swiftmailer-bundle to 2.2.5
Any help greatly appreciated, unfortunately I don't have the knowledge to solve this one.
Same issue here, my problem was that I do not set mailer_transport in parameters.yml
I am fairly new to Codeigniter (last 6 months) and just recently started learning about sparks and how to use them. I followed Option 1 for installing Sparks here from getsparks.org and I received the Spark Manager has been installed successfully message. I then went to install my first spark found here and received this message: Spark installed to ./sparks/GoogleAPIClient/0.6.0 - You're on fire!
Upon trying to load my application I first had an error of EXT constant being undefined. After reading some threads it was suggested I add define('EXT', '.php'); to the application/config/constants.php file so I did. Now when I try to access it I get an Error has occurred message with this:
Cannot find spark path at sparks/sparks/0.0.9/
I verified the setup was installed correctly for both the manager and my spark. I read that adding APPPATH . 'sparks/' to the SPARKPATH constant would solve it (it didn't) and then trying '../sparks/' and that didn't. What am I missing?
Using Codeigniter 3.0
Usually with codeigniter4, spark comes along with bundle however you can still try the following commands on terminal (codeigniter4 or older versions still works). I ran these commands on mac osx sierra 10.12 with php 8 and codeigniter3. Go to terminal and try command :
$ php -r "$(curl -fsSL http://getsparks.org/go-sparks)"
it should give below output on terminal-
"Pulling down spark manager from
http://getsparks.org/static/install/spark-manager-0.0.9.zip ...
Pulling down Loader class core extension from
http://getsparks.org/static/install/MY_Loader.php.txt ...
Extracting zip package ...
Cleaning up ...
Spark Manager has been installed successfully!"
you can then use below command to verify if everything works.
php tools/spark help
it should return some text and description and some commands.
I tried to install zend framework 2 on Ubuntu 12.04.1 64 bit but have run into difficulties.
# sudo pyrus install zf2/Zend_Framework-beta#Standard
failed mid transaction with no other previous errors that I can recall other than warnings about timezone not being set. ( Unfortuantely my terminal history has lost the original output)
Pyrus\Installer\Exception: Installation failed
Pyrus\AtomicFileTransaction\MultiException: ERROR: commit failed
Pyrus\IOException: CRITICAL - unable to complete transaction, rename of actual to backup path failed
Pyrus\AtomicFileTransaction\RuntimeException: Cannot rollback - not in a transaction
Now when I try to rerun
# sudo pyrus install -f zf2/Zend_Framework-beta#Standard
it fails with
Pyrus\Registry\Exception: Cannot retrieve package file object for package packages.zendframework.com/zend_framework, it is not installed
Uninstall just tells me that it's not installed.
I restored /usr/share/.old-php to /usr/share/php however I still get the same error.
Please help.
You can just try to download and unzip Zend Framework 2 archive into your project's library folder.
It looks like it's a problem with the metapackage according the Matthew. I'm having the same problem.
Error Installing full framework with Pyrus
So if I installed pyrus here: "/usr/share/pear/pyrus" , then should I create a directory "/usr/share/pear/pyrus/zf2" and download and unzip the full Zend Framework in zf2 and it should work?
thanks