Page 1 of 1

Newest version of CGSmartImage does not work in CSS

Posted: Thu Aug 15, 2013 3:29 pm
by wmdvanzyl
I updated CGExtensions and CGSmartImage to versions 1.37.2 and 1.12 respectively and instead of my site, i see my CSS file. Uninstalling CGSmartImage makes my site appear without any styling. CGSmartImage works perfectly when used in my template, but since the update i cannot use it in my stylsheets. I see no indication of change of usage in the module description.

This is how i use it in the stylesheet and it completely breaks my site:

Code: Select all

background-image: url([[CGSmartImage src='uploads/theme/img/pageHeaderBG.png' filter_resize='w,1020,1' filter_crop='70,l,c']]);
Same code in template which works:

Code: Select all

{CGSmartImage src='uploads/theme/img/pageHeaderBG.png' filter_resize='w,1020,1' filter_crop='70,l,c'}
Any ideas?

Re: Newest version of CGSmartImage does not work in CSS

Posted: Thu Aug 15, 2013 4:27 pm
by calguy1000
Please Post system information.

Check error logs for messages?

Clear cache and search the generated CSS file for any invalid code that may be a message output in the generated CSS?

Re: Newest version of CGSmartImage does not work in CSS

Posted: Thu Aug 15, 2013 4:58 pm
by wmdvanzyl
calguy1000 wrote:Please Post system information.

Check error logs for messages?

Clear cache and search the generated CSS file for any invalid code that may be a message output in the generated CSS?
I will have to get back to you on that. I have a demo with the client first thing Friday morning, so i rolled back the versions one step and everything is working again. After the demo i will update again and then post those results.


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

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
TinyMCE: 2.9.12
AceEditor: 0.2.5
TemplateExternalizer: 2.0.11
CGExtensions: 1.37.2
CGSmartImage: 1.11


Config Information:

php_memory_limit:
process_whole_template:
max_upload_size: 16000000
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.3.10-1ubuntu3.7
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: 60
output_buffering: 4096
safe_mode: Off (False)
file_uploads: On (True)
post_max_size: 16M
upload_max_filesize: 16M
session_save_path: /var/lib/php5 (1733)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)


Server Information:

Server Api: apache2handler
Server Db Type: MySQL (mysql)
Server Db Version: 5.5.32
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable


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

Re: Newest version of CGSmartImage does not work in CSS

Posted: Mon Sep 02, 2013 9:08 pm
by Rolf
Is the file path in the stylesheet correct? Perhaps needs root url...

Re: Newest version of CGSmartImage does not work in CSS

Posted: Mon Sep 02, 2013 10:47 pm
by wmdvanzyl
Haven't checked this in a while. Rolling back to previous version solved my issues and i chose to make the problem go away by ignoring it. That always works out well long term :p

Perhaps it has been fixed, i will try it again tomorrow.

Re: Newest version of CGSmartImage does not work in CSS

Posted: Tue Sep 03, 2013 1:06 am
by calguy1000
I just tested. it works fine in stylesheets.