Entries by Stefan Helander

Random product added to cart along with selected product in PrestaShop [solved]



Using PrestaShop 1.6.1.18, this was an older shop that had been offline for a couple of years. It had been upgraded in steps from PrestaShop 1.4 via 1.5 to 1.6. While testing it before relaunch of the shop a problem was discovered. Sometimes when adding a product to the shopping cart, another random product was […]

How to move a PrestaShop 1.6 from one domain to another (resolving redirect problems)



There are several descriptions online on how to do this but in one occasion, even though I followed the instructions carefully it kept redirecting me to the old domain name. In my particular case the culprit was that the site used file system cache which was active before the move. The following procedure fixed my […]

How to convert a certificate PFX file to CRT/KEY using openssl



Your PFX certificate file is protected with a password. It can be converted to CRT and KEY files using SSL: openssl pkcs12 -in certfile.pfx -nocerts -out keyfile-encrypted.key When you enter this command you will be asked to type in the pfx file password in order to extract the key. You will be asked to enter […]

Anchor links does not scroll to the correct position



There are several issues that can cause local anchor links to not scroll to the right position. The first thing to check is if you have an id-tag that has the same name as the anchor. In this case the browser will scroll to the id position instead. The solution is to name the anchor […]

Gogodigital Cookie Consent plugin for Joomla! doesn’t display custom message [solution]



Using Gogodigital Cookie Consent plugin for Joomla! version 3.0.2. In the plugin configuration a custom message and submit label was entered and saved but on the frontend the popup only displays the built in message and button label. Solution: It turns out there is a bug when the message entered has a newline (return). If […]

MySQL not sorting swedish characters ÅÄÖ correct [solved]



Problem: When using ORDER BY or GROUP BY, the swedish characters Å,Ä and Ö is sorted as A and O. Solution: add COLLATE utf8_swedish_ci to your ORDER BY or GROUP BY, for example: SELECT field1,field2 FROM table1 ORDER BY field1 ASC should be changed to: SELECT field1,field2 FROM table1 ORDER BY field1 COLLATE utf8_swedish_ci ASC

RSForm! Pro and reCaptcha plugin not working [solved]



Using RSForm! Pro together with the RS!Form Pro reCaptcha plugin stopped working, the reCaptcha does not show up in the form anymore. Inspecting the page shows errors like “Unexpected token <” on line 2 and further down complains that RSFormProReCAPTCHAv2 is not defined. The Unexpected token error is probably caused by a line in the <head> […]

Error 500 after PrestaShop upgrade from 1.5 to 1.6



Upgrading a PrestaShop 1.5 to 1.6 resulted in Error 500 when visiting the shop frontend. During the upgrade I had selected to disable all non native modules, replace theme with default theme and updating all emails. I tried every trick in  the book, like cleaning the cache, disable all caching and compression, etc but it […]

Mac OSX “El Capitan” software update stuck on “11 minutes remaining”



When installing a software update for Mac OSX “El Capitan” that required a system reboot to install, it seemed stuck on the white screen displaying a text “Installing software update: About 11 minutes”. The solution was quite simple – just wait. It seems the time calculation is really off. After about an hour it stepped […]