php-mcrypt extension is not getting loaded. It doesn't seems to be working.
I am using an Cent OS server.
I already tried many solution but didn't found any valuable.
Also php5enmod command is not working to enable an php-mcrypt extension.
I need this because while in the Magento checkout page it shows an error:
Fatal error: Call to undefined function mcrypt_module_open() in
/var/www/html/yms/lib/Varien/Crypt/Mcrypt.php on line 63
So need to get installed php-mcrypt extension.
Install mcrypt by using this command "yum install php55-php-mcrypt" for Cent OS server.
Related
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'm having some issues with my Magento installation. At the checkout I get the following error:
Call to undefined function mb_convert_encoding() in public_html/cpanel_user/lib/Pelago/Emogrifier.php on line 556
From research on Google and SO it seems to be a issue with MB-STRING.
I'm running CentOS with WHM/cPanel on top.
I installed the extension using the following command:
yum install php-mbstring
Rebooted the httpd via the following command:
service httpd restart
If you need anymore info let me know, I'm desperately looking to solve this issue.
I tried apt-get install php-getid3 and it installs, but when I restart lighttpd and use id3_get_tag() in my script I get the following error
Fatal error: Call to undefined function id3_get_tag() in x.php on line 3
I thought this was odd since usually the packages are php5-gd or php5-mysql and not just php-
I even tried installing the package id3 as well and restarting lighttpd but that didn't work either.
I'd rather not have to compile PHP myself if it can be avoided.
I'm trying to set up gnupg for use in PHP on my mac.
I have tried following the directions found at the following links:
http://measure9.varkel.net/2013/10/building-gnupg-for-php-5-5-on-osx/
Install PHP gnupg using PECL on MAC/MAMP 10.8.4
What I seem to be running into with both is this message:
checking for gpgme_check_version in -lgpgme... no
configure: error: wrong gpgme lib version or lib not found
I see this when executing the './configure' command.
I have installed gpgme using Homebrew.
I'm a bit stuck as I've tried everything I can come up with and haven't had any luck.
I am running PHP 5.6.7 on OSX 10.10.2 using MAMP Pro.
Thank you in advance for any help you can provide.
EDIT:
My original question was unclear, so I'll try again.
I am trying to install gnupg for use in PHP in my dev environment, which is a macbook using MAMP.
I fist installed gpgme and gnpug using Homebrew, both with no issues.
Then I attempted to install gnupg using pecl via the following command
sudo pecl install gnupg
And I end up with this error message
configure: error: wrong gpgme lib version or lib not found
ERROR: `/private/tmp/pear/install/gnupg/configure' failed
I have tried editing my path with no success, adding usr/local/include and usr/local/lib, where gpgme.h and libgpgme.a files can be found. I see no change in the error message.
EDIT 2:
I believe that gpgme is being installed correctly and pecl is able to find it. I install it using the following command
brew install gpgme
If I then run the pecl command to install gnupg, I get the error message above.
Now, if I execute the brew command to uninstall gpgme
brew uninstall gpgme
I see the following error message when trying to install gnupg with pecl
configure: error: Please reinstall the gpgme distribution
ERROR: `/private/tmp/pear/temp/gnupg/configure' failed
which seems to indicate that the library is installing and being found, but it's an incorrect version.
I am unable to find any information on what version is required for pecl to install gnupg.
EDIT 3:
Looking at the terminal a little more, I see that it's failing to find a specific function (gpgme_check_version) in the lib file.
checking for gpgme_check_version in -lgpgme... no
configure: error: wrong gpgme lib version or lib not found
ERROR: `/private/tmp/pear/temp/gnupg/configure' failed
I'm not entirely sure what happened, but I believe my installation of autoconf was somehow compromised.
What ended up solving my problem was using brew to uninstall autoconf and gpgme, then using brew to reinstall both packages.
I tried to use idn_to_ascii() function with the pre installed PHP instance of Max OSX 10.9.4 (which is 5.4.24).
I read through lot of Stackoverflow questions and in the most of them they say: intl is precompiled since PHP 5.3 and you don't need an extension and it works out of the box.
But why are the intl functions not available in this PHP instance then? I just get a
Fatal error: Call to undefined function idn_to_ascii() in /path/test.php on line 3
Also I tried it with XAMPP 1.8.3-4 on OSX 10.9 with PHP 5.5.x and I also get
Fatal error: Call to undefined function idn_to_ascii() in /Applications/XAMPP/xamppfiles/htdocs/test.php on line 3
Is this a problem with OSX or are there problems with both instances of PHP?
intl is bundled with the PHP source code, but must be enabled using the --enable-intl compile-time option. This is apparently not the case for those two PHP installations. You can check using php -i | grep intl. You'll probably have to go with the PECL installation method. Alternatively I'd recommend maintaining your own flexible PHP installation with homebrew's homebrew-php tap.
The problem also occures on Debian 7.9 too and you can install php5-intl package with apt-get to solve it.
I had the same issue on my servers. Unlike the proposed solution here, I had PHP version 7. So I had to install the corresponding intl packages:
For PHP 7.1:
sudo apt-get install php7.1-intl
For PHP 7.0
sudo apt-get install php7.0-intl