[SOLVED] CGSmartImage and finfo_open error

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
User avatar
webform
Power Poster
Power Poster
Posts: 524
Joined: Sat Nov 25, 2006 3:39 pm

[SOLVED] CGSmartImage and finfo_open error

Post 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
Last edited by webform on Tue Jun 25, 2013 9:11 pm, edited 1 time in total.
User avatar
webform
Power Poster
Power Poster
Posts: 524
Joined: Sat Nov 25, 2006 3:39 pm

Re: CGSmartImage and finfo_open error

Post 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 ???
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: CGSmartImage and finfo_open error

Post 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
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
webform
Power Poster
Power Poster
Posts: 524
Joined: Sat Nov 25, 2006 3:39 pm

Re: CGSmartImage and finfo_open error

Post 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 ???
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: CGSmartImage and finfo_open error

Post 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.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
webform
Power Poster
Power Poster
Posts: 524
Joined: Sat Nov 25, 2006 3:39 pm

Re: CGSmartImage and finfo_open error

Post 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) ???
User avatar
webform
Power Poster
Power Poster
Posts: 524
Joined: Sat Nov 25, 2006 3:39 pm

Re: CGSmartImage and finfo_open error

Post 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 ???
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: CGSmartImage and finfo_open error

Post by calguy1000 »

Still points to server/site config issues and not to cmsms or cgsmartimage
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
webform
Power Poster
Power Poster
Posts: 524
Joined: Sat Nov 25, 2006 3:39 pm

Re: CGSmartImage and finfo_open error

Post 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 ???
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: CGSmartImage and finfo_open error

Post 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.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
webform
Power Poster
Power Poster
Posts: 524
Joined: Sat Nov 25, 2006 3:39 pm

Re: CGSmartImage and finfo_open error

Post 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?:

Code: Select all

--enable-fileinfo=shared
User avatar
webform
Power Poster
Power Poster
Posts: 524
Joined: Sat Nov 25, 2006 3:39 pm

Re: CGSmartImage and finfo_open error

Post 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.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: CGSmartImage and finfo_open error

Post by calguy1000 »

incorrect. You have a server issue somewhere. Embedding is a valuable way to save system resources.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
webform
Power Poster
Power Poster
Posts: 524
Joined: Sat Nov 25, 2006 3:39 pm

Re: [SOLVED] CGSmartImage and finfo_open error

Post 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.
Locked

Return to “Modules/Add-Ons”