• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: [fixed]Sec. error: Call to dynamic object member not allowed
PostPosted: Fri Jul 20, 2012 2:44 pm 
Offline
New Member
New Member

Joined: Sat Mar 20, 2010 12:10 pm
Posts: 8
When loading the admin page of my module (HostedVideoAlbums) which works perfectly (I hope so :)) in 1.10.3, I get the following error:

Code:
Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "module_file_tpl:HostedVideoAlbums;adminpanel.tpl" on line 20 "{$oneitem->$oneval}</td>" Security error: Call to dynamic object member not allowed' in D:\wamp\www\cmsms1.11b4\lib\smarty\sysplugins\smarty_internal_templatecompilerbase.php on line 656

The smarty code is:
Code:
{foreach from=$itemlist item=oneitem}
{cycle values="row2,row1" assign=rowclass}
<tr class="{$rowclass}" onmouseover="this.className='{$rowclass}hover';" onmouseout="this.className='{$rowclass}';">
   {foreach from=$adminshow item=column}
      {assign var=oneval value=$column[1]}
      <td{if $column[2]} class="ctlmm_nosearch"{/if}>
           {$oneitem->$oneval}</td>
   {/foreach}
</tr>
{/foreach}

FYI, this piece of code has been generated as-is by CTLMM (Catalog Module Maker)

All this worked perfectly in previous versions of smarty and I can't understand why it should break in new versions...
Most of my (many and sometimes big) templates use php objects in smarty so I don't want them to be broken!

Any help appreciated


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Security error: Call to dynamic object member not allowe
PostPosted: Sun Jul 22, 2012 3:46 pm 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Tue Oct 19, 2004 6:44 pm
Posts: 8011
Location: Fernie British Columbia, Canada
Fixed in svn... I think this is another smarty bug.

_________________
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.


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Security error: Call to dynamic object member not allowe
PostPosted: Sun Jul 22, 2012 8:05 pm 
Offline
Power Poster
Power Poster

Joined: Thu Mar 01, 2007 9:44 am
Posts: 253
Location: Belgique
Great, the module work with svn 8192 :)
Thank You Calguy


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Hosting Nation - Managed CMSMS Hosting