I'm trying to use PHP imap features on MacOS Catalina, but i'm always getting this error when calling 'imap_open' :
Fatal error: Uncaught Error: Call to undefined function imap_open()
I know i need to enable the imap extension, and i did it on /etc/php.ini.default :
extension=imap
Restarted Apache but even so, i keep getting the same error. What i'm doing wrong ?
Thanks
Related
I had a perfectly running local test environment with:
Oracle Linux 7 using httpd
PHP 7.4
Oracle DB 18c XE
several vhosts
Then I had to install the IMAP extention, and got this final message.
My local pages don't work anymore, and a look at the error log confirm my suspicion that it's because something happened to the OCI8:
PHP Fatal error: Uncaught Error: Call to undefined function oci_new_connect() in /var/www/
Finally, phpinfo() shows that there is indeed no OCI8.
Has anyone a way to solve this without much fuss? I checked and the correct OVI-8 version is still on my machine.
I have a Magento 1.9 site installed and all necessary php extensions. The site works, but when I get to checkout/onepage I get the error:
Fatal error: Call to undefined function mcrypt_module_open() in /path/lib/Varien/Crypt/Mcrypt.php on line 63
I understand this typically means that mcrypt is not installed, but looking at the contents of phpinfo(); reveal that it is installed and enabled
portion of phpinfo
I am running on php 5.3.29 using apache on a mac. I used homebrew to install php53 and php53-mcrypt. I am curious to know why the mcrypt_module_open() function cannot be found if I have mcrypt enabled.
Call to undefined function simplexml_load_string()
I am getting this error on all the sites located on our server. Everything was working correctly until today and all of sudden this error poped up.
I have checked Simplexml and it is already installed on the server. Here is the error:
Fatal error: Call to undefined function simplexml_load_string() in
.../lib/Varien/Simplexml/Config.php on line 510
Had the same problem today. I tried to check whether extension is loaded and I was getting true (from command line) Then I found that I was using multiple php versions and the site in question was using php5.4 which for some reason was failing for simplexml
Since I am in a cPanel/WHM environment I ran
yum install ea-php54-php-simplexml
which fixed the issue. This is for EasyApache4. Perhaps you can just update simplexml sepending on your flavour of linux.
Installing latest extension resolved the issue.
yum install ea-php56-php-simplexml
I am currently migrating a Drupal site for local development. One of the custom modules is throwing an error:
Fatal error: Call to undefined function mssql_connect()
I installed the MS SQL PHP Driver and included it in php.ini
extension=php_sqlsrv_55_ts.dll
extension=php_pdo_sqlsrv_55_ts.dll
However, the error still persists. How can I fix it? the dll's above are for the right version of PHP (5.5.31)
I want to use PHP's ftp_ssl_connect() on my Mac, but I'm getting an error message that the function is not available:
PHP Fatal error: Call to undefined function ftp_ssl_connect()
I've installed Apache and PHP through MacPorts. I'm using PHP version 5.5.23. I've added FTP and OpenSSL support by running:
port install php55-ftp php55-openssl
I've already tried restarting Apache. In PHPInfo() it does say my install supports both FTP and OpenSSL, but still I'm getting the error message above when trying to use ftp_ssl_connect().
How can I enable this function on my machine?