Jump to content
thirty bees forum

Webshoptime

Members
  • Posts

    83
  • Joined

  • Last visited

Everything posted by Webshoptime

  1. Damn, again a big mistake from the Prestashop factory. I don't care anymore. TB rules ;)
  2. After migration off my latest shop, I'm getting a new error. ``` public_html/classes/Dispatcher.php on line 513 [ThirtyBeesException] Missing template name at line 678 in file vendor/smarty/smarty/libs/sysplugins/smartyinternaltemplate.php public function __get($property_name) { switch ($property_name) { case 'source': if (strlen($this->template_resource) == 0) { throw new SmartyException('Missing template name'); } $this->source = Smarty_Resource::source($this); // cache template object under a unique ID // do not cache eval resources if ($this->source->type != 'eval') { SmartyInternalTemplate->get - [line 346 - vendor/smarty/smarty/libs/sysplugins/smartycacheresource.php] - [1 Arguments] SmartyTemplate_Cached->construct - [line 707 - vendor/smarty/smarty/libs/sysplugins/smartyinternaltemplate.php] - [1 Arguments] SmartyInternalTemplate->__get - [line 410 - vendor/smarty/smarty/libs/sysplugins/smartyinternaltemplatebase.php] - [1 Arguments] SmartyInternalTemplateBase->isCached - [line 3094 - classes/module/Module.php] - [3 Arguments] ModuleCore->isCached - [line 73 - modules/productpaymentlogos/productpaymentlogos.php] - [2 Arguments] ProductPaymentLogos->hookDisplayProductButtons - [line 771 - classes/Hook.php] - [1 Arguments] HookCore::coreCallHook - [line 487 - classes/Hook.php] - [3 Arguments] HookCore::execWithoutCache - [line 280 - classes/Hook.php] - [7 Arguments] HookCore::exec - [line 322 - controllers/front/ProductController.php] - [2 Arguments] ProductControllerCore->initContent - [line 366 - classes/controller/Controller.php] ControllerCore->run - [line 43 - override/classes/controller/Controller.php] Controller->run - [line 743 - classes/Dispatcher.php] DispatcherCore->dispatch - [line 33 - index.php]```
  3. Yes i have the same problems. Also an issue with topbar nav. I have a blue background in the ccs style, but it stays white in the front. http://www.asiafoodcenter.be
  4. Yes i contact it, but yesterday i get the answer we don't support thirty bees :(
  5. yes. It worked before, but when i update the module i getting problems. I can't uninstall it also. And when i click on the module i'm getting controller not found
  6. done this, but i get now" Controller not found" If i run VC module.
  7. I don't see any old override files. Wher can i find those?
  8. I have a strange problem with visual composer I can't uninstall the module or reinstall it ``` [PrestaShopException] Class CategoryControllerOverrideOriginal_remove5957972a3f338 does not exist at line 1860 in file classes/module/Module.php // Make a reflection of the override class and the module override class $overrideFile = file($overridePath); eval(pregreplace(['#^\s*<\?(?:php)?#', '#class\s+'.$classname.'\s+extends\s+([a-z0-9]+)(\s+implements\s+([a-z0-9]+))?#i'], [' ', 'class '.$classname.'OverrideOriginalremove'.$uniq], implode('', $overrideFile))); $overrideClass = new ReflectionClass($classname.'OverrideOriginal_remove'.$uniq); $moduleFile = file($this->getLocalPath().'override/'.$path); eval(pregreplace(['#^\s*<\?(?:php)?#', '#class\s+'.$classname.'(\s+extends\s+([a-z0-9]+)(\s+implements\s+([a-z0-9]+))?)?#i'], [' ', 'class '.$classname.'Overrideremove'.$uniq], implode('', $moduleFile))); $moduleClass = new ReflectionClass($classname.'Override_remove'.$uniq); ReflectionClass->__construct - [line 1860 - classes/module/Module.php] - [1 Arguments] ModuleCore->removeOverride - [line 1810 - classes/module/Module.php] - [1 Arguments] ModuleCore->uninstallOverrides - [line 2197 - classes/module/Module.php] ModuleCore->uninstall - [line 308 - modules/jscomposer/jscomposer.php] JsComposer->uninstall - [line 1066 - controllers/admin/AdminModulesController.php] AdminModulesControllerCore->postProcessReset - [line 1435 - controllers/admin/AdminModulesController.php] AdminModulesControllerCore->postProcess - [line 379 - classes/controller/Controller.php] ControllerCore->run - [line 742 - classes/Dispatcher.php] DispatcherCore->dispatch - [line 63 - admin/index.php]```
  9. Great thx m8. Fixit. I will test it. I hope the template works flawless now
  10. I have 2 payment modules installed Bankwire and mollie But if i place a new order. I'm getting no payment modules installed I think it's a hook problem. Error debug Warning: Invalid argument supplied for foreach() in /home/17442-38450.cloudwaysapps.com/rqmkdkmavs/public_html/classes/Dispatcher.php on line 513
  11. Before * module: jscomposer?
  12. Ow sorry my mistake, i posted the good one ;)
  13. ``` <?php class CategoryController extends CategoryControllerCore { /* * module: jscomposer * date: 2016-02-09 03:58:59 * version: 4.3.13 / * module: jscomposer * date: 2016-02-09 03:58:59 * version: 4.3.13 */ / * module: jscomposer * date: 2017-06-03 21:52:34 * version: 4.3.20 */ public function initContent() { $description = $this->category->description; parent::initContent(); if (Module::isInstalled('jscomposer') && (bool) Module::isEnabled('jscomposer')) { $this->context->smarty->assign( array( 'description_short' => JsComposer::do_shortcode($description), ) ); $this->category->description = JsComposer::do_shortcode($description); } if (Module::isInstalled('smartshortcode') && (bool) Module::isEnabled('smartshortcode')) { $this->context->smarty->assign( array( 'description_short' => smartshortcode::do_shortcode($description), ) ); $this->category->description = smartshortcode::do_shortcode($description); } } } ```
  14. I think the theme is want to override it. How can i solve this. Prestashop 1.6 works fine.
  15. ``` <?php /** * 2007-2016 PrestaShop * * Thirty Bees is an extension to the PrestaShop e-commerce software developed by PrestaShop SA * Copyright (C) 2017 Thirty Bees * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/osl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@thirtybees.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to https://www.thirtybees.com for more information. * * @author Thirty Bees contact@thirtybees.com * @author PrestaShop SA contact@prestashop.com * @copyright 2017 Thirty Bees * @copyright 2007-2016 PrestaShop SA * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) * PrestaShop is an internationally registered trademark & property of PrestaShop SA */ /** * Class CategoryControllerCore * * @since 1.0.0 */ class CategoryControllerCore extends FrontController { // @codingStandardsIgnoreStart /** string Internal controller name */ public $php_self = 'category'; /** @var bool If set to false, customer cannot view the current category. */ public $customer_access = true; /** @var Category Current category object */ protected $category; /** @var int Number of products in the current page. */ protected $nbProducts; /** @var array Products to be displayed in the current page . */ protected $cat_products; // @codingStandardsIgnoreEnd /** * Sets default media for this controller * * @return void * * @since 1.0.0 */ public function setMedia() { parent::setMedia(); if (!$this->useMobileTheme()) { //TODO : check why cluetip css is include without js file $this->addCSS( [ _THEME_CSS_DIR_.'scenes.css' => 'all', _THEME_CSS_DIR_.'category.css' => 'all', _THEME_CSS_DIR_.'product_list.css' => 'all', ] ); } $scenes = Scene::getScenes($this->category->id, $this->context->language->id, true, false); if ($scenes && count($scenes)) { $this->addJS(_THEME_JS_DIR_.'scenes.js'); $this->addJqueryPlugin(['scrollTo', 'serialScroll']); } $this->addJS(_THEME_JS_DIR_.'category.js'); } /** * Redirects to canonical or "Not Found" URL * * @param string $canonicalUrl * * @since 1.0.0 */ public function canonicalRedirection($canonicalUrl = '') { if (Tools::getValue('live_edit')) { return; } if (!Validate::isLoadedObject($this->category) || !$this->category->inShop() || !$this->category->isAssociatedToShop() || in_array($this->category->id, [Configuration::get('PS_HOME_CATEGORY'), Configuration::get('PS_ROOT_CATEGORY')])) { $this->redirect_after = '404'; $this->redirect(); } if (!Tools::getValue('noredirect') && Validate::isLoadedObject($this->category)) { parent::canonicalRedirection($this->context->link->getCategoryLink($this->category)); } } /** * Initializes controller * * @see FrontController::init() * @throws PrestaShopException * * @since 1.0.0 */ public function init() { // Get category ID $idCategory = (int) Tools::getValue('id_category'); if (!$idCategory || !Validate::isUnsignedId($idCategory)) { $this->errors[] = Tools::displayError('Missing category ID'); } // Instantiate category $this->category = new Category($idCategory, $this->context->language->id); parent::init(); // Check if the category is active and return 404 error if is disable. if (!$this->category->active) { header('HTTP/1.1 404 Not Found'); header('Status: 404 Not Found'); } // Check if category can be accessible by current customer and return 403 if not if (!$this->category->checkAccess($this->context->customer->id)) { header('HTTP/1.1 403 Forbidden'); header('Status: 403 Forbidden'); $this->errors[] = Tools::displayError('You do not have access to this category.'); $this->customer_access = false; } } /** * Initializes page content variables * * @since 1.0.0 */ public function initContent() { parent::initContent(); $this->setTemplate(_PS_THEME_DIR_.'category.tpl'); if (!$this->customer_access) { return; } if (isset($this->context->cookie->id_compare)) { $this->context->smarty->assign('compareProducts', CompareProduct::getCompareProducts((int) $this->context->cookie->id_compare)); } // Product sort must be called before assignProductList() $this->productSort(); $this->assignScenes(); $this->assignSubcategories(); $this->assignProductList(); $this->context->smarty->assign( [ 'category' => $this->category, 'description_short' => Tools::truncateString($this->category->description, 350), 'products' => (isset($this->cat_products) && $this->cat_products) ? $this->cat_products : null, 'id_category' => (int) $this->category->id, 'id_category_parent' => (int) $this->category->id_parent, 'return_category_name' => Tools::safeOutput($this->category->name), 'path' => Tools::getPath($this->category->id), 'add_prod_display' => Configuration::get('PS_ATTRIBUTE_CATEGORY_DISPLAY'), 'categorySize' => Image::getSize(ImageType::getFormatedName('category')), 'mediumSize' => Image::getSize(ImageType::getFormatedName('medium')), 'thumbSceneSize' => Image::getSize(ImageType::getFormatedName('m_scene')), 'homeSize' => Image::getSize(ImageType::getFormatedName('home')), 'allow_oosp' => (int) Configuration::get('PS_ORDER_OUT_OF_STOCK'), 'comparator_max_item' => (int) Configuration::get('PS_COMPARATOR_MAX_ITEM'), 'suppliers' => Supplier::getSuppliers(), 'body_classes' => [$this->php_self.'-'.$this->category->id, $this->php_self.'-'.$this->category->link_rewrite], ] ); } /** * Assigns scenes template variables */ protected function assignScenes() { // Scenes (could be externalised to another controller if you need them) $scenes = Scene::getScenes($this->category->id, $this->context->language->id, true, false); $this->context->smarty->assign('scenes', $scenes); // Scenes images formats if ($scenes && ($sceneImageTypes = ImageType::getImagesTypes('scenes'))) { foreach ($sceneImageTypes as $sceneImageType) { if ($sceneImageType['name'] == ImageType::getFormatedName('m_scene')) { $thumbSceneImageType = $sceneImageType; } elseif ($sceneImageType['name'] == ImageType::getFormatedName('scene')) { $largeSceneImageType = $sceneImageType; } } $this->context->smarty->assign( [ 'thumbSceneImageType' => isset($thumbSceneImageType) ? $thumbSceneImageType : null, 'largeSceneImageType' => isset($largeSceneImageType) ? $largeSceneImageType : null, ] ); } } /** * Assigns subcategory templates variables * * @return void * * @since 1.0.0 */ protected function assignSubcategories() { if ($subCategories = $this->category->getSubCategories($this->context->language->id)) { $this->context->smarty->assign( [ 'subcategories' => $subCategories, 'subcategories_nb_total' => count($subCategories), 'subcategories_nb_half' => ceil(count($subCategories) / 2), ] ); } } /** * Assigns product list template variables * * @return void * * @since 1.0.0 */ public function assignProductList() { $hookExecuted = false; Hook::exec( 'actionProductListOverride', [ 'nbProducts' => &$this->nbProducts, 'catProducts' => &$this->cat_products, 'hookExecuted' => &$hookExecuted, ] ); // The hook was not executed, standard working if (!$hookExecuted) { $this->context->smarty->assign('categoryNameComplement', ''); $this->nbProducts = $this->category->getProducts(null, null, null, $this->orderBy, $this->orderWay, true); $this->pagination((int) $this->nbProducts); // Pagination must be call after "getProducts" $this->cat_products = $this->category->getProducts($this->context->language->id, (int) $this->p, (int) $this->n, $this->orderBy, $this->orderWay); } // Hook executed, use the override else { // Pagination must be call after "getProducts" $this->pagination($this->nbProducts); } $this->addColorsToProductList($this->cat_products); Hook::exec( 'actionProductListModifier', [ 'nb_products' => &$this->nbProducts, 'cat_products' => &$this->cat_products, ] ); foreach ($this->cat_products as &$product) { if (isset($product['id_product_attribute']) && $product['id_product_attribute'] && isset($product['product_attribute_minimal_quantity'])) { $product['minimal_quantity'] = $product['product_attribute_minimal_quantity']; } } $this->context->smarty->assign('nb_products', $this->nbProducts); } /** * Returns an instance of the current category * * @return Category * * @since 1.0.0 */ public function getCategory() { return $this->category; } } ```
  16. and another problem Parse error: syntax error, unexpected '*', expecting function (T_FUNCTION) in /home/asiafoodcenter/public_html/override/controllers/front/CategoryController.php on line 8
  17. Yes i have fix it. But VC not working. It's in a loop at vc.ShortcodesBuilder.buildFromContent (shortcodesbuilder.js:88) at Object.vc.build (build.js:47) at HTMLDocument. (vcpage_editable.js:268) at j (jquery-1.11.0.min.js:2) at Object.fireWith [as resolveWith] (jquery-1.11.0.min.js:2) at Function.ready (jquery-1.11.0.min.js:2) at HTMLDocument.K (jquery-1.11.0.min.js:2) css Failed to load resource: the server responded with a status of 400 ()
  18. Where can i delete class_index.php
  19. i'm getting this on the front Strict Standards: Declaration of Media::cccCss() should be compatible with MediaCore::cccCss($cssFiles, $cachePath = NULL) in /home/asiafoodcenter/public_html/override/classes/Media.php on line 169
  20. Hello, I have just installed the Magnium theme with Visual Composer. But sadly it doesn't work. How can i fix this?
  21. Still not working 3 fouten Module Customer data privacy block kan niet worden bijgewerkt: fout tijdens het uitpakken van de meest recente versie. thirty bees updater: There was an error while extracting the module file (file may be corrupted). Module niet gevonden
  22. How can i delete the modules, without corrupting my shop? Folder deleting not working.
  23. Duplicate URL Redirect EnvoiMoinsCher SEO Friendly URLs BASEO - Prestashop Smart SEO Plus Manage Smart Blog Smart Blog Search
  24. SEO, blog, payment gateways.....
×
×
  • Create New...