Jump to content

Fatal error: when trying to login as a customer


Recommended Posts

When I try to login as a customer or my account as a customer I get a fatal error.

 

The exact code.

 

Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "/hermes/waloraweb026/b2475/moo.danimal5k/custom-stickers/themes/warehouse/authentication.tpl" on line 463 "<span><sup>*</sup>{" - Unexpected "{"' in /hermes/waloraweb026/b2475/moo.danimal5k/custom-stickers/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php:667 Stack trace: #0 /hermes/waloraweb026/b2475/moo.danimal5k/custom-stickers/tools/smarty/sysplugins/smarty_internal_templateparser.php(3144): Smarty_Internal_TemplateCompilerBase->trigger_template_error() #1 /hermes/waloraweb026/b2475/moo.danimal5k/custom-stickers/tools/smarty/sysplugins/smarty_internal_templateparser.php(3209): Smarty_Internal_Templateparser->yy_syntax_error(0, 0) #2 /hermes/waloraweb026/b2475/moo.danimal5k/custom-stickers/tools/smarty/sysplugins/smarty_internal_smartytemplatecompiler.php(113): Smarty_Internal_Templateparser->doParse(0, 0) #3 /hermes/waloraweb026/b2475/moo.danimal5k/custom-st in/hermes/waloraweb026/b2475/moo.danimal5k/custom-stickers/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 667

 

Not sure what my next steps are to fix this problem.

 

Thanks

 
Link to comment
Share on other sites

No problem

 

From line 402 to 490

 

 

               }

            } else {

                // compile closing tag of block function

                $base_tag = substr($tag, 0, -5);

                // check if closing tag is a registered object

                if (isset($this->smarty->registered_objects[$base_tag]) && isset($parameter['object_methode'])) {

                    $methode = $parameter['object_methode'];

                    if (in_array($methode, $this->smarty->registered_objects[$base_tag][3])) {

                        return $this->callTagCompiler('private_object_block_function', $args, $parameter, $tag, $methode);

                    } else {

                        return $this->trigger_template_error('unallowed closing tag methode "' . $methode . '" in registered object "' . $base_tag . '"', $this->lex->taglineno);

                    }

                }

                // registered block tag ?

                if (isset($this->smarty->registered_plugins[smarty::PLUGIN_BLOCK][$base_tag]) || isset($this->default_handler_plugins[smarty::PLUGIN_BLOCK][$base_tag])) {

                    return $this->callTagCompiler('private_registered_block', $args, $parameter, $tag);

                }

                // block plugin?

                if ($function = $this->getPlugin($base_tag, Smarty::PLUGIN_BLOCK)) {

                    return $this->callTagCompiler('private_block_plugin', $args, $parameter, $tag, $function);

                }

                // registered compiler plugin ?

                if (isset($this->smarty->registered_plugins[smarty::PLUGIN_COMPILER][$tag])) {

                    // if compiler function plugin call it now

                    $args = array();

                    if (!$this->smarty->registered_plugins[smarty::PLUGIN_COMPILER][$tag][1]) {

                        $this->tag_nocache = true;

                    }

                    $function = $this->smarty->registered_plugins[smarty::PLUGIN_COMPILER][$tag][0];

                    if (!is_array($function)) {

                        return $function($args, $this);

                    } else if (is_object($function[0])) {

                        return $this->smarty->registered_plugins[smarty::PLUGIN_COMPILER][$tag][0][0]->$function[1]($args, $this);

                    } else {

                        return call_user_func_array($function, array($args, $this));

                    }

                }

                if ($this->smarty->loadPlugin('smarty_compiler_' . $tag)) {

                    $plugin = 'smarty_compiler_' . $tag;

                    if (is_callable($plugin)) {

                        return $plugin($args, $this->smarty);

                    }

                    if (class_exists($plugin, false)) {

                        $plugin_object = new $plugin;

                        if (method_exists($plugin_object, 'compile')) {

                            return $plugin_object->compile($args, $this);

                        }

                    }

                    throw new SmartyException("Plugin \"{$tag}\" not callable");

                }

            }

            $this->trigger_template_error("unknown tag \"" . $tag . "\"", $this->lex->taglineno);

        }

    }

 

    /**

     * lazy loads internal compile plugin for tag and calls the compile methode

     *

     * compile objects cached for reuse.

     * class name format:  Smarty_Internal_Compile_TagName

     * plugin filename format: Smarty_Internal_Tagname.php

     *

     * @param string $tag   tag name

     * @param array $args   list of tag attributes

     * @param mixed $param1 optional parameter

     * @param mixed $param2 optional parameter

     * @param mixed $param3 optional parameter

     * @return string compiled code

     */

    public function callTagCompiler($tag, $args, $param1 = null, $param2 = null, $param3 = null) {

        // re-use object if already exists

        if (isset(self::$_tag_objects[$tag])) {

            // compile this tag

            return self::$_tag_objects[$tag]->compile($args, $this, $param1, $param2, $param3);

        }

        // lazy load internal compiler plugin

        $class_name = 'Smarty_Internal_Compile_' . $tag;

        if ($this->smarty->loadPlugin($class_name)) {

            // check if tag allowed by security

            if (!isset($this->smarty->security_policy) || $this->smarty->security_policy->isTrustedTag($tag, $this)) {

                // use plugin if found

                self::$_tag_objects[$tag] = new $class_name;

                // compile this tag

                return self::$_tag_objects[$tag]->compile($args, $this, $param1, $param2, $param3);

            }

        }

        // no internal compile plugin for this tag

        return false;

    }
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...