Page 1 of 1

Install from 1.10 to 1.11.3 broke [solved - template issue]

Posted: Fri Dec 07, 2012 3:31 am
by skarni
I'm using a modified version of the awesome template BizBuzz. Today I decided to upgrade my cmsms website from 1.10 to 1.11.3. I get anxiety every time I have to do this as I am not a php programmer, just a non-profit worker.

After completing each upgrade as instructed, my homepage displays the following:

Code: Select all

Error: at line 702 in file /home/mysite/public_html/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php:
Full Trace:

Code: Select all

#0 /home/tourpike/public_html/lib/smarty/sysplugins/smarty_internal_compilebase.php(113): Smarty_Internal_TemplateCompilerBase->trigger_template_error('unexpected "val...', 3)
#1 /home/tourpike/public_html/lib/smarty/sysplugins/smarty_internal_compile_capture.php(45): Smarty_Internal_CompileBase->getAttributes(Object(Smarty_Internal_SmartyTemplateCompiler), Array)
#2 /home/tourpike/public_html/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php(520): Smarty_Internal_Compile_Capture->compile(Array, Object(Smarty_Internal_SmartyTemplateCompiler), Array, NULL, NULL)
#3 /home/tourpike/public_html/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php(249): Smarty_Internal_TemplateCompilerBase->callTagCompiler('capture', Array, Array)
#4 /home/tourpike/public_html/lib/smarty/sysplugins/smarty_internal_templateparser.php(2388): Smarty_Internal_TemplateCompilerBase->compileTag('capture', Array)
#5 /home/tourpike/public_html/lib/smarty/sysplugins/smarty_internal_templateparser.php(3101): Smarty_Internal_Templateparser->yy_r36()
#6 /home/tourpike/public_html/lib/smarty/sysplugins/smarty_internal_templateparser.php(3201): Smarty_Internal_Templateparser->yy_reduce(36)
#7 /home/tourpike/public_html/lib/smarty/sysplugins/smarty_internal_smartytemplatecompiler.php(105): Smarty_Internal_Templateparser->doParse(16, '{')
#8 /home/tourpike/public_html/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php(192): Smarty_Internal_SmartyTemplateCompiler->doCompile('           ??  ...')
#9 /home/tourpike/public_html/lib/smarty/sysplugins/smarty_internal_template.php(187): Smarty_Internal_TemplateCompilerBase->compileTemplate(Object(Smarty_Internal_Template))
#10 /home/tourpike/public_html/lib/smarty/sysplugins/smarty_internal_templatebase.php(155): Smarty_Internal_Template->compileTemplateSource()
#11 /home/tourpike/public_html/lib/classes/class.Smarty_CMS.php(319): Smarty_Internal_TemplateBase->fetch('tpl_body:44', 'p15', NULL, NULL, false, false, false)
#12 /home/tourpike/public_html/index.php(235): Smarty_CMS->fetch('tpl_body:44')
#13 {main}

Steps I took to upgrade:

I installed the following in this order, per instructions.

1: cmsmadesimple-1.11-full.tar.gz
2: cmsmadesimple-full-diff-1.11-1.11.1.tar.gz
3: cmsmadesimple-full-diff-1.11.1-1.11.2.tar.gz
4: cmsmadesimple-full-diff-1.11.2-1.11.2.1.tar.gz
5: cmsmadesimple-1.11.3-full.tar.gz

My installed modules and versions:

AdvancedContent 0.9.4
CGBlog 1.9.8
CGCalendar 1.10.0.1
CGExtensions 1.31.2
CGFeedback 1.5.10
CGGoogleMaps 2.4.3
CGSimpleSmarty 1.5.2
CMSMailer 5.2.1
CMSPrinting 1.0.3
Captcha 0.4.5
FileManager 1.4.2
FormBuilder 0.7.3
Gallery 1.6
JQueryTools 1.1.1
MenuManager 1.8.4
MicroTiny 1.2.4
ModuleManager 1.5.5
MysqlDump 1.2.4
News 2.12.10
Printing 1.1.2
Products 2.18.4
Search 1.7.7
SiteMapMadeSimple 1.2.6
Snippets 0.4
ThemeManager 1.1.7
TinyMCE 2.9.12

OS: Windows 7

Not sure what to do.

Re: Install from 1.10 to 1.11.3 broke, HELP!

Posted: Fri Dec 07, 2012 4:15 am
by skarni
Update: After messing around with the template, I removed the code in question "{capture assign=galleryfolder value=$entry->gallery}{content block="Gallery Folder" description='Enter the name of the Gallery folder you wish to use' page_tab='Header Options' wysiwyg='false' oneline='true'}{/capture}"

This is associated with the nivo slider on the homepage. The page will pull up, but with an error: "There is a path issue with the orginal image!" for each graphic that is supposed to be on the slider. Is this a case of BizBuzz template being incompatible with the newest version of cmsms?

Re: Install from 1.10 to 1.11.3 broke, HELP!

Posted: Fri Dec 07, 2012 11:17 am
by Jo Morg
skarni wrote:Update: After messing around with the template, I removed the code in question "{capture assign=galleryfolder value=$entry->gallery}{content block="Gallery Folder" description='Enter the name of the Gallery folder you wish to use' page_tab='Header Options' wysiwyg='false' oneline='true'}{/capture}"
It appear that, for some reason, some symbols were converted to their HTML entities counterparts...
Try:

Code: Select all

{capture assign=galleryfolder value=$entry->gallery}{content block='Gallery Folder' description='Enter the name of the Gallery folder you wish to use' page_tab='Header Options' wysiwyg='false' oneline='true'}{/capture}
Make sure that you are not using or have any WYSIWYG editor active on the textarea where you insert this code....

Re: Install from 1.10 to 1.11.3 broke, HELP!

Posted: Mon Dec 10, 2012 11:09 pm
by skarni
Sorry for the late followup.

I noticed a problem when pasting the new code into the template through the "templates" portion of the admin. When I click "apply", I get the following error:

Code: Select all

Syntax Error in template "template:appdata;tmp_template" on line 51 "{capture assign=galleryfolder value=$entry->gallery}{content block='Gallery Folder' description='Enter the name of the Gallery folder you wish to use' page_tab='Header Options' wysiwyg='false' oneline='true'}{/capture}" unexpected "value" attribute
Even though I pasted the correct code in. It would seem that my theme editor is changing the code to its HTML state. Why is it doing this all of a sudden?

???

Re: Install from 1.10 to 1.11.3 broke, HELP!

Posted: Tue Dec 11, 2012 2:00 am
by calguy1000

Code: Select all

{capture assign=galleryfolder value=$entry->gallery}
Is invalid syntax. the {capture} tag does not have a "value" parameter. And even if it did... the $entry->gallery syntax would probably not be what you want.

Re: Install from 1.10 to 1.11.3 broke, HELP!

Posted: Tue Dec 11, 2012 3:18 pm
by skarni
That syntax is straight from the BizBuzz V2 template. It has worked for years. What really confuses me is why the template manager is converting the code from

Code: Select all

{capture assign=galleryfolder value=$entry->gallery}...
to

Code: Select all

{capture assign=galleryfolder value=$entry->gallery}
:-\

Re: Install from 1.10 to 1.11.3 broke, HELP!

Posted: Sat Dec 15, 2012 7:09 am
by Jean le Chauve