{"id":7191,"date":"2014-05-27T09:06:12","date_gmt":"2014-05-27T09:06:12","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/05\/27\/problem-about-cmsmadesimple-collection-of-common-programming-errors\/"},"modified":"2014-05-27T09:06:12","modified_gmt":"2014-05-27T09:06:12","slug":"problem-about-cmsmadesimple-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/05\/27\/problem-about-cmsmadesimple-collection-of-common-programming-errors\/","title":{"rendered":"problem about cmsmadesimple-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/83a5bc139910572dc4d618fd6f4758ff?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nSyntax Error<br \/>\nupgrade smarty3 cmsmadesimple<br \/>\nI&#8217;m new to CMSMS and taking an older installation through a painful upgrade path to get it to the current version. One of the major changes involves using Smarty 3 for it&#8217;s templating engine. This change has broken a couple of the existing templates.The related CMSMS module is called &#8220;Product and Inventory Manager&#8221; which looks like it&#8217;s part of &#8220;Calguys Module Extensions&#8221;Here&#8217;s the error message I&#8217;m getting:Syntax Error in template &#8220;module_db_tpl:ProductsWithLocation;summary_default&#8221; on line 26<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/e32080df8ab1cc1d2c1129d0a712e2c1?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nGideon<br \/>\nsmarty cmsmadesimple<br \/>\nUsing CMS Made Simple, I use User Defined Tags (UDT) to insert PHP into my pages.I have one UDT with around 2000 lines of code which I noticed began to fail to load at all (no elements from that tag are being produced) once I exceeded a certain point. I can remove any one definition of a variable, even and the whole thing will work again.Does anyone know if there is a limit to the amount of code one tag can hold, or more likely the amount of time taken to call that tag? I can&#8217;t find any referenc<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/67a9f022dde0b87cd3a8e1e3ead8dec5?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nair4x<br \/>\nphp smarty smarty3 cmsmadesimple<br \/>\nHopefully someone can help me with this. I am using smarty within CMSMS and have something called a User Defined Tag running within my page. This contains the following code: $db = cmsms()-&gt;GetDb(); $menu = $smarty-&gt;get_template_vars(&#8216;page&#8217;); $user_id = $smarty-&gt;get_template_vars(&#8216;userid&#8217;); if (!isset($user_id)) { $user_id = -1; } \/\/ Getting menu items from DB $query = &#8216;SELECT * FROM &#8216;. cms_db_prefix() .&#8217;module_tools_options WHERE active = 1 AND user_id = ? AND menu = ? ORDER BY so<\/li>\n<\/ul>\n<p>Web site is in building<\/p>\n<p>I discovery a place to host code\u3001demo\u3001 blog and websites.<br \/>\nSite access is fast but not money<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.m5zn.com\/newuploads\/2014\/01\/30\/jpg\/e7da807964b1fff.jpg\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Syntax Error upgrade smarty3 cmsmadesimple I&#8217;m new to CMSMS and taking an older installation through a painful upgrade path to get it to the current version. One of the major changes involves using Smarty 3 for it&#8217;s templating engine. This change has broken a couple of the existing templates.The related CMSMS module is called &#8220;Product [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7191","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7191","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=7191"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7191\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7191"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7191"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7191"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}