#406 ✓resolved
Richard Toohey

Smarty quoting issue in container module Default.tpl

Reported by Richard Toohey | November 20th, 2011 @ 11:37 PM | in 2.0.3 (closed)

Not sure if I've described it correctly - this is the error I get:

[Mon Nov 21 12:13:15 2011] [error] [client XXX.XXX.XXX.XXX] File does not exist: /usr/local/www/apache22/data/XXXXXX/.const.PATH_RELATIVE|cat:'framework, referer: http://XXXXXXX/

Sometimes when using the Cool Water theme I don't get module menus dropping down - but not always - so not exactly sure what is triggering this one.

grep shows me the PATH_RELATIVE bit is in here:

framework/modules-1/containermodule/views/Default.tpl
 22         {script  yui3mods="1" unique="container-chrome" src="$smarty.const.PATH_RELATIVE|cat:'framework/core/assets/js/exp-container.js'"}

If I add the backticks (just copied from line 19 in the same file) - all good - the drop-down menus appear and the message is no longer logged:

 22         {script  yui3mods="1" unique="container-chrome" src="`$smarty.const.PATH_RELATIVE|cat:'framework/core/assets/js/exp-container.js'`"}

But when I read the docs for 2.0.2 sounds like I should be removing backticks?

http://www.exponentcms.org/news/prepping-for-the-2-0-2-release-more...

So this change helps me, but don't think it is the right fix.

Comments and changes to this ticket

  • dleffler

    dleffler November 21st, 2011 @ 11:14 AM

    • Assigned user set to “dleffler”
    • State changed from “new” to “resolved”
    • Tag set to containers, smarty
    • Milestone set to 2.0.3
    • Milestone order changed from “125” to “0”

    This has already been resolved in the devleop code.

    You have found the CORRECT solution. The backticks issue only occurs with calculations and not in concatenation.

    The following also works
    {script yui3mods="1" unique="container-chrome" src="$smarty.const.PATH_RELATIVEframework/core/assets/js/exp-container.js"}

    You'll also find this situation could be/is on line 65 in that same file.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Bug Tracker for Exponent CMS

Shared Ticket Bins

People watching this ticket

Pages