Page 1 of 1
What does this error mean? [SOLVED]
Posted: Tue May 13, 2014 8:18 am
by wmdvanzyl
I am getting this error after i moved the site from the staging server to the live server. The only difference i can find between the two servers are the PHP versions - the live server being 5.4.16 and the staging server being 5.3.23
Code: Select all
Notice: Problem with host setup. the finfo_open function does not exist in /public_html/modules/CGSmartImage/action.default.php
Re: What does this error mean? (with more info)
Posted: Tue May 13, 2014 8:40 am
by Tetsuo
I think you've answered your own question.
You will need to ensure that the function finfo_open is enabled on the version of PHP you are running. Check with your host if you cannot enable it locally, they should be able to help.
Re: What does this error mean? (with more info)
Posted: Tue May 13, 2014 8:54 am
by wmdvanzyl
Thanks - that was my initial feeling as well. The problem is that the Host (well the call centre support) says its not a problem on the server... which i don't agree with, BUT i wanted to check here.
There's always the chance that someone else had the issue and solved it by.. let's say.. clearing their cache (which i have tried).
Re: What does this error mean? (with more info)
Posted: Wed May 14, 2014 9:21 pm
by Rolf
Re: What does this error mean? (with more info)
Posted: Wed May 14, 2014 9:25 pm
by wmdvanzyl
Hi Rolf. Thanks for the reply. Are you suggesting that i obtain more php info? I think i have most of the relevant info pertaining to the issue.
I have spoken to the host and this is their response:
Code: Select all
The expected magic database format changed in PHP 5.3.11 and 5.4.1. Due to this, the internal magic database was upgraded. This mostly effects code where an external magic database is used: reading an older magic file will now fail. Also, some textual representations of the mime types has changed, for instance for PHP would be "PHP script, ASCII text" instead of "PHP script text" returned.
I don't know how accurate it is, but the difference in PHP versions is just about the only thing i can find, so i have requested that the domain be moved to a server with php version 5.3. If that is not the issue, then i can at least remove it from the list of possibilities.
Re: What does this error mean? (with more info)
Posted: Wed May 14, 2014 9:49 pm
by calguy1000
Test this php file:
<?php
if( function_exists('finfo_open') ) {
die("all good\n");
} else {
die("your host needs to fix this");
}
?>
Re: What does this error mean? (with more info)
Posted: Wed May 14, 2014 9:51 pm
by wmdvanzyl
Will do - thx. But only tomorrow... it's midnight here and i'm tired
The host moved my site back to a server with
PHP 5.3.23 and the issue has been resolved.
I will keep that snippet close-by for future use CG - thanks.