I transfer Laravel to VPS and get the following error:
Fatal error: Uncaught Error: Call to undefined method ComposerAutoloaderInit13c2409cfa32d1fa0c04493c0d85c93c::getLoader() in /var/www/site.ru/application/vendor/autoload.php on line 7
Error: Call to undefined method ComposerAutoloaderInit13c2409cfa32d1fa0c04493c0d85c93c::getLoader() in /var/www/site.ru/application/vendor/autoload.php on line 7
PHP 7.4
I do composer dump-autoload and still no changes
Please help!)
git clone ...
composer install
Don't work.
Remove vendor and
composer install
Don't work.
For my case, symfony server:start and php -S both get the undefined method errors. I've uopz installed for testing. Disable the extension, and the error goes.
You have to disable uopz extension and restart apache :
phpdismod uopz
systemctl reload apache2
1 - you need to update php to a newer version (php 7.4.3 or above)
2 - use the composer from the official site (it's better to download it as a file)
In my case, everything worked the first time. I have Linux Mint 20, php 7.4.3, Laravel 7
If you have Linux Mint 20, then to install php7.4.3 you need to change mirros in Software Sources. In my case, I disable the repository from ondrej/php and changed mirros. Next install php
Related
I'm attempting to install the Trader extension on my mac. I believe the install was done correctly but can't seem to use them. Here is my feedback from terminal
sudo pecl install trader
pecl/trader is already installed and is the same as the released version 0.4.0
install failed
Based on that it shows that I have installed it. But here is what I get when trying to use one
Uncaught Error: Call to undefined function trader_cci()
Anybody have tips on a step I may have missed?
Thanks in advance!
Did you include the extension in your php.ini file? You will need to add the following line in the correct ini (depends on if you use it on the command line or via FPM) to tell PHP that it needs to load the installed extension
extension=trader.so
I am getting this error in PHP in server Fatal Error (E_ERROR): Class 'XMLWriter' not found . we are using Cent OS 6
After exploring some sites, we found that we need to install php55w-xml-5.5.24-1.w6.x86_64.rpm. But the link is not working, I am not able to get this package. we are using PHP 5.5.24. We can not upgrade our PHP because of dependency with other products.Can we resolve this error without upgrading the PHP. Thanks !!!
UPDATE: we are using https://rollbar.com/ for error handing.
Install php7-xmlwriter
yum install php-7xmlwriter
on Centos 7, in my case this works:
yum install php-xml
service httpd restart
I am trying to install the mongodb driver for PHP on my Amazon Linux server. I am currently running php 5.4 and have installed php54-devel. When I try to run "sudo pecl install mongo", I get the error:
/usr/bin/perl: symbol lookup error: /usr/local/lib64/perl5/auto/Data/Dumper/Dumper.so: undefined symbol: Perl_Istack_sp_ptr
I get the same error when I just run "cpan" so I think it's deeper than just the PHP extension.
I fixed the problem by deleting /usr/local/lib64/perl5/auto and running cpan again. I don't know much about perl, but from my research it seems that there must have been an incompatibility due to a previous upgrade.
I installed PHP 5.5 on my Amazon Linux VPS via the instructions here. The CLI is working fine.
I also had apache already installed and running via the httpd package. It was running without any issue.
I see that there is no mod_php in the list of available modules. Now when I try to restart httpd I get the error:
httpd: Syntax error on line 222 of /etc/httpd/conf/httpd.conf: Syntax error on line 6 of /etc/httpd/conf.d/php.conf: Cannot load /etc/httpd/modules/libphp5.so into server: /etc/httpd/modules/libphp5.so: symbol SSLeay_version, version OPENSSL_1.0.1 not defined in file libcrypto.so.10 with link time reference
I've looked up parts of this error, and the general advice seems to be to run
yum update openssl
However, when I run this I just get:
No packages marked for update
When I run install instead of update, I get:
Package 1:openssl-1.0.1e-4.55.amzn1.x86_64 already installed and latest version
Nothing to do
I'm not sure what else to do at this point.
The php55 package in the Amazon Linux YUM repository requires the http24 package, not the http package.
I'm trying to install Magento on FreeBSD with PHP 5.3.20, but the install script fails with
Fatal error: Call to undefined function hash() in /var/www/.../magento/lib/Zend/Cache/Backend/File.php on line 894
As it's cleared in another StackOverflow question it requires PHP 5.1.2, so that's a different problem. I installed the php5-mhash extension from ports and added mhash.so and hash.so to the extensions.ini. Also, there is no --disable-hash in the configure command. And it's the same in CLI too.
Probably because open_basedir? Any ideas?
Try installing it from security and see if this will work for you.
cd /usr/ports/security/php5-hash
make install clean