• Attempted to call function "tep_href_link" from the global namespace. (500 Internal Server Error)

    Symfony Exception

    Attempted to call function "tep_href_link" from the global namespace.

    Exception

    Symfony\Component\Debug\Exception\ UndefinedFunctionException

    1. <div class="contentContainer">
    2. <div class="groupwrapper">
    3. <p></p>
    4. <li><?php echo '<a href="' tep_href_link(FILENAME_NEWS'''SSL') . '">' NEWS '</a>'?>  </li>
    5. <li><?php echo '<a href="' tep_href_link(FILENAME_FLASHDESIGN'''SSL') . '">' SHAPE '</a>'?>  </li>
    6. <p></p>
    7. <li><?php echo '<a href="' tep_href_link(FILENAME_WOMAN'''SSL') . '">' .WOMEN '</a>'?>  </li>
    8. <li><?php echo '<a href="' tep_href_link(FILENAME_MEN'''SSL') . '">' MEN '</a>'?>  </li>
    9. <li><?php echo '<a href="' tep_href_link(FILENAME_CHILDREN'''SSL') . '">' CHILDREN '</a>'?>  </li>
    1.         include shop::getLegacyRenderFile('body_top.php');
    2.         include shop::getLegacyRenderFile('body_content_open.php');
    3.             include shop::getLegacyRenderFile($page);
    4.         include shop::getLegacyRenderFile('body_content_close.php');
    5.         include shop::getLegacyRenderFile('body_bottom.php');
    1.         if ($this->evalTemplate instanceof FileStorage) {
    2.             extract($this->evalParameters, \EXTR_SKIP);
    3.             $this->evalParameters null;
    4.             ob_start();
    5.             require $this->evalTemplate;
    6.             $this->evalTemplate null;
    7.             return ob_get_clean();
    8.         } elseif ($this->evalTemplate instanceof StringStorage) {
    1.         $this->parents[$key] = null;
    2.         // attach the global variables
    3.         $parameters array_replace($this->getGlobals(), $parameters);
    4.         // render
    5.         if (false === $content $this->evaluate($storage$parameters)) {
    6.             throw new \RuntimeException(sprintf('The template "%s" cannot be rendered.'$this->parser->parse($name)));
    7.         }
    8.         // decorator
    9.         if ($this->parents[$key]) {
    1.      */
    2.     public function render($name, array $parameters = [])
    3.     {
    4.         $e $this->stopwatch->start(sprintf('template.php (%s)'$name), 'template');
    5.         $ret parent::render($name$parameters);
    6.         $e->stop();
    7.         return $ret;
    8.     }
    1.     protected function render(string $view, array $parameters = [], Response $response null): Response
    2.     {
    3.         if ($this->container->has('templating') && $this->container->get('templating')->supports($view)) {
    4.             @trigger_error('Using the "templating" service is deprecated since version 4.3 and will be removed in 5.0; use Twig instead.', \E_USER_DEPRECATED);
    5.             $content $this->container->get('templating')->render($view$parameters);
    6.         } elseif ($this->container->has('twig')) {
    7.             $content $this->container->get('twig')->render($view$parameters);
    8.         } else {
    9.             throw new \LogicException('You can not use the "render" method if the Templating Component or the Twig Bundle are not available. Try running "composer require symfony/twig-bundle".');
    10.         }
    AbstractController->render() in src/Controller/ContentController.php (line 43)
    1.         $tmpldata=[
    2.             'page'=>'contents/'.$page,
    3.             'settings'=>shop::getTemplateSettings(),
    4.         ];
    5.         return($this->render(shop::getRenderFile($tmpldata['page']), $tmpldata));
    6.     }
    7.     public function index()
    8.     {
    1.         $this->dispatcher->dispatch($eventKernelEvents::CONTROLLER_ARGUMENTS);
    2.         $controller $event->getController();
    3.         $arguments $event->getArguments();
    4.         // call controller
    5.         $response $controller(...$arguments);
    6.         // view
    7.         if (!$response instanceof Response) {
    8.             $event = new ViewEvent($this$request$type$response);
    9.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
    1.     public function handle(Request $request$type HttpKernelInterface::MASTER_REQUEST$catch true)
    2.     {
    3.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
    4.         try {
    5.             return $this->handleRaw($request$type);
    6.         } catch (\Exception $e) {
    7.             if ($e instanceof RequestExceptionInterface) {
    8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
    9.             }
    10.             if (false === $catch) {
    1.         $this->boot();
    2.         ++$this->requestStackSize;
    3.         $this->resetServices true;
    4.         try {
    5.             return $this->getHttpKernel()->handle($request$type$catch);
    6.         } finally {
    7.             --$this->requestStackSize;
    8.         }
    9.     }
    Kernel->handle() in public/index.php (line 25)
    1. }
    2. $kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
    3. // $kernel = new Kernel('prod', false);
    4. $request Request::createFromGlobals();
    5. $response $kernel->handle($request);
    6. $response->send();
    7. $kernel->terminate($request$response);
    8. function endsWith($haystack$needle)

    Logs

    No log messages

    Stack Trace

    UndefinedFunctionException

    Symfony\Component\Debug\Exception\UndefinedFunctionException:
    Attempted to call function "tep_href_link" from the global namespace.
    
      at public/_templates/_default/contents/sitemap.php:5
      at include()
         (src/Resources/views/legacy/skeleton.html.php:21)
      at require('/home2/www/mybestshirt/kamashop_v2.0/src/Resources/views/legacy/skeleton.html.php')
         (vendor/symfony/templating/PhpEngine.php:147)
      at Symfony\Component\Templating\PhpEngine->evaluate()
         (vendor/symfony/templating/PhpEngine.php:76)
      at Symfony\Component\Templating\PhpEngine->render()
         (vendor/symfony/framework-bundle/Templating/TimedPhpEngine.php:46)
      at Symfony\Bundle\FrameworkBundle\Templating\TimedPhpEngine->render()
         (vendor/symfony/framework-bundle/Controller/ControllerTrait.php:233)
      at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->render()
         (src/Controller/ContentController.php:43)
      at App\Controller\ContentController->show()
         (vendor/symfony/http-kernel/HttpKernel.php:158)
      at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
         (vendor/symfony/http-kernel/HttpKernel.php:80)
      at Symfony\Component\HttpKernel\HttpKernel->handle()
         (vendor/symfony/http-kernel/Kernel.php:201)
      at Symfony\Component\HttpKernel\Kernel->handle()
         (public/index.php:25)