Page 1 of 1

Gallery lost two subfolders...

Posted: Wed Mar 06, 2013 11:23 am
by Mats Helge
I've been having trouble with 1.11.4 pages editing, but another and propably a separate issue surfaced when I updated my pages.

I have a gallery-module (v.1.6) which has been working fine before. After upgrade it seems to have lost two subpages. I have total of six galleries and link to two of them no longer works, the other four work ok. When I cklick on the link to the gallery it gives me a cmsms error page with this text:

------------------------------------------------------------
Error:
at line 702 in file /var/www/vhosts/xxxyyy.com/httpdocs/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php:

Message:
Syntax Error in template "2e304ceab1c8a7e5f2dfa65f5826e123e15df29f" on line 2 "<div class="tekstityyli">{Gallery dir='Ihmiset}</div>" - Unexpected "'"

Full Trace:
#0 /var/www/vhosts/xxxyyy.com/httpdocs/lib/smarty/sysplugins/smarty_internal_templateparser.php(3144): Smarty_Internal_TemplateCompilerBase->trigger_template_error()
#1 /var/www/vhosts/xxxyyy.com/httpdocs/lib/smarty/sysplugins/smarty_internal_templateparser.php(3209): Smarty_Internal_Templateparser->yy_syntax_error(10, ''')
#2 /var/www/vhosts/xxxyyy.com/httpdocs/lib/smarty/sysplugins/smarty_internal_smartytemplatecompiler.php(105): Smarty_Internal_Templateparser->doParse(10, ''')
#3 /var/www/vhosts/xxxyyy.com/httpdocs/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php(192): Smarty_Internal_SmartyTemplateCompiler->doCompile('<div class="tek...')
#4 /var/www/vhosts/xxxyyy.com/httpdocs/lib/smarty/sysplugins/smarty_internal_template.php(187): Smarty_Internal_TemplateCompilerBase->compileTemplate(Object(Smarty_Internal_Template))
#5 /var/www/vhosts/xxxyyy.com/httpdocs/lib/smarty/sysplugins/smarty_internal_templatebase.php(155): Smarty_Internal_Template->compileTemplateSource()
#6 /var/www/vhosts/xxxyyy.com/httpdocs/lib/classes/class.Smarty_CMS.php(324): Smarty_Internal_TemplateBase->fetch('string:<div cla...', 'p31', NULL, NULL, false, false, false)
#7 /var/www/vhosts/xxxyyy.com/httpdocs/lib/classes/class.CMS_Content_Block.php(335): Smarty_CMS->fetch('string:<div cla...')
#8 /var/www/vhosts/xxxyyy.com/httpdocs/tmp/templates_c/603ff02ee882d027a26138ec0f705fe145763a07.tpl_body.35.php(43): CMS_Content_Block::smarty_internal_fetch_contentblock(Array, Object(Smarty_Internal_Template))
#9 /var/www/vhosts/xxxyyy.com/httpdocs/lib/smarty/sysplugins/smarty_internal_templatebase.php(180): content_51371d86942791_48656977(Object(Smarty_Internal_Template))
#10 /var/www/vhosts/xxxyyy.com/httpdocs/lib/classes/class.Smarty_CMS.php(324): Smarty_Internal_TemplateBase->fetch('tpl_body:35', 'p31', NULL, NULL, false, false, false)
#11 /var/www/vhosts/xxxyyy.com/httpdocs/index.php(236): Smarty_CMS->fetch('tpl_body:35')
#12 {main}
------------------------------------------------------------

I havent been using cmsms long enough and deep-enough to understand the most of what I am told here so could you help me pinpoint the problem?

Thanks for all your help!

Re: Gallery lost two subfolders...

Posted: Wed Mar 06, 2013 12:30 pm
by velden
You probably have some error in the mentioned template. The latest versions of Smarty (template engine) included in the latest cms is less fault tolerant.

So review your template and search for error regarding too many/less quotes, or spaces that shouldn't be there.

Of course you could post the template here.

Re: Gallery lost two subfolders...

Posted: Wed Mar 06, 2013 12:42 pm
by Mats Helge
Thanks, I will post the template here, but I'm not sure what template is the "mentioned template". All of my galleries use the same basic template so this propably isn't it because it works with some of the galleries?

So can you tell me in bit more detail what template I should post?

Thanks Velden!

Re: Gallery lost two subfolders...

Posted: Wed Mar 06, 2013 12:52 pm
by velden
While answering I saw an error:

Code: Select all

<div class="tekstityyli">{Gallery dir='Ihmiset}</div>
As you can see there is a single quote missing after 'Ihmiset

Re: Gallery lost two subfolders...

Posted: Wed Mar 06, 2013 1:00 pm
by Mats Helge
So this is propably written in the page that has the Ihmiset-gallery tag on it. I could try to modify the page in question, but cannot do it because of the other error on my pages that prevents me from editing pages :(

So I have to wait for that to be resolved unless:
Can pages be directry edited in databases via PhpMyAdmin like templates can?

Thanks

[solved]Re: Gallery lost two subfolders...

Posted: Thu Mar 07, 2013 12:42 pm
by Mats Helge
I downgraded to 1.11.3 and got the pages working again and could change the tag on the page.

So now everything works ok.

Thank you!