Category: troubleshoot

  • Prestashop: Fix pagination error on Attributes and Features in Backoffice

    https://github.com/PrestaShop/PrestaShop/pull/8638/files

    https://www.prestashop.com/forums/topic/554037-possible-bug-on-product-attributes-list-pagination-in-1616/

    https://www.prestashop.com/forums/topic/507337-backoffice-pagination-error-in-products-attribute-section/

    Hi, i fixed this by adding a short code to ‘AdminAttributesGroupsController.php’ in /controllers/admin/

        public function setRedirectAfter($url)
        {
            $addUrl = '';
            if(Tools::isSubmit('viewattribute_group') && Tools::getValue('id_attribute_group')) {
                $addUrl = '&viewattribute_group&id_attribute_group=' . Tools::getValue('id_attribute_group');
            }
    
            $this->redirect_after = $url . $addUrl;
        }

    Function fixes the bug too for Feature values. We need to create an override for ‘AdminFeaturesController.php’:

    <?php
    
    class AdminFeaturesController extends AdminFeaturesControllerCore
    {
    
       public function setRedirectAfter($url)
        {
            $addUrl = '';
            if(Tools::isSubmit('viewfeature') && Tools::getValue('id_feature')) {
                $addUrl = '&viewfeature&id_feature=' . Tools::getValue('id_feature');
            }
    
            $this->redirect_after = $url . $addUrl;
        }
    }
  • Troubleshoot: Solve Windows ink Wacom pen scrolling instead of selecting issue

    Pen tablet scrolling instead of behaving as normal. Issue happened after routine Windows update.
    Open Wacom Tablet Properties, selecting Mapping, uncheck Windows Ink option.

    As a safe-guard, open Pen & Windows Ink Settings
    Disable related items as well.

  • Prestashop 1.7: Smarty error blank page on front end if adding new language manually

    http://forge.prestashop.com/browse/BOOM-3486

    Error: When adding a new language in the backend (localization->languages), there is no option to enter the locale, resulting in an empty locale field in the table ps_lang.
    This results in a smarty error on frontend when selecting the new language:
    {code}
    SmartyException in smarty_internal_templatebase.php line 129:
    Unable to load template file ‘\index.tpl’ {code}

    User’s suggested solution:
    As soon as I manually add a locale in the database, the error goes away.
    Table: ps_lang
    Add the missing locale to the table

    Normally adding/importing a new language should go to: Translation > Add/Update a new language (or through the localization page)
    But there are times when languages may be required to be added manually and this causes the issue.

  • Prestaship 1.6 Fix for Contact form invulnerable to spam bots

    Contact form is vulnerable to spam bot. Captcha does not help in this case.
    Fix here – https://github.com/PrestaShop/PrestaShop/pull/8168/files

    Useful information on how to build an anti spam bot contact form without captcha
    http://www.nfriedly.com/techblog/2009/11/how-to-build-a-spam-free-contact-forms-without-captchas/

    Update:
    Doesn’t work well against some automated spammers. Change the friendly url of the contact-us to something else and it stopped the spamming completely.
    https://www.prestashop.com/forums/topic/442633-add-recaptcha-to-prestashop-version-16014-for-free/?page=5
    https://www.prestashop.com/forums/topic/673164-how-do-i-integrate-recaptcha-v2-into-prestashop/?tab=comments#comment-2697948

  • How to fix Sony Vegas Black Screen rendering error

    Source: https://www.youtube.com/watch?v=7QVPSOBj3sQ

    In timeline
    Right click affected video, propeties >
    Switches > Disable Resample

    File menu
    Options> Preferences > uncheck close media files when not the active application

    Restart the application and try. Should work.

  • Troubleshoot: Reclaim Disk Space from Drive C By Clearing iTunes Backups and Data

    Drive C disk space went critically low to almost 0 Gig!

    Uninstalled many programs which didn’t help much.

    Initially I thought Adobe software cache was the culprit based on this link… but mine was only taking up around 200MB
    http://marcschultz.com/blog/adobes-abuse-of-hard-drive-storage-space/

    Which then led me to do a folder by folder size check

    C:\Users\”Your Username”\AppData\Roaming\Apple Computer
    Took up more than 60Gigs of space… =_= Housekeeping way overdue.

    https://www.igeeksblog.com/how-to-reclaim-disk-space-by-clearing-itunes-backups-and-data/

  • Troubleshoot: Fix Internet Explorer 8 mess up WordPress themes

    Use this service to test the pages https://netrenderer.com

    https://developer.microsoft.com/en-us/microsoft-edge/

    How to fix Internet Explorer 8 messing up WordPress themes

    Download virtual machines
    Test Microsoft Edge and versions of IE8 through IE11 using free virtual machines you download and manage locally.
    https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/

    https://developer.microsoft.com/en-us/microsoft-edge/tools/screenshots/

  • Easy Fancybox: Solution for Iframe no-scroll issue in mobile

    Source: https://alucard-blog.blogspot.sg/2016/06/how-to-fix-fancy-boxeasy-fancybox.html

    How to fix fancy box scroll not working in mobile. Using wordpress plugin https://wordpress.org/plugins/easy-fancybox/

    In Easy Fancybox, you will see these 2 lines in the jquery.fancybox-1.3.7.js: (do a folder search for id=”fancybox-content” to get better idea of how it looks like)

    <div id=”fancybox-content”……..>
    <iframe id=”fancybox-frame” name……………

    Apply to fancybox-content, not fancybox-frame

    So in your custom/child theme CSS, it should be:

    #fancybox-content{
    overflow: scroll !important;
    -webkit-overflow-scrolling: touch !important;
    }

  • WAMP: Troubleshooting tips

    After fresh install wampserver, some configurations need to be changed, or you’ll get 403 Forbidden error for setting up virtual directories (url links for local machine)

    C:\wamp64\bin\apache\apache2.4.17\conf\httpd.conf

    <Directory />
    AllowOverride none
    Require all denied
    </Directory>

    change to:

    <Directory />
    # Added to allow .htaccess in individual site folders to override
    AllowOverride ALL
    #AllowOverride none
    #Require all denied
    </Directory>

    Other minor changes, refer to the httpd.conf of the previous version and do a side-by-side comparison

  • Prestashop: Editing orders from customers or after delivered status

    Source: https://www.prestashop.com/forums/topic/276384-solvedunable-to-modify-customer-order-from-backoffice/?tab=comments#comment-1388383

    Back Office—->Orders—>Statuses—>Preparation in Progress(Or any status which is set as default), I unchecked “Show Delivery PDF.”

    Status should not have “delivered” option.

    In table ps_order_history remove this order’s “Delivered” state

    https://www.prestashop.com/forums/topic/276384-solvedunable-to-modify-customer-order-from-backoffice/#entry1388383

    (Not sure if necessary, should test)
    In tables ps_orders/ps_order_invoice
    delivery_number change to 0
    delivery_date change to 0000-00-00 00:00:00