Page 1 of 1

[SOLVED] Fatal Error with smarty {debug}

Posted: Sun Jun 29, 2008 6:55 am
by superwad
I'm working with FEU and SelfRegistration.  I'm running into a problem where {$sitename} isn't showing up properly on the "Thank you for registering" page.  Instead of the site name, it shows up with the install URL.

So I go to the thanks page and put in {debug} to see what variables I have to work with, and I get this:

Code: Select all

Smarty Debug Console
included templates & config files (load time in seconds)

no templates included
assigned template variables
{$SCRIPT_NAME} 	"/cmsms/index.php"
{$actionid} 	"m3"
{$actionparams} 	Array (3)
mode => "subscribe"
module => "NMS"
action => "default"
{$app_name} 	"CMS"
{$ccuser} 	ccUser Object (3)
->_groups = Array (0)
->_uid = false
->_module = CustomContent Object (21)
   ->_initialized = false
   ->substitute_content = false
   ->cms = null
   ->config = null
   ->curlang = null
   ->langhash = null
   ->params = null
   ->wysiwygactive = null
   ->syntaxactive = null
   ->error = null
   ->modinstall = null
   ->modtemplates = null
   ->modlang = null
   ->modform = null
   ->modredirect = null
   ->modmisc = null
   ->param_map = null
   ->restrict_unknown_params = null
   ->xml_exclude_files = Array (5)
    0 => "^\.svn"
    1 => "^CVS$"
    2 => "^\#.*\#$"
    3 => "~$"
    4 => "\.bak$"
   ->xmldtd = " <!DOCTYPE module [ <!ELEMENT modul..."
   ->smarty = null
{$cgsimple} 	cgSimple Object (1)
->_module = CGSimpleSmarty Object (19)
   ->cms = null
   ->config = null
   ->curlang = null
   ->langhash = null
   ->params = null
   ->wysiwygactive = null
   ->syntaxactive = null
   ->error = null
   ->modinstall = null
   ->modtemplates = null
   ->modlang = null
   ->modform = null
   ->modredirect = null
   ->modmisc = null
   ->param_map = null
   ->restrict_unknown_params = null
   ->xml_exclude_files = Array (5)
    0 => "^\.svn"
    1 => "^CVS$"
    2 => "^\#.*\#$"
    3 => "~$"
    4 => "\.bak$"
   ->xmldtd = " <!DOCTYPE module [ <!ELEMENT modul..."
   ->smarty = null
{$content_id} 	"15"
{$count} 	13
{$email} 	"my.email@gmail.com"
{$encoding} 	"UTF-8"
{$formend} 	"</form><i>\n</i>"
{$formhidden} 	"<input type="hidden" name="m3lists[]"..."
{$formid} 	"m3"
{$formstart} 	"<form id="m3moduleform_1" method="pos..."
{$friendly_position} 	"1"
{$gCms} 	
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 732295 bytes) in /home/itali17/public_html/cmsms/lib/smarty/plugins/modifier.debug_print_var.php on line 47
Any insights?

Re: Fatal Error with smarty {debug}

Posted: Sun Jun 29, 2008 2:10 pm
by calguy1000
don't use {debug} it takes too much memory, use {get_template_vars}

Re: Fatal Error with smarty {debug}

Posted: Sun Jun 29, 2008 6:53 pm
by superwad
Ah, thank you very much.

I also found out the cause of my sitename problem.  The SelfRegistration template is using {$sitename} instead of {sitename}.  I removed the $ and it works fine.

Re: Fatal Error with smarty {debug}

Posted: Sun Jun 29, 2008 9:38 pm
by Dr.CSS
[solved] ?...