I've got a client who has just set up a new VPN and is attempting to install my plugin.
He's getting the following error:
Fatal error: Call to undefined method SplFileInfo::getRealPath() on the commented line below. This appears to have something to do with the ZEND libraries. Any ideas what I should tell him to do?
If you are getting the undefined error means you have lower version of PHP.
The function is supported after PHP 5.2.2
SplFileInfo::getRealPath
(PHP 5 >= 5.2.2)
SplFileInfo::getRealPath — Gets
absolute path to file
http://php.net/manual/en/splfileinfo.getrealpath.php
Related
I installed prestashop using softaculous, my php version is 5.2.17 and despite of that it shows this
ERROR: Fatal error: Call to undefined function mysql_connect() in /home/adeego/public_html/prestashop/classes/db/MySQL.php on line 51
If I go changing php version then it will be very painful to change every mysql_ into mysqli_ or pdo_mysqli_.
What is the best solution?
I have php 5.6 version but still face that error
I'm using Cpanel to run a codeigniter project and I got this error:
PHP Fatal error: Call to undefined function json_decode() in/home/ntn/public_html/application/controllers/Login.php on line 69
I don't know how to solve this error
How can I resolve this error?
Unless you show your code, I cannot help you because call to undefined function is means it is calling a function which is not defined or mention in your code. its not a cpanel error for sure. its an error in your code
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
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
<?php
$name=DateTimeZone::listIdentifiers(DateTimeZone::PER_COUNTRY, "US");
print_r($name);
?>
Working fine in localhost. But when i am trying it online i m getting error Fatal error: Undefined class constant 'PER_COUNTRY' on line 1
That is a PHP 5.3 or greater function. So your server version on your live server is not >= PHP 5.3
See here: http://www.php.net/manual/en/datetimezone.listidentifiers.php
Check your versions of PHP: PER_COUNTRY was added with 5.3.0