Page 1 of 1

CGSmartImage "Problem with host setup."

Posted: Tue Oct 15, 2013 12:04 pm
by wmdvanzyl
Does anyone know how to remedy this problem?

Code: Select all

Problem with host setup. the finfo_open function does not exist
----------------------------------------------

Cms Version: 1.11.7

Installed Modules:

CMSMailer: 5.2.1
CMSPrinting: 1.0.4
FileManager: 1.4.3
MenuManager: 1.8.5
MicroTiny: 1.2.5
ModuleManager: 1.5.5
News: 2.12.12
Search: 1.7.8
ThemeManager: 1.1.8
CGExtensions: 1.37.2
CGSmartImage: 1.12.1
AceEditor: 0.2.5
TinyMCE: 2.9.12
TemplateExternalizer: 2.0.11
Showtime: 3.3
FormBuilder: 0.7.4
Gallery: 1.6.1


Config Information:

php_memory_limit:
process_whole_template:
max_upload_size: 2000000
url_rewriting: none
page_extension:
query_var: page
image_manipulation_prog: GD
auto_alias_content: true
locale:
default_encoding: utf-8
admin_encoding: utf-8
set_names: true


Php Information:

phpversion: 5.4.19
md5_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_STRICT: 2048
E_DEPRECATED: 0
memory_limit: 32M
max_execution_time: 30
output_buffering: On
safe_mode: Off (False)
file_uploads: On (True)
post_max_size: 8M
upload_max_filesize: 2M
session_save_path: /tmp (1777)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)


Server Information:

Server Api: cgi-fcgi
Server Db Type: MySQL (mysql)
Server Db Version: 5.1.70
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable

Re: CGSmartImage "Problem with host setup."

Posted: Tue Oct 15, 2013 6:32 pm
by Dr.CSS
It depends on your host/server sometimes it can be fixed in .htaccess or if you get to it the php.ini file, contact your host and ask them which will work, they may have to do it...

Re: CGSmartImage "Problem with host setup."

Posted: Tue Oct 15, 2013 7:45 pm
by wmdvanzyl
Dr.CSS wrote:It depends on your host/server sometimes it can be fixed in .htaccess or if you get to it the php.ini file, contact your host and ask them which will work, they may have to do it...
Contacted my hosting provider. They added it and the issue was resolved, but now i get this issue:

Code: Select all

-- Missing Languagestring - module:CGSmartImage string:error_insufficientmemory--
How much memory does CGSmartImage need? What is the name of the setting i should be looking in to?

Re: CGSmartImage "Problem with host setup."

Posted: Tue Oct 15, 2013 9:10 pm
by Dr.CSS
You can look in the system information page to see if you have any yellow !, most likely there is one on the memory line and during install/upgrade they show...

Re: CGSmartImage "Problem with host setup."

Posted: Tue Oct 15, 2013 9:16 pm
by calguy1000
CGSI looks for 2x the amount of memory required to store the image to guess a reasonable minimum amount of memory required.

which is width * height * bits (default 8) * channels (default 3) / 8 + 65535

for a 64x64 png image that's ~150k.

Actual memory required can be higher for the same image depending upon the filter and operations you are performing. i.e: running numerous resize, transformations, rotations, watermarking images, etc.

Re: CGSmartImage "Problem with host setup."

Posted: Sat Oct 19, 2013 8:11 pm
by wmdvanzyl
calguy1000 wrote:CGSI looks for 2x the amount of memory required to store the image to guess a reasonable minimum amount of memory required.

which is width * height * bits (default 8) * channels (default 3) / 8 + 65535

for a 64x64 png image that's ~150k.

Actual memory required can be higher for the same image depending upon the filter and operations you are performing. i.e: running numerous resize, transformations, rotations, watermarking images, etc.
So in short - use a smaller original image. :) Uploading to the Gallery (the module) i can force auto resize upon upload, but not when using Image Manager. Is there maybe a replacement module for Image Manager - ideally something that uses CGExtensions, b/c then i can use CGExtension to resize uploaded images.

Re: CGSmartImage "Problem with host setup."

Posted: Sat Oct 19, 2013 9:06 pm
by calguy1000
In short.... 32MB is prolly not enough memory. Having another module may not solve the problem.