Jump to content
  • разработка интернет магазинов на opencart
  • доработка интернет магазинов на opencart

Ошибка усиновки


Recommended Posts

Добрый гдень!

Первый раз гделаю сайт.

Усиновил OpenCart на хостинг, все рилииет (админка, гдемо режим)

Решил поменять тему, следовал инструкции приложенной к теме. В админке все "успешно успешно"

Сам сайт выдает ошибку, можете помочь разобраться?

 

Fatal error: Uncaught Twig\Error\LoaderError: Template "opc_fashion_jbcollection_2201/template/helpfile/tvcmshelp_maintitle_design.twig" is not defined in "opc_fashion_jbcollection_2201/template/extension/module/featured.twig" at line 9. in /var/www/thewildh/data/www/thewildherbs.com/storage/vendor/twig/twig/src/Loader/ArrayLoader.php:70 Stack trace: #0 /var/www/thewildh/data/www/thewildherbs.com/storage/vendor/twig/twig/src/Environment.php(299): Twig\Loader\ArrayLoader->getCacheKey('opc_fashion_jbc...') #1 /var/www/thewildh/data/www/thewildherbs.com/storage/vendor/twig/twig/src/Environment.php(381): Twig\Environment->getTemplateClass('opc_fashion_jbc...') #2 /var/www/thewildh/data/www/thewildherbs.com/storage/vendor/twig/twig/src/Template.php(333): Twig\Environment->loadTemplate('opc_fashion_jbc...', NULL) #3 /var/www/thewildh/data/www/thewildherbs.com/storage/cache/template/fb/fb8b2d7000530208ef52e654aa8f2a6a35d59ad814d2b28c31f38a86a87f5827.php(47): Twig\Template->loadTemplate('opc_fashion_jbc...', 'opc_fashion_jbc...', in /var/www/thewildh/data/www/thewildherbs.com/storage/vendor/twig/twig/src/Loader/ArrayLoader.php on line 70

Link to comment
Share on other sites


53 минуты назад, freemanszone сказал:

opc_fashion_jbcollection_2201/template/helpfile/tvcmshelp_maintitle_design.twig" is not defined in "opc_fashion_jbcollection_2201/template/extension/module/featured.twig" at line 9

В строке №9 шаблона opc_fashion_jbcollection_2201/template/extension/module/featured.twig ошибка - возможно отсутствует шаблон opc_fashion_jbcollection_2201/template/helpfile/tvcmshelp_maintitle_design.twig

Покажи в ЛС шаблон opc_fashion_jbcollection_2201/template/extension/module/featured.twig

Link to comment
Share on other sites

22 минуты назад, esculapra сказал:

В строке №9 шаблона opc_fashion_jbcollection_2201/template/extension/module/featured.twig ошибка - возможно отсутствует шаблон opc_fashion_jbcollection_2201/template/helpfile/tvcmshelp_maintitle_design.twig

Покажи в ЛС шаблон opc_fashion_jbcollection_2201/template/extension/module/featured.twig

Отправил, спасипотому что!

Link to comment
Share on other sites


<div class="ttvcmsfeatured-product container-fluid">
    <div class="ttvfeatured-product-wrapper-box container">
        <div class="ttvfeatured-product-all-box">
            <div class="ttvfeatured-product-offer-banner">
                <div class="ttvfeatured-product-content ">
                    <div class="ttvall-block-box-shadows">
                        <div class="ttvfeatured-main-title-wrapper">
                            <div class="ttvcmsmain-title-wrapper">
                                {% include 'opc_fashion_jbcollection_2201/template/helpfile/tvcmshelp_maintitle_design.twig' with {'main_title': featured_home_title,'main_short_des': featured_home_sub_title,'main_des': featured_home_description,'main_img': featured_home_image } %}
                            </div>
                            <div class="ttvfeature-pagination-wrapper ttv-pagination-wrapper">
                                <div class="ttvfeature-pagination">
                                    <div class="ttvcmsfeatured-pagination">
                                        <div class="ttvcmsfeatured-next-pre-btn ttvcms-next-pre-btn">
                                            <div class="ttvcmsfeatured-prev" data-parent="ttvcmsfeatured-product">
                                                <i class="fa fa-angle-left" aria-hidden="true"></i>
                                            </div>
                                            <div class="ttvcmsfeatured-next" data-parent="ttvcmsfeatured-product">
                                                <i class="fa fa-angle-right" aria-hidden="true"></i>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="ttvfeatured-product">
                            <div class="products owl-theme owl-carousel ttvfeatured-product-wrapper ttvproduct-wrapper-content-box">
                                {% for product in products %} {% include 'opc_fashion_jbcollection_2201/template/extension/module/tvcmshelp_product_design.twig' with {'product': product} %} {% endfor %}
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

Link to comment
Share on other sites


<?php

/*
 * This file is part of Twig.
 *
 * (c) Fabien Potencier
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Twig\Loader;

use Twig\Error\LoaderError;
use Twig\Source;

/**
 * Loads a template from an array.
 *
 * When using this loader with a cache mechanism, you should know that a new cache
 * key is generated each time a template content "changes" (the cache key being the
 * source code of the template). If you don't want to see your cache grows out of
 * control, you need to take care of clearing the old cache file by yourself.
 *
 * This loader should only be used for unit testing.
 *
 * @author Fabien Potencier <[email protected]>
 */
final class ArrayLoader implements LoaderInterface, ExistsLoaderInterface, SourceContextLoaderInterface
{
    private $templates = [];

    /**
     * @param array $templates An array of templates (keys are the names, and values are the source code)
     */
    public function __construct(array $templates = [])
    {
        $this->templates = $templates;
    }

    /**
     * Adds or overrides a template.
     *
     * @param string $name     The template name
     * @param string $template The template source
     */
    public function setTemplate($name, $template)
    {
        $this->templates[$name] = $template;
    }

    public function getSourceContext($name)
    {
        $name = (string) $name;
        if (!isset($this->templates[$name])) {
            throw new LoaderError(sprintf('Template "%s" is not defined.', $name));
        }

        return new Source($this->templates[$name], $name);
    }

    public function exists($name)
    {
        return isset($this->templates[$name]);
    }

    public function getCacheKey($name)
    {
        if (!isset($this->templates[$name])) {
            throw new LoaderError(sprintf('Template "%s" is not defined.', $name));
        }

        return $name.':'.$this->templates[$name];
    }

    public function isFresh($name, $time)
    {
        if (!isset($this->templates[$name])) {
            throw new LoaderError(sprintf('Template "%s" is not defined.', $name));
        }

        return true;
    }
}

class_alias('Twig\Loader\ArrayLoader', 'Twig_Loader_Array');
 

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
 Share

×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.