Page 1 of 1

Fault with products containing attributes

Posted: Fri May 02, 2014 7:09 pm
by CapereSpiritum
Hi

I have a site that's been live for a few weeks. It has just developed a fault in Products with additional Options and not with Products without Options.

I have NOT made any changes to Products or Cart2 templates nor any other modules.

Everything worked fine until about 2.00pm today (UK time).

The error page says...
Invalid compiled template for 'string: {strip}{$opt->text}: {$currency_symbol}{$price|number_format:2}{if $discount ne ''} ({$mod->Lang('yousave')} {$currency_symbol}{$discount|number_format:2}){/if}{/strip}'
I have tried reverting to the Sample Cart2 Template without change.

The Site can be found here.

This is an example of the error URL

The site is using the following CMSMS & Modules

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.38.7
FrontEndUsers: 1.22.3
CGSimpleSmarty: 1.7.2
CustomContent: 1.9
JQueryTools: 1.2.6
Products: 2.20.1
CGEcommerceBase: 1.4.3
Cart2: 1.1
CGPaymentGatewayBase: 1.2.2
Orders: 1.15.3
RBSWorldPay: 1.0.3
PaypalGateway: 2.3.11
FormBuilder: 0.7.3
CompanyDirectory: 1.21.1
CGSmartImage: 1.16

Config Information:

php_memory_limit:
process_whole_template:
max_upload_size: 40000000
url_rewriting: mod_rewrite
page_extension: .html
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.27
md5_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_STRICT: 0
E_DEPRECATED: 0
memory_limit: 120M
max_execution_time: 50000
output_buffering: 0
safe_mode: Off (False)
file_uploads: On (True)
post_max_size: 8M
upload_max_filesize: 40M
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 (mysqli)
Server Db Version: 5.1.73
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable
Server Time Diff: No filesystem time difference found

Re: Fault with products containing attributes

Posted: Fri May 02, 2014 7:56 pm
by calguy1000
Working sites don't just magically break.

So either, you changed something, or your host changed something or encountering a silly error like out of disk/quota space or time limit exceeded which results in a partially compiled template, and therefore an error.

1. Check your error logs. Make sure they are enabled.
2. Isolate the problem to the specific area of code

Re: Fault with products containing attributes

Posted: Sun May 04, 2014 1:48 pm
by CapereSpiritum
Hi Calguy

It has started working again without any changes by me...!

There were no quota issues or such like.

My server host 1and1 have recently got very slow.

I'm in the process of migrating to another server.

Do you know of a Module that can back up and restore ALL files, Global Content Blocks, Modules etc etc.... ?