I am wondering why i get this error. I updated my php from 5.6.22 to 5.6.40 and now i get this error. This was working fine in previous version but suddenly it turns out like this.
Fatal error: Call to undefined function imagewebp()
Also if try var_dump(function_exists('imagewebp')); it gives false now.
This is my current PHP version
This is the GD Module
So what has to be done to re-enable it in my server.
I have a Cent-OS instance in AWS.
The WBMP Support => enabled is not enough)
You have to add --with-vpx-dir= to your configure line or --with-webp-dir for PHP 7.0+
For me
PHP: 8
I simply uncommented the extension gd and the function worked
extension=gd
in my php.ini file
Related
I have installed libsodium and libsodium-php on ubuntu 16.04 but when I run:
`<?php
var_dump([
\Sodium\library_version_major(),
\Sodium\library_version_minor(),
\Sodium\version_string()
]);`
I get an error saying:
PHP Fatal error: Uncaught Error: Call to undefined function Sodium\library_version_major()
According to phpinfo() Sodium is enabled and the compiled version is 2.0.1 and the library version is 1.0.13. What am I doing wrong?
The PHP API for libsodium has changed in version 2.0.0 of the extension.
Originally, all functions were in a \Sodium\ namespace.
However, following a vote by PHP developers regarding its inclusion in PHP 7.2, it was decided to move everything to the global namespace instead.
So, what used to be \Sodium\library_version_major() is now sodium_library_version_major().
For those who couldnt get the answer working..
thats because it should be:
<?php
var_dump([
SODIUM_LIBRARY_MAJOR_VERSION,
SODIUM_LIBRARY_MINOR_VERSION,
SODIUM_LIBRARY_VERSION
]);
For those who installed Pecl Version of Soidum and Enabled it in php.ini (extension=sodium.so) And Have same error like Call to Undefined ...
After Restarting Apache & nginx and lack of success finally Reboot server get sodium work exteremly.
PHP 7.3 & >7.3 = libsodium 2.1
Hope to be helpful.
my PHP Version is 5.6 and I ve already downloaded the driver for the sqlsrv extension and placed it in the ext/ directory, as well as modified the php.ini with the new extensions.
I still get the following error when trying to connect to my database
Fatal error: Call to undefined function sqlsrv_connect() in C:\inetpub\wwwroot\db.php on line 12
Is there anything that i've missed?
Did you change Edit System Variable and Windows extensions ?
You can find here : http://www.iis.net/learn/application-frameworks/install-and-configure-php-on-iis/install-and-configure-php
Good luck..
The fileinfo functions from php http://php.net/manual/en/ref.fileinfo.php are not working when I try to use the finfo_open and finfo_file functions in a php script where I will let users upload a file. Although php's site says that the functions will work if php's version is greater than or equal to 5.3.0 and I have xampp 1.8.2 which has php 5.4.16, it still produces a fatal error as --- Fatal error: Call to undefined function finfo_open() in ..... ---. I am using these functions in the procedural way not in object-oriented way and I am using eclipse helios as my php editor. Any solution to this problem?
Go to php.ini (or simply from xampp window, near Apache -> Config -> php.ini)
Find line:
;extension=php_fileinfo.dll
and uncomment it
I am trying to use the pspell function in my php application I am developing however when I run my code I get the error: "Call to undefined function pspell_new()". I am using an Apache 2.4 server on my localhost to run the application. Nothing I do seems to fix the problem. I have downloaded the aspell/pspell module with a "en" dictionary. I added the pspell-15.dll and aspell-15.dll to my System32 folder and I enabled the extension=php_pspell.dll line in my php.ini file and restarted the apache 2.4 service. What am I missing here because nothing seems to work? Thanks.
As of php 5.3. Pspell is no longer supported/bundled. Instead you can use the enchant which is bundled by default in 5.3.
On my Symfony2 application, I am receiving an error:
Fatal error: Call to undefined function FOS\UserBundle\Util\mb_convert_case() in /Applications/MAMP/htdocs/application/vendor/bundles/FOS/UserBundle/Util/Canonicalizer.php on line 18
I am using PHP 5.3.6.
Here is my PHPInfo showing that mbstring is enabled:
http://i.stack.imgur.com/FCMDv.png
If mbstring is enabled then why is mb_convert_case not being found?
I found this:
Under Windows you must uncomment the line with php_mbstring.dll in your php.ini
I don't know if you're running a windows box or not.