Call to undefined function enchant_broker_init() - php

I am trying to implement the tinyMCE spellchecker plugin and I have encountered a problem with enabling PHPs enchant module.
The following code
$enchant = enchant_broker_init();
print_r($enchant);
Returns the following error
Fatal error: Call to undefined function enchant_broker_init()
I am running PHP v5.4.30 on Mac OSX 10.9.5 if that helps at all.
Do I need to do anything in Terminal to enable it or should it already be enabled?

Related

Fatal error: Uncaught Error: Call to undefined function PDFNet_Initialize

I am trying to run PDFTron for php following the instructions.
However, when called: PDFNet::Initialize(); i'm getting an error
Fatal error: Uncaught Error: Call to undefined function PDFNet_Initialize() in .../PDFNetPHP_core.php
I assume that PDFNet_Initialize is part of extension because i can't see declaration in PDFNetPHP_core.php file
I setup exenstion PDFNetPHP.so and enable_dl = on in php.ini. Also when i run test in PDFNetWrappers/Samples/AddImageTest/PHP then it's looks ok:
PDFNet is running in demo mode.
Permission: write
Done. Result saved in addimage.pdf...<br />
when i run php -m module PDFNetPHP is on list
what am I doing wrong?
If the sample code is working on your end, it's likely that your project is unable to find the libPDFNetC.soshared library. The RunTest.sh in the AddImageTest sample sets the following environment variable:
export LD_LIBRARY_PATH=../../../PDFNetC/Lib
You might need to add the .so explicitly, or at least put the .so in a folder that PHP will load .so files from. See your PHP documentation. Please also see the following post:
https://stackoverflow.com/a/35442777/3761687

Fatal error: Uncaught Error: Call to undefined function mb_detect_encoding() in Uniform Server with PHP 7.2

I'm using Uniform Server with PHP 7.2 and upon running a php page I made I get this error.
Fatal error: Uncaught Error: Call to undefined function mb_detect_encoding()
When I try to enable the mbstring php module (and other modules) through the graphical user interface I get this.
So when I do it manually, my php_production.ini looks like this. I have used Uniform Server to select that php settings file.
extension=gd2
extension=mbstring
extension=exif ; Must be after mbstring as it depends on it
extension=mysqli
So why do I still get the error if I have enabled the modules manually via the text editor?
Here is my phpinfo.
Below is the contents of C:\Users\Documents\UniServerZ\core\php72\extensions
The developer of Uniform Server managed to fix the problem, saying so in this post.
Ok.. Thanks for bringing this up.. Looks like made a mistake on the spelling on the extensions folder. Please rename the /core/php72/extentions to /core/php72/extensions and everything should work as expected.. I have updated the module in Sourceforge.

Fatal error: Call to undefined function printer_list()

So Im busy with this project that involves printing. I found a class online to do so. But when I try to test it, I get the following error:
Fatal error: Call to undefined function printer_list() in /Applications/XAMPP/xamppfiles/htdocs/barcode/Sample.php on line 9
And I know that I probably should install an extention, but how which one and how to do so? I use Xampp on OSX Yosemite.
The printer extension working only on Windows
printer_list() id deprecate in new php

Fatal error: f_imageloadfont is not supported: NYI in HHVM

Getting the following error from gd using HHVM 3.7.1
Fatal error: f_imageloadfont is not supported: NYI
I couldn't help to ask as I didn't find any information about how to fix it.
This error did not happen to occur in PHP 5.3, 5.4 and 5.6 (didn't test 5.5).
Update: If you are interested - I opened an issue.
The main part here is imageloadfont is not supported, which means calling it will cause a fatal error like the one you're seeing.
You could open an issue about it to see if it can be implemented, or if the HNI definition can be removed so that a function_exists for it fails.

Drupal Fatal error: Call to undefined function views_get_enabled_views()

I use drupal 7.22 with Apache 2.2 , mysql 5.5 and PHP 5.3.
I'm having the error of WSOD, and when I enable the error message, it shows:
Fatal error: Call to undefined function views_get_enabled_views() in
/var/www/drupal7/sites/all/modules/admin_menu/admin_menu.map.inc on
line 150
It happens when I migrate the whole drupal to another system, or when I update the core to the recent released version, WHERE I enter the username and password to access the administration page ( /drupal-address/user).
You got this error because of view does not support some function of new drupal
check last reply on this link
https://drupal.org/node/1778470
Also
https://drupal.org/node/1170192

Categories