I am trying to upgrade to catch up with the developments. But I am running in to a challenge that I don't know how to solve. When I open the site I get this: When logged in to the admin panel the site works fine.
In my template i am using the following code:
Code: Select all
{capture assign='adminname'}{$smarty.session.cms_admin_username}{/capture}
{if $adminname eq ''}{LessCSS}{else}{cms_stylesheet}{/if}
Code: Select all
$smarty.session.cms_admin_username
Code: Select all
$smarty.session.cms_admin_user_id
Your help is mostly welcome. Thank you.
Here is the system information:
----------------------------------------------
Cms Version: 1.11.13
Installed Modules:
CMSMailer: 5.2.2
FileManager: 1.4.5
MenuManager: 1.8.6
ModuleManager: 1.5.8
News: 2.15
Printing: 1.1.2
Search: 1.7.12
ThemeManager: 1.1.8
TinyMCE: 2.9.12
FormBuilder: 0.7.1
CGExtensions: 1.27.2
SiteMapMadeSimple: 1.2.5
CMSPrinting: 1.0.5
MicroTiny: 1.2.9
LessCSS: 0.1
CodeMangler: 0.1.3
ToolBox: 1.0.1
Config Information:
php_memory_limit:
process_whole_template:
max_upload_size: 16000000
url_rewriting: mod_rewrite
page_extension: /
query_var: page
image_manipulation_prog: GD
auto_alias_content: true
locale: nl_NL
default_encoding: utf-8
admin_encoding: utf-8
set_names: true
Php Information:
phpversion: 5.6.19
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: 16M
upload_max_filesize: 16M
session_save_path: /var/lib/php/session (1733)
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.5.47
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable
Server Time Diff: No filesystem time difference found
----------------------------------------------
solution was to replace the code with plain {cms_stylesheet}