My setup:
My code:Cms Version: 2.2.10
Installed Modules:
CGBetterForms: 1.10.4
CGExtensions: 1.65.2
CGSimpleSmarty: 2.2.1
CGSmartImage: 1.22.7
CMSContentManager: 1.1.7
Captcha: 1.0
DesignManager: 1.1.6
ECB2: 1.5.3
FileManager: 1.6.8
FilePicker: 1.0.4
Gallery: 2.4.2
MicroTiny: 2.2.4
ModuleManager: 2.1.6
Navigator: 1.0.9
SitemapMgr: 1.5.5
myHabitat: 1.0.0
Config Information:
php_memory_limit:
max_upload_size: 512000000
url_rewriting: mod_rewrite
page_extension: /
query_var: page
auto_alias_content: true
locale:
set_names: true
timezone: Europe/London
permissive_smarty: false
Php Information:
phpversion: 7.2.28
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: 90
register_globals: Off (False)
output_buffering: 4096
disable_functions: apache_child_terminate, apache_get_modules, apache_get_version, apache_getenv, apache_note, apache_setenv, dl, highlight_file, leak, passthru, show_source, symlink, system, pcntl_fork
open_basedir:
test_remote_url: Success
file_uploads: On (True)
post_max_size: 96M
upload_max_filesize: 512M
session_save_path: /opt/alt/php72/var/lib/php/session (0700)
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: Off (False)
smarty_cache: Off (False)
smarty_compilecheck: Off (False)
auto_clear_cache_age: On (True)
Server Information:
Server Software: LiteSpeed
Server Api: litespeed
Server Os: Linux 3.10.0-962.3.2.lve1.5.27.el7.x86_64 On x86_64
Server Db Type: MySQL (mysqli)
Server Db Version: 10.3.22
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable
Permission Information:
tmp: /home/habitaft/new.habitatlandscapes.co.uk/tmp (0755)
tmp_cache: /home/habitaft/new.habitatlandscapes.co.uk/tmp/cache (0755)
templates_c: /home/habitaft/new.habitatlandscapes.co.uk/tmp/templates_c (0755)
modules: /home/habitaft/new.habitatlandscapes.co.uk/modules (0755)
uploads: /home/habitaft/new.habitatlandscapes.co.uk/uploads (0755)
File Creation Mask (umask): /home/habitaft/new.habitatlandscapes.co.uk/tmp/cache (0755)
config_file: 0644
Code: Select all
{sendtest body=$smarty.post.name}
{session_put var="ContactName" value=$smarty.post.name}
{session_put var="ContactName2" value="test"}
Code: Select all
mail("my@email.address", "Test", $params['body']);
Code: Select all
-- {$smarty.session.ContactName} -- {$smarty.session.ContactName2} --
- I get an email with the correct POSTed name set as the body of the email - WORKING
- The "another page" reads "-- -- test --" - ONLY PART WORKING (missing first variable)
My summary:
- CGSimpleSmarty IS setting session variables when they're hard-coded into the command
- CGSimpleSmarty IS NOT setting session variables when they're being set from a variable (which I need)
- The POST variable is correct as I get the correct results via email
Any, and I mean ANY, help appreciated at this point.