snmp_set_enum_print undefined? - php

I have A really simple PHP script that is failing. When I run it, I am getting this message in my apache error log:
PHP Fatal error:  Call to undefined function snmp_set_enum_print()
Here is the full PHP script:
<?php
snmp_set_enum_print(0);
?>
I upgraded my Net-SNMP libraries to v5.5 and I am still getting this error. What am I missing?

The problem was that I had to update the /etc/rc.d/rc.snmptrapd to accept unauthorized v3 traps.

Related

PHP - Interbase - Call to undefined function ibase_connect()

I'm trying to connect to a Firebase Database server but I'm getting:
PHP Fatal error: Uncaught Error: Call to undefined function ibase_connect()
It was working good, but today it started to throw that error. I've been for the last hours searching on the internet in every page, even in Portuguese, but nothing helps.
Almost in every post they are dealing with W/L/XAMPP, but that doesn't help.
I'm trying this on a valueserver shared host (I don't even know which company is that). PHP Version: 7.2.1
The file is running via cron job.
This is what I'd tried:
Verify in php.ini that interbase is uncommented.
Look for server errors (none).
Please I don't know what to do.

"undefined function exif_read_data()" error only via Cron

I am facing trouble running a PHP script via Cron. When I execute the same script from a browser, it works just fine.
The Cron service outputs this error:
PHP Fatal error: Call to undefined function exif_read_data() in /homessd/xxx/my-functions.php on line 88
As suggested by jotik, i have checked with my hosting provider and found that a different php was being used via cron which was creating the problem. After fixing the path to correct php, the problem is solved.

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.

"Fatal error: Call to undefined function" resulting in particular local server, but ran well in others'

I'm developing a PHP application which generating reports to PDF
Right now I'm facing some troubles
I'm working from my own computer with XAMPP Server and the code ran well
But when I copied the codes to my office's WAMP5 Version 1.6.5 Server I got errors
Fatal error: Call to undefined function array_fill_keys() in D:\wwwroot\tcpdf\include\tcpdf_fonts.php on line 1848
I went to that troubled line and removed it, but another Fatal error: Call to undefined function occured
Is there something wrong with my WAMP5 configuration?
Thanks
Your version of php is to old... as Royal Bg suspected.
Either upgrade to 1.6.6 for php 5.2. But if there is no reason to use such an old version switch to something less than 7 years old :)
see:
http://sourceforge.net/p/wampserver/news/?source=navbar

Ion Auth - "sess_destroy()" Fatal Error when logging out

I have downloaded the very latest version of IonAuth for Codeigniter on GitHub. It is a very good library however when I try to logout after logging in I get the following error (which I've had in previous builds) - I know I can just comment the lines out but is there a reason for the errors?
Fatal error: Call to undefined method CI_Session::sess_destroy() ....\Ion_auth.php on line 381
I just kept them commented out.. seems to wrk

Categories