Jump to content
thirty bees forum

Wesley

Members
  • Posts

    11
  • Joined

  • Last visited

Posts posted by Wesley

  1. On 4/17/2019 at 4:54 PM, wakabayashi said:

    I dont believe, there is a quick solution. I remember how I did it:

    • You generate all urls with the old structure.
    • Copy them into Excel
    • You generate all urls with the new structure.
    • Copy them into Excel
    • Now you generate in Excel a new column with the correct htacces/nginx redirect.

    Maybe somebody has a better solution. Of course you can only achieve it, with some SQL knowledge.

     Sorry for this late reaction on this topic, but I've used this solution and for some reason a few of my category names don't match the product url category name.

    So this means about 3 quarters of my redirect urls work fine but the other part doesn't redirect the old urls to the new urls.
    What module did you use to generate all the urls?

    Thanks!

  2. Hello everyone,

    I changed my product route in the SEO & URL page of the Back Office to a cleaner and shorter URL.

    {category:/}{id}-{rewrite}{-:ean13}.html is what it used to be, but I changed it to {category:/}{rewrite}.html

    Now I'm wondering if its posible to make a redirect in the .htaccess file to redirect the old product URLS to the new product URLS.
    And ofcourse I don't want to make a redirect for every single product manually.

    Does anyone have any clue on how to do this?

    Thanks in advance!

    • Like 1
  3. Hello,

    I noticed that discount vouchers are not visible for customers in the Front Office.
    I can create, edit and view them in the Back Office, but when switching to the Front office there is nothing. 

    Did this problem occur for anyone else, or does anyone know a fix for this problem?

    It do is possible for customers to apply the voucher but thats all.

     

    Any help will be appreciated!

  4. Hello,

    I am running thirtybees local, installation was fine and everything is working except for the Backoffice login.
    I checked if my tb_shop_url table was correct and it seems fine, also checked my employee table and that should be fine aswell.

    Tried in multiple browsers, cleared cache multiple times still no luck.

    Database tb_log gives : Back Office connection from ::1

    In my xampp access log

    [06/Feb/2019:09:44:58 +0100] "GET /Thirtybees/admin-dev/index.php?controller=AdminLogin&token=144da1053457e6813c4bc26be02e706e&redirect=AdminDashboard HTTP/1.1" 200 6589 "http://localhost/Thirtybees/admin-dev/index.php?controller=AdminLogin&token=144da1053457e6813c4bc26be02e706e&redirect=AdminDashboard" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.81 Safari/537.36"

    When I try a wrong password it does give me an error message but even with dev mode on it doesn't say anything when I try my correct password.

    Just keeps reloading same login page.

    Appreciate all help.

     

  5. Hello, 

    A few days ago I migrated a test clone of my website to thirtybees, I had some problems with my Blowfish and Cookie class when trying to acces the BO and FO. 

    Error

    PHP Recoverable fatal error:  Object of class Blowfish could not be converted to string in /home/shops/public_html/testclone/classes/Cookie.php on line 282

    To resolve this error I created a toString method in both my Blowfish class and my CryptBlowfish class. It got rid of the errors and everything is working fine, but i'm wondering if this is a good solution.

    Could anyone tell me if this is fine or if I could apply a diffrent fix?

     

  6. I just migrated a test version from Prestashop 1.6 to Thirtybees. 

    The migration was successful, but after the migration I couldn't do anything in my BO.
    I logged out and tried to login but I got a 500 Server error on both my BO and FO.
    I've resolved my BO problem but still can't resolve the server error in my FO.

    The errors I got when I turned debugmode on were :

    Warning: math: parameter nbItemsPerLineLarge is empty in /home/shops/public_html/privetestwesley01/vendor/smarty/smarty/libs/plugins/function.math.php on line 63
    
    Warning: math: parameter nbItemsPerLineDesktop is empty in /home/shops/public_html/privetestwesley01/vendor/smarty/smarty/libs/plugins/function.math.php on line 63
    
    Warning: math: parameter nbItemsPerLine is empty in /home/shops/public_html/privetestwesley01/vendor/smarty/smarty/libs/plugins/function.math.php on line 63
    
    Warning: math: parameter nbItemsPerLineTablet is empty in /home/shops/public_html/privetestwesley01/vendor/smarty/smarty/libs/plugins/function.math.php on line 63
    
    Warning: math: parameter nbItemsPerLineMobile is empty in /home/shops/public_html/privetestwesley01/vendor/smarty/smarty/libs/plugins/function.math.php on line 63
    
    Warning: math: parameter nbItemsPerLinePortrait is empty in /home/shops/public_html/privetestwesley01/vendor/smarty/smarty/libs/plugins/function.math.php on line 63
    
    Warning: math: parameter perLine is empty in /home/shops/public_html/privetestwesley01/vendor/smarty/smarty/libs/plugins/function.math.php on line 63
    
    Warning: math: parameter perLine is empty in /home/shops/public_html/privetestwesley01/vendor/smarty/smarty/libs/plugins/function.math.php on line 63
    
    Warning: math: parameter perLine is empty in /home/shops/public_html/privetestwesley01/vendor/smarty/smarty/libs/plugins/function.math.php on line 63
    
    Warning: math: parameter perLine is empty in /home/shops/public_html/privetestwesley01/vendor/smarty/smarty/libs/plugins/function.math.php on line 63
    
    Warning: math: parameter perLine is empty in /home/shops/public_html/privetestwesley01/vendor/smarty/smarty/libs/plugins/function.math.php on line 63
    
    Warning: math: parameter perLine is empty in /home/shops/public_html/privetestwesley01/vendor/smarty/smarty/libs/plugins/function.math.php on line 63
    
    Notice: Undefined index: totModuloLarge in /home/shops/public_html/privetestwesley01/cache/smarty/compile/fd/61/93/fd6193ba43713e046587cadfaa60d26b11bf679d.file.product-list.tpl.cache.php on line 311
    
    Notice: Trying to get property of non-object in /home/shops/public_html/privetestwesley01/cache/smarty/compile/fd/61/93/fd6193ba43713e046587cadfaa60d26b11bf679d.file.product-list.tpl.cache.php on line 311
    
    Notice: Undefined index: totModuloDesktop in /home/shops/public_html/privetestwesley01/cache/smarty/compile/fd/61/93/fd6193ba43713e046587cadfaa60d26b11bf679d.file.product-list.tpl.cache.php on line 312
    
    Notice: Trying to get property of non-object in /home/shops/public_html/privetestwesley01/cache/smarty/compile/fd/61/93/fd6193ba43713e046587cadfaa60d26b11bf679d.file.product-list.tpl.cache.php on line 312
    
    Notice: Undefined index: totModulo in /home/shops/public_html/privetestwesley01/cache/smarty/compile/fd/61/93/fd6193ba43713e046587cadfaa60d26b11bf679d.file.product-list.tpl.cache.php on line 313
    
    Notice: Trying to get property of non-object in /home/shops/public_html/privetestwesley01/cache/smarty/compile/fd/61/93/fd6193ba43713e046587cadfaa60d26b11bf679d.file.product-list.tpl.cache.php on line 313
    
    Notice: Undefined index: totModuloTablet in /home/shops/public_html/privetestwesley01/cache/smarty/compile/fd/61/93/fd6193ba43713e046587cadfaa60d26b11bf679d.file.product-list.tpl.cache.php on line 314
    
    Notice: Trying to get property of non-object in /home/shops/public_html/privetestwesley01/cache/smarty/compile/fd/61/93/fd6193ba43713e046587cadfaa60d26b11bf679d.file.product-list.tpl.cache.php on line 314
    
    Notice: Undefined index: totModuloMobile in /home/shops/public_html/privetestwesley01/cache/smarty/compile/fd/61/93/fd6193ba43713e046587cadfaa60d26b11bf679d.file.product-list.tpl.cache.php on line 315
    
    Notice: Trying to get property of non-object in /home/shops/public_html/privetestwesley01/cache/smarty/compile/fd/61/93/fd6193ba43713e046587cadfaa60d26b11bf679d.file.product-list.tpl.cache.php on line 315
    
    Notice: Undefined index: totModuloPortrait in /home/shops/public_html/privetestwesley01/cache/smarty/compile/fd/61/93/fd6193ba43713e046587cadfaa60d26b11bf679d.file.product-list.tpl.cache.php on line 316
    
    Notice: Trying to get property of non-object in /home/shops/public_html/privetestwesley01/cache/smarty/compile/fd/61/93/fd6193ba43713e046587cadfaa60d26b11bf679d.file.product-list.tpl.cache.php on line 316
    

    And 

    [ThirtyBeesException]
    Modulo by zero
    at line 324 in file cache/smarty/compile/fd/61/93/fd6193ba43713e046587cadfaa60d26b11bf679d.file.product-list.tpl.cache.php
    
    319.  col-md-<?php echo smarty_modifier_replace((12/Smarty::$_smarty_vars['capture']['nbItemsPerLine']),'.','-');?>
    320.  col-sm-<?php echo smarty_modifier_replace((12/Smarty::$_smarty_vars['capture']['nbItemsPerLineTablet']),'.','-');?>
    321.  col-xs-<?php echo smarty_modifier_replace((12/Smarty::$_smarty_vars['capture']['nbItemsPerLineMobile']),'.','-');?>
    322.  col-xxs-<?php echo smarty_modifier_replace((12/Smarty::$_smarty_vars['capture']['nbItemsPerLinePortrait']),'.','-');?>
    323. 
    324. 		<?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['products']['iteration']%Smarty::$_smarty_vars['capture']['nbItemsPerLineLarge']==0) {?> last-item-of-large-line<?php } elseif ($_smarty_tpl->getVariable('smarty')->value['foreach']['products']['iteration']%Smarty::$_smarty_vars['capture']['nbItemsPerLineLarge']==1) {?> first-item-of-large-line<?php }?><?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['products']['iteration']>($_smarty_tpl->getVariable('smarty')->value['foreach']['products']['total']-$_smarty_tpl->tpl_vars['totModuloLarge']->value)) {?> last-large-line<?php }?><?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['products']['index']<Smarty::$_smarty_vars['capture']['nbItemsPerLineLarge']) {?> first-large-line<?php }?>
    325. 		<?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['products']['iteration']%Smarty::$_smarty_vars['capture']['nbItemsPerLineDesktop']==0) {?> last-item-of-desktop-line<?php } elseif ($_smarty_tpl->getVariable('smarty')->value['foreach']['products']['iteration']%Smarty::$_smarty_vars['capture']['nbItemsPerLineDesktop']==1) {?> first-item-of-desktop-line<?php }?><?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['products']['iteration']>($_smarty_tpl->getVariable('smarty')->value['foreach']['products']['total']-$_smarty_tpl->tpl_vars['totModuloDesktop']->value)) {?> last-desktop-line<?php }?><?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['products']['index']<Smarty::$_smarty_vars['capture']['nbItemsPerLineDesktop']) {?> first-desktop-line<?php }?>
    326. 		<?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['products']['iteration']%Smarty::$_smarty_vars['capture']['nbItemsPerLine']==0) {?> last-in-line<?php } elseif ($_smarty_tpl->getVariable('smarty')->value['foreach']['products']['iteration']%Smarty::$_smarty_vars['capture']['nbItemsPerLine']==1) {?> first-in-line<?php }?><?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['products']['iteration']>($_smarty_tpl->getVariable('smarty')->value['foreach']['products']['total']-$_smarty_tpl->tpl_vars['totModulo']->value)) {?> last-line<?php }?><?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['products']['index']<Smarty::$_smarty_vars['capture']['nbItemsPerLine']) {?> first-line<?php }?>
    327. 		<?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['products']['iteration']%Smarty::$_smarty_vars['capture']['nbItemsPerLineTablet']==0) {?> last-item-of-tablet-line<?php } elseif ($_smarty_tpl->getVariable('smarty')->value['foreach']['products']['iteration']%Smarty::$_smarty_vars['capture']['nbItemsPerLineTablet']==1) {?> first-item-of-tablet-line<?php }?><?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['products']['iteration']>($_smarty_tpl->getVariable('smarty')->value['foreach']['products']['total']-$_smarty_tpl->tpl_vars['totModuloTablet']->value)) {?> last-tablet-line<?php }?><?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['products']['index']<Smarty::$_smarty_vars['capture']['nbItemsPerLineTablet']) {?> first-tablet-line<?php }?>
    328. 		<?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['products']['iteration']%Smarty::$_smarty_vars['capture']['nbItemsPerLineMobile']==0) {?> last-item-of-mobile-line<?php } elseif ($_smarty_tpl->getVariable('smarty')->value['foreach']['products']['iteration']%Smarty::$_smarty_vars['capture']['nbItemsPerLineMobile']==1) {?> first-item-of-mobile-line<?php }?><?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['products']['iteration']>($_smarty_tpl->getVariable('smarty')->value['foreach']['products']['total']-$_smarty_tpl->tpl_vars['totModuloMobile']->value)) {?> last-mobile-line<?php }?><?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['products']['index']<Smarty::$_smarty_vars['capture']['nbItemsPerLineMobile']) {?> first-mobile-line<?php }?>
    329. 		<?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['products']['iteration']%Smarty::$_smarty_vars['capture']['nbItemsPerLinePortrait']==0) {?> last-item-of-portrait-line<?php } elseif ($_smarty_tpl->getVariable('smarty')->value['foreach']['products']['iteration']%Smarty::$_smarty_vars['capture']['nbItemsPerLinePortrait']==1) {?> first-item-of-portrait-line<?php }?><?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['products']['iteration']>($_smarty_tpl->getVariable('smarty')->value['foreach']['products']['total']-$_smarty_tpl->tpl_vars['totModuloPortrait']->value)) {?> last-portrait-line<?php }?><?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['products']['index']<Smarty::$_smarty_vars['capture']['nbItemsPerLinePortrait']) {?> first-portrait-line<?php }?>">
    

    Did anyone else encounter this problem?

    Or does anyone have a solution? Please let me know.

×
×
  • Create New...