Page 1 of 1
[SOLVED] CGSmartImage and finfo_open error
Posted: Wed Jun 19, 2013 4:12 pm
by webform
I have a weird problem!
I'm setting up a new site and as usual using CGSmartImage to handle images. But this time the page breaks and i get this error in the logs:
Code: Select all
PHP Fatal error: Call to undefined function finfo_open()
The weird part is i have other sites on the very same server using CGSmartImage and same version core and modules, but without errors!
What can possible be wrong?
Cms Version:
1.11.7
Installed Modules:
CGExtensions:
1.35
CGSimpleSmarty:
1.6.2
CGSmartImage:
1.10.10
phpversion:
5.3.21
Re: CGSmartImage and finfo_open error
Posted: Thu Jun 20, 2013 12:46 pm
by webform
Talked to the host and they confirm it's the same server config for all my domains and subdomains.
So i'm confused why only 2 sites report finfo_open error

Re: CGSmartImage and finfo_open error
Posted: Thu Jun 20, 2013 5:34 pm
by calguy1000
well, obviously one "one of those sites is not like the others".
finfo_open is a standard function unless you're on windoze.
http://php.net/manual/en/function.finfo-open.php
Re: CGSmartImage and finfo_open error
Posted: Thu Jun 20, 2013 9:42 pm
by webform
No it's a Linux server.
I'm working on 3 new sites.
1 i installed core and modules last month and all is up to date - Here is CGExtension/CGSmartImage working without a problem.
2 new sites i installed this week and core and modules is up-to-date - Here is CGExtension/CGSmartImage not working but gives me finfo_open error.
Core and modules are the same on all 3 and are hosted on the same server (different subdomains).
I've tried to reinstall CGExtension/CGSmartImage to no avail.
I've tried to downgrade and reinstall CGExtension/CGSmartImage to no avail.
I've tried to delete all both core and modules and reinstall to no avail.
I've tried to downgrade and install cmsms 1.11.6, CGExtension 1.34 and CGSmartImage 1.10.9 to no avail.
So i'm open to suggestion what the problem can be where 1 site works and 2 others don't on the same server with the same version core and modules

Re: CGSmartImage and finfo_open error
Posted: Thu Jun 20, 2013 11:16 pm
by calguy1000
if it works on one site and not on 2 on the same server, then obviously there is some difference between the configurations of the sites. You will have to find it.
finfo_fopen is a standard PHP 5.3 function. it should be there.
Re: CGSmartImage and finfo_open error
Posted: Fri Jun 21, 2013 11:00 am
by webform
Can it be something in the database?
I've tried to copy "the good" files and database to one of the sites not working and now it's working.
I've tried to copy "the good" files but not the database to the other site not working - And here it's still not working!
So it seems something is wrong in the database and keep going wrong despite several fresh reinstalls of core and modules (and no errors)

Re: CGSmartImage and finfo_open error
Posted: Tue Jun 25, 2013 2:00 pm
by webform
Now the host tells me they don't have info_open in their version of PHP 5.3.x. But that still leaves the question how my other sites with CGSmartImage is still working

Re: CGSmartImage and finfo_open error
Posted: Tue Jun 25, 2013 3:09 pm
by calguy1000
Still points to server/site config issues and not to cmsms or cgsmartimage
Re: CGSmartImage and finfo_open error
Posted: Tue Jun 25, 2013 5:06 pm
by webform
But wouldn't the other sites with CGSmartImage on the same server stop working if finfo_open is absent - I really don't get it

Re: CGSmartImage and finfo_open error
Posted: Tue Jun 25, 2013 5:52 pm
by calguy1000
like I said earlier:
If you have one site that is working properly, and 2 sites that aren't ON THE SAME SERVER.... with identical versions of CMSMS and identical versions of modules across ALL 3 sites....then it's a server issue.
compare the phpinfo() on all 3 sites. there HAS to be a difference that you can take back to your host.
php's finfo_open function is a standard PHP 5.3 function. It should be available. if it isn't it's a fault of your server's custom PHP build.
Re: CGSmartImage and finfo_open error
Posted: Tue Jun 25, 2013 8:45 pm
by webform
Compared the phpinfo for all 3 sites and no difference at all!
Does this, i found in all 3 under "Configure Command", tell that finfo is present and enabled on the server?:
Re: CGSmartImage and finfo_open error
Posted: Tue Jun 25, 2013 9:11 pm
by webform
I've made a discovery comparing SQL dumps from the different sites;
Image Embedding Mode set to "None" in CGSmartImage settings, seems to be the solution for the newer versions of CGSmartImage and CGExtensions on PHP 5.3.x.
Re: CGSmartImage and finfo_open error
Posted: Tue Jun 25, 2013 9:12 pm
by calguy1000
incorrect. You have a server issue somewhere. Embedding is a valuable way to save system resources.
Re: [SOLVED] CGSmartImage and finfo_open error
Posted: Tue Jun 25, 2013 9:18 pm
by webform
I just know i've tested on the sites causing me problems and now they are working for the first time.
Thank you for your time and patience. Hopefully i learn more down the road and find a better solution.