500 Internal Server Error?

With the info you provided it’s difficult to say. Error 500 happens because you did some error in the code that is supposed to produce the page, or the code generates some unhandled exception. My suggestion is to visit the page that gives you the 500 error, and then try to comment out all your … Read more

What are .tpl files? PHP, web design

That looks like Smarty to me. Smarty is a template parser written in PHP. You can read up on how to use Smarty in the documentation. If you can’t get access to the CMS’s source: To view the templates in your browser, just look at what variables Smarty is using and create a PHP file … Read more

Call to a member function on a non-object

The problem isn’t with the $name variable but rather with the $_engine variable. It’s currently empty. You need to verify that the path specification to Smarty.class.php is correct. You might try this to begin your debugging: $this->_engine = new Smarty(); print_r($this->_engine); If it turns out that $_engine is correct at that stage then verify that … Read more

Apply a smarty modifier to JS?

I’m afraid you cannot operate on JavaScript variables to get their value. Smarty can operate only on its variables – they either come from PHP or are set in Smarty. JavaScript variable cannot be set anyway to Smarty so you cannot do it. But in case you want to assign PHP/Smarty variable with modifier to … Read more