benjamin-vauchel / SuperBoxSelect

SuperBoxSelect is a TV for MODx Revolution 2.1.x that provides a multi-select box for related pages. Inspired by Resource List MODx TV and SuperBoxSelect ExtJS Plugin.
http://www.omycode.fr/modx-extras/superboxselect.html
9 stars 13 forks source link

Install doesn't respect non-standard manager name (Revo 2.2.0-pl2) #4

Closed westport closed 12 years ago

westport commented 12 years ago

As per MODx Security Hardening standards, I have changed the name of my manager directory. However, it seems that the "element/tv/renders/input/superboxselect.tpl" is saved to the default "manager" directory. So, when attempting to edit a page using the TV, the following error appears in the PHP error log (the manager errors out)

From PHP Error log:

PHP Fatal error: Uncaught exception 'SmartyException' with message 'Unable to load template file 'element/tv/renders/input/superboxselect.tpl'' in /model/smarty/sysplugins/smarty_internal_template.php:162 Stack trace:

0 /model/smarty/sysplugins/smarty_internal_template.php(537): Smarty_Internal_Template->isExisting(true)

1 /model/smarty/Smarty.class.php(335): Smarty_Internal_Template->getRenderedTemplate()

2 /model/modx/modmanagercontroller.class.php(252): Smarty->fetch('element/tv/rend...')

3 /model/modx/modtemplatevar.class.php(1103): modManagerController->fetchTemplate('element/tv/rend...')

4 /model/modx/modtemplatevar.class.php(421): modTemplateVarInputRender->render('437', Array)

5 /model/modx/modtemplatevar.class.php(366): modTemplateVar->getRend in /model/smarty/sysplugins/smarty_internal_template.php on line 162

After copying the file to the correct location, all is well.

benjamin-vauchel commented 12 years ago

Thanks for the report! It's fixed in SuperBoxSelect 1.0.1-rc2.

westport commented 12 years ago

Thanks so much. This was my first bit of code feedback, so I hope it was helpful. I'm trying to be better at helping out those who have helped me out so much.

This addon is exactly what I've been needing for such a long time. Great interface, well done!

Ryan Thompson Multimedia Manager | Westport Innovations Inc. 604-718-8305 | rthompson@westport.com www.westport.com

-----Original Message----- From: Benjamin Vauchel [mailto:reply@reply.github.com] Sent: February 1, 2012 1:23 AM To: Ryan Thompson Subject: Re: [SuperBoxSelect] Install doesn't respect non-standard manager name (Revo 2.2.0-pl2) (#4)

Thanks for the report! It's fixed in SuperBoxSelect 1.0.1-rc2.


Reply to this email directly or view it on GitHub: https://github.com/omycode/SuperBoxSelect/issues/4#issuecomment-3755897