CGSmartImage quirk?

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
mrdevis
Forum Members
Forum Members
Posts: 14
Joined: Thu Jun 19, 2008 12:45 am

CGSmartImage quirk?

Post by mrdevis »

Hi,
I am experiencing a problem with CGSMartImage 1.21.12 (cmsms 2.2.2). On the template1200 I am using I get no images on the 'home' page. Images are in place, but when i dissect the page in a browser, it seems the url is not evaluated (from the template)::

Code: Select all

background: url("{CGSmartImage src="{content_image block='Page header image' dir='images/header' urlonly='1'}" filter_croptofit='1920,900' notag=1}") no-repeat top;
The image is included in the page, php extension fopen_info is enabled (php version 7.1.8).

I have been reading some other posts about this on the forum, but so far I have not found my 'case'.

Any help greatly appreciated!!
Jeroen


Config ::
----------------------------------------------

Cms Version: 2.2.2

Installed Modules:

AdminSearch: 1.0.4
Banners: 2.10
CGActionBar: 1.1.2
CGBetterForms: 1.0
CGBlog: 1.14.4
CGEcommerceBase: 1.6.2
CGExtensions: 1.56.2
CGJobMgr: 1.3.6
CGPaymentGatewayBase: 1.6.1
CGSimpleSmarty: 2.1.6
CGSmartImage: 1.21.12
CMSContentManager: 1.1.5
CMSMailer: 5.2.14
Captcha: 0.5.5
CmsJobManager: 0.1
DesignManager: 1.1.3
FileManager: 1.6.3
FilePicker: 1.0
FormBuilder: 0.8.1.6
Gallery: 2.3.2
HitCounter: 2.1.2
JQueryTools: 1.4.0.3
LinkMgr: 2.2
Markdown: 1.0
MetaMax: 2.1.6
MicroTiny: 2.2
ModuleManager: 2.1.1
NMS: 2.12.2
Navigator: 1.0.7
News: 2.51.2
PaypalGateway: 2.5.3
Search: 1.51.2
SitemapMgr: 1.5.1
TinyMCE: 3.2-beta3
Uploads: 1.25.8
Widgets: 1.1


Config Information:

php_memory_limit:
max_upload_size: 20000000
url_rewriting: mod_rewrite
page_extension: .html
query_var: page
auto_alias_content: true
locale:
set_names: true
timezone: Europe/Berlin
permissive_smarty: true


Php Information:

phpversion: 7.1.8
md5_function: On (True)
json_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_ALL: 22519
E_STRICT: 0
E_DEPRECATED: 0
test_file_timedifference: No time difference found
test_db_timedifference: No time difference found
create_dir_and_file: 1
memory_limit: 128M
max_execution_time: 120
register_globals: Off (False)
output_buffering: On
disable_functions:
open_basedir:
test_remote_url: Success
file_uploads: On (True)
post_max_size: 20M
upload_max_filesize: 20M
session_save_path: /usr/home/uuuuuuc/.tmp (0750)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)
check_ini_set: On (True)
curl: On


Performance Information:

allow_browser_cache: On (True)
browser_cache_expiry: 60
php_opcache: On (True)
smarty_cache: On (True)
smarty_compilecheck: Off (False)
auto_clear_cache_age: On (True)

Server Information:

Server Software: Apache
Server Api: cgi-fcgi
Server Os: Linux 3.16.0-4-amd64 On x86_64
Server Db Type: MySQL (mysqli)
Server Db Version: 5.7.19
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable


Permission Information:

tmp: /usr/www/users/uuuuuuc/tmp (0755)
tmp_cache: /usr/www/users/uuuuuuc/tmp/cache (0755)
templates_c: /usr/www/users/uuuuuuc/tmp/templates_c (0755)
modules: /usr/www/users/uuuuuuc/modules (0755)
uploads: /usr/www/users/uuuuuuc/uploads (0755)
File Creation Mask (umask): /usr/www/users/uuuuuuc/tmp/cache (0755)
config_file: 0644

----------------------------------------------
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: CGSmartImage quirk?

Post by calguy1000 »

First, I would change my block names to not include spaces. That's going to bite you sooner or later.

Next I would split out the calls so that you can see what data is actually being provided to CGSI.

i.e: {content_image block='whatever' dir='uploads/images' assign='img'}
{CGSmartImage src=$img ...}

Third, please report what the actual output img tag is. And check the various logs.

Also. CGSI can skip processing in some circumstances (i.e: no processing needs to occur, or ram is too tight, ...) , or may skip data-uri embedding depending on browser etc.
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.
mrdevis
Forum Members
Forum Members
Posts: 14
Joined: Thu Jun 19, 2008 12:45 am

Re: CGSmartImage quirk?

Post by mrdevis »

Number One was already the culprit... thanks!!!
Works like a charm now. Thanks for the tips!!

Best, Jeroen
Post Reply

Return to “Modules/Add-Ons”