[SOLVED] CGSmartImage does not work

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
User avatar
frankmanl
Power Poster
Power Poster
Posts: 425
Joined: Sat Jul 12, 2008 3:50 am

[SOLVED] CGSmartImage does not work

Post by frankmanl »

I can't get CGSmartImage to work.
See <case solved, URL removed>.
Here the image is inserted using a normal img tag:

Code: Select all

<img src="uploads/images/michael.jpg" alt="michael" width="500" height="185" />
The next tab uses CGSmartImage:

Code: Select all

{CGSmartImage src="uploads/images/michael.jpg" alt="michael" }
which works fine.
But when I want to thumbnail the image all goes wrong, as you can see on the next tab (NOT working CGSmartImage):

Code: Select all

{CGSmartImage src="uploads/images/michael.jpg" alt="michael" alias="std_thumbnail" }
I use a fresh install of CMSMS 1.11 and can't find out what is wrong.
Anyone ideas?

Frank

----------------------------------------------

Cms Version: 1.11.9

Installed Modules:

CMSMailer: 5.2.2
CMSPrinting: 1.0.5
FileManager: 1.4.3
MenuManager: 1.8.6
MicroTiny: 1.2.5
ModuleManager: 1.5.5
News: 2.14.1
Search: 1.7.11
ThemeManager: 1.1.8
CGExtensions: 1.37.3
CGSmartImage: 1.14
TinyMCE: 2.9.12


Config Information:

php_memory_limit:
process_whole_template:
max_upload_size: 50000000
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.5.5
md5_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_STRICT: 0
E_DEPRECATED: 0
memory_limit: 128M
max_execution_time: 120
output_buffering: 4096
safe_mode: Off (False)
file_uploads: On (True)
post_max_size: 32M
upload_max_filesize: 50M
session_save_path: /tmp (0777)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)


Server Information:

Server Api: cgi-fcgi
Server Db Type: MySQL (mysqli)
Server Db Version: 5.1.41
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable
Server Time Diff: No filesystem time difference found


----------------------------------------------
Last edited by frankmanl on Sun Dec 01, 2013 9:53 am, edited 2 times in total.
Stikki

Re: CGSmartImage does not work

Post by Stikki »

Enable error reporting with in PHP if you wanna get even slightest idea what is going on.
User avatar
frankmanl
Power Poster
Power Poster
Posts: 425
Joined: Sat Jul 12, 2008 3:50 am

Re: CGSmartImage does not work

Post by frankmanl »

I added

Code: Select all

$config['debug'] = true;
to my config.php file as advised in the documentation (http://docs.cmsmadesimple.org/troublesh ... debug-mode).
At the front end this does not make any difference (also no error or warning or notice in the html source).
At the back end I do see lots of debug lines (to start with a pop up), but these all seem to be about the backend.
So, is this line in config.php what you meant?
Stikki

Re: CGSmartImage does not work

Post by Stikki »

Won't help if i can't see PHP errors occuring in that page.

so enable PHP error reporting. CMSMS debug is useless in this case.
User avatar
frankmanl
Power Poster
Power Poster
Posts: 425
Joined: Sat Jul 12, 2008 3:50 am

Re: CGSmartImage does not work

Post by frankmanl »

I disabled the line in config.php
I added to my php.ini file:

Code: Select all

int error_reporting ( )
Results in:

Code: Select all

Warning: imagecreatefromstring(): No JPEG support in this PHP build in /home/vhosts/beaufort-extra.nl/subdomains/beauf/httpdocs/modules/CGSmartImage/lib/class.CGImageBase.php on line 93

Warning: imagecolortransparent() expects parameter 1 to be resource, boolean given in /home/vhosts/beaufort-extra.nl/subdomains/beauf/httpdocs/modules/CGSmartImage/lib/class.CGImageBase.php on line 96

Fatal error: Call to undefined function imageftbbox() in /home/vhosts/beaufort-extra.nl/subdomains/beauf/httpdocs/modules/CGSmartImage/lib/class.CGImage_Watermark_Filter.php on line 87
Stikki

Re: CGSmartImage does not work

Post by Stikki »

Okey, now we getting somewhere.

Your PHP GD extension dosen't support JPEG :)

Check with your host.
User avatar
frankmanl
Power Poster
Power Poster
Posts: 425
Joined: Sat Jul 12, 2008 3:50 am

Re: CGSmartImage does not work

Post by frankmanl »

Is it really that simple? I'll check my host.
Thanks.
Frank
User avatar
frankmanl
Power Poster
Power Poster
Posts: 425
Joined: Sat Jul 12, 2008 3:50 am

Re: CGSmartImage does not work

Post by frankmanl »

This function is not included in the PHP5.5 installation provided. I'll have to use PHP 5.3 (in which it is).
Stikki

Re: [SOLVED] CGSmartImage does not work

Post by Stikki »

There is no notice about removal or deprecation regarding this function, there fore i think it's just configuration difference between your hosts 5.5 and 5.3 PHP setup.

source: http://www.php.net/manual/en/function.i ... string.php
User avatar
frankmanl
Power Poster
Power Poster
Posts: 425
Joined: Sat Jul 12, 2008 3:50 am

Re: [SOLVED] CGSmartImage does not work

Post by frankmanl »

It is my host's setup, Stikki, they will change that somewhere in the next couple of months.
Post Reply

Return to “Modules/Add-Ons”