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.
Related
I was managing my server and after a composer update I receive this message:
PHP Fatal error: Uncaught TypeError: Argument 1 passed to UserFrosting\System\Facade::setFacadeContainer() must be an instance of Interop\Container\ContainerInterface, instance of Slim\Container given, called in /home/arteller/www/userfrosting/app/system/UserFrosting.php on line 53 and defined in /home/arteller/www/userfrosting/app/system/Facade.php:210
After this, I receive only 500 Internal Error from my server.
The error persists every time I also try to use the command "php bakery bake" or something related to bakery.
Anyone can help?
You need to update to UserFrosting 4.3.3 or later, and run composer update again. This issue was introduced by Slim, which introduced a breaking change recently.
We recently went through a website migration, PHP & WP upgrades. We are currently using a customized theme and keep getting the following error once we upgrade from PHP 5.6 to 7.0:
Fatal error: Cannot redeclare get_resources() (...) /functions.php on line 220
Already changed all include to include_once, but still getting the same error.
Anyone ever went through a similar issue?
PHP introduced a function called get_resources() in PHP7:
get_resources
(PHP 7)
get_resources — Returns active resources
Read full manual entry here.
--
You'll have to upgrade your WordPress version to the latest out - the fix will be in there.
I have to work with some legacy PHP 4 code. I have PHP 5.4 installed on my machine and getting this nasty error:
"Fatal error: Call-time pass-by-reference has been removed in ..."
I already found a solution/fix, but it requires changes in existing code.
My questions is - is there a way to IGNORE this error? I don't want to fix it (as it requires a LOT of code changes), but ignore and do my work. I am looking for some kind of "config" change in PHP/Apache, so I do not need to mess with legacy code.
Yes, yes... I know that is not a good practice, but unfortunately that is what I need right now.
A fatal error cannot be stopped (this is why they are called fatal) - not even by stuff like set_error_handler.
You will have to change your code.
But fixing it should not be a huge problem, because the error is caused by & in function calls:
function test($param) { }
test(&$test); // fatal error
function test(&$param) { }
test($test); // no error
Documentation:
As of PHP 5.3.0, you will get a warning saying that "call-time pass-by-reference" is deprecated when you use & in foo(&$a);.
And as of PHP 5.4.0, call-time pass-by-reference was removed, so using it will raise a fatal error.
So to make a (very) nasty workaround, you could install PHP 5.3.0 :(
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
I'm getting the following error
Fatal error: Class entry requested for an object without PHP class
when running the code below in 70% of tries with Xdebug active:
if (isset($billingData['email'])) {
$this->email = $billingData['email'];
}
The line where it fails actually depends on the line where the breakpoint is set.
I tend to connect that issue with 5.4.x (I have PHP 5.4.9-4ubuntu2.1 with Xdebug v2.2.3), because the error doesn't occur on 5.3.x. When Xdebug is active, NetBeans throws
Socket Exception occured
If you have any Watches, try to remove them and restart debugger. If removing Watches doesn't help or you don't have any Watches, please file an issue and provide the exact steps to reproduce your problem. Please attach the IDE log. Attaching your project would also be very helpful.
When not debugging, the script just silently fails with "ERR_EMPTY_RESPONSE" error in Chrome.