[SOLVED] Fatal Error with smarty {debug}

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
superwad
Forum Members
Forum Members
Posts: 26
Joined: Sun Jun 29, 2008 2:41 am

[SOLVED] Fatal Error with smarty {debug}

Post 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?
Last edited by superwad on Sun Jun 29, 2008 11:01 pm, edited 1 time in total.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Fatal Error with smarty {debug}

Post by calguy1000 »

don't use {debug} it takes too much memory, use {get_template_vars}
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
superwad
Forum Members
Forum Members
Posts: 26
Joined: Sun Jun 29, 2008 2:41 am

Re: Fatal Error with smarty {debug}

Post 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.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Fatal Error with smarty {debug}

Post by Dr.CSS »

[solved] ?...
Post Reply

Return to “CMSMS Core”