I need to update from PHP 7.3 to PHP 8.0 or PHP 8.1.
About composer.json php from ~ 7.3.0 to ^ 8.0, ext-phalcon from ^ 3.3.0 to 5.0.0 beta3 I think I have to update to
When I updated it, I found the following error.
"Class "Phalcon\Session\Adapter" not found"
I was using the following on my existing system.
use Phalcon \ Session \ Adapter \ Database as
I checked the following page
https://docs.phalcon.io/4.0/ja-jp/upgrade
The following changes have been made.
Removed Phalcon\Session\Adapter - replaced by Phalcon\Session\Adapter\AbstractAdapter
I tried the following, but the error still appeared.「"Class "Phalcon\Session\Adapter" not found"」
use Phalcon\Session\Adapter\Database as Database;
How can I solve it?
Related
When I follow this documentation to "Integrating IvoryCKEditorBundle to Create a WYSIWYG Editor" in my app, I get the following error:
[Symfony\Component\Debug\Exception\ClassNotFoundException] Attempted to load class "ZipArchive" from the global namespace. Did you forget a "use" statement?
This happens at the step 4.
I really have no idea about what could triggers this error. Due to my OS configuration? PHP Version? Symfony config? Etc?
I encountered the same issue today and tried the solution proposed in the comments by Malcom (thanks, Malcom - it worked!):
sudo apt-get install php7.0-zip
please note that you can also change the php version, for 5.6 use sudo apt-get install php5.6-zip
When I am trying to intall Laravel to Ubuntu with the following command:
composer global require "laravel/installer"
I get the following error (see following image)
When I run:
php --ini
I get the following output (see following image)
I really cannot see what the problem is, all help i appreciated.
Thanks
I will give you one small tip, whenever any error occurs, kindly try reading through it.
As it says requires ext-zip that means it is require extension ZIP installed to perform required operation.
So all you need to do as of now is to install ZIP extension for php using this command
sudo apt-get install php7.0-zip
I tried to work with yii basic migrations. yii migrate/create is working, yii migrate - not.
I use command php yii migrate. I get the following message:
Exception 'yii\db\Exception' with message 'could not find driver'
in ../basic/vendor/yiisoft/yii2/db/Connection.php:547
I have found advice that I need to add some files from advanced yii to my basic. I do not know what should be done exactly.
You should install extension to your php of DB, which you are using. In case it is already installed, make sure that it is properly turned on in your php-cli settings.
For example, in case you are using Ubuntu and php5-fpm you can run
sudo apt-get install php5-mysql
My application was ok until I changed migrations and update composer. Now it returns an error like this:
Symfony \ Component \ Debug \ Exception \ FatalErrorException
Call to undefined method Package::with()
The Package model was ok before update process. I updated the system yesterday and now almost every modal returns error like above. What happened and what is wrong with new composer?
Are you using a dev version in your composer.json file? Did you list all the facades correctly in the app.php files in all your environments? Did you try a fresh composer dump-autoload? Did you try a new composer update to see if the bug has been fixed by now?
Ok I found the problem. Somehow php artisan migration:make command has created migrations with the same name of modals. I changed the class names of migrations and it works now.
I have been trying to install Buzz for Symfony2. I added it to the deps file, and tried to update my vendors :
php bin/vendors update
The command simply tells me that I've installed the standard version, and that I should try to use :
php bin/vendors install --reinstall
instead. Which I did.
But then an error pops in and tells me :
Updating deps.lock
sh:/var/www/Symfony/vendor/bundles/Sensio/Bundle/DistributionBundle/Resources/bin/build_bootstrap.php: not found
PHP Fatal error: Class 'Doctrine\Common\Annotations\AnnotationRegistry' not found in /var/www/Symfony/app/autoload.php on line 37
PHP Fatal error: Class 'Doctrine\Common\Annotations\AnnotationRegistry' not found in /var/www/Symfony/app/autoload.php on line 37
And then nothing works anymore, which is not surprising because my vendors folder is almost empty.
Has anyone encountered this problem before? Any clue on how to fix it?
Edit :
I found out the origin of this error. I didn't have git installed, so I did :
sudo apt-get install git-core
Check this link for more info on that : http://comments.gmane.org/gmane.comp.php.symfony.symfony2/8239
However I'm having another error now ("Looked for namespace "buzz.client.curl", found none"). I'm making another thread for that one, as it is not the same problem (link here).
That's not the right way to update your vendors. Per the docs
There is also a php bin/vendors update command, but this has nothing
to do with upgrading your project and you will normally not need to
use it. This command is used to freeze the versions of all of your
vendor libraries by updating them to the version specified in deps and
recording it into the deps.lock file.
Ergo, all you need to do is run php bin/vendors install (I know, it's confusing. I partially blame them for poorly naming the sub-command)
EDIT
To help resolve your current issues, try these steps
rm -rf vendor/*
rm -rf app/cache/*
rm app/bootstrap.php.cache
php bin/vendors install
Hope it works
Try to remove everything from "vendor" folder and run
php bin/vendors install
command
Before you add in deps file copy all the content of deps file in any of your text editor,then delete all your contents of deps and add the Buzz link in deps only.
Then try the below command
php bin/vendors install --reinstall
this will install the BUZZ bundle safely. After installing BUzz bundle you can paste all the deps content that you have copied earlier.
If you are trying this make sure to download new symfony project and try this.
May be this will helps you. I tried it earlier on one of my project.