Items filtered by date: December 2015

Prestashop used to be a lot easier to move, you just moved it. Unfortunately now you need to make alterations to the database for it function correctly when you move your install. The recommend method is to log in to Prestashop's backend on your old server and make the changes so they match you new server before moving, this is not always an option because you might not have the details for the new server and this gives rise to the second situation you might be in, reconfiguring prestashop's setting after the move where you do not have access to the prestashop backoffice area because it does not work.

So basically this means there are 2 methods of making these database changes:

  1. Before the move using the Prestashop Backoffice / Admin (preferred)
  2. After the move using PHPMyadmin (can be used before and after move)

Also there are considerations about which version of prestashop you are using as this makes a difference.

but in either case if you do not empty and disable the Prestashop cache this will cause you many hours of fun

Moving Prestashop v1.6

Before continuing, if your site is a live shop you should put it in to maintenance mode

  • (Preferences --> Maintenance --> Enable Shop).

Emptying and Disabling the Prestashop Cache

Disabling the cache is an important thing to do when moving prestashop because it can store redirects amongst other things that cause prestashop to load details from the old location even if you have made changes to the location settings mentioned later. It is also wise when moving prestashoop to disable or empty yoou browser cache. Sometimes even after emptying the cache you can get redirect issues and in which case restarting the browser can help especially with .htaccess and 301 redirects.

The admin area does not get cached so when the shop is moved (as per instructions below) you should be able to login, wipe and disable the cache if you access the admin directly after making the changes required for the move.

Via Prestashop's Backoffice / Admin

While you have access to the backoffice you are able to empty and disable the cache which is by far the easiest and most preferred option.

  • Goto (Advanced Parameters --> Performance ) and configure the settings in order as shown below.

Configuring the settings below will ensure you have no caching enabled and that all pages are compiled on demand preventing issues coming from this system. Make sure you scroll all the way down and disable all the caches

There is a "Clear Cache" button at the very top right of the page. This might clear all caches in one go

SMARTY

  • Template compilation = Force compilation
  • Cache = NO
  • Click Save
  • Cache = YES
  • Click Save

your smarty cache has now been flushed

CCC (Combine, Compress and Cache)

Disabling these features is optional and are just included to help debugging if your site does not start working as it should

  • Smart cache for CSS= NO
  • Smart cache for JavaScript= NO
  • Minify HTML= NO
  • Compress inline JavaScript in HTML= NO
  • Move JavaScript to the end= NO
  • Apache optimization= NO

Caching

  • Cache = NO
  • Click Save
  • Cache = YES
  • Click Save

your Cache has now been flushed. You can leave the cache disabled while you make sure the site is running as it should but this is not mandatory.

Manually

This should only be used if you do not have access to the Prestashop admin. I dont know exactly how to manually empty the cache but the following method, although extreme will work.

  1. Delete or move all files in /cache/ folder
  2. Download a fresh copy of Prestashop with the same version number as your shop
  3. Extract all of the files and folders in the cache folder from the zip into the cache folder of your shop

You can also try configuring Prestashop as shown below for your new server and see if you can log into the backoffice, then following the instructions above,empty and disable the cache through the backoffice as this should not be suffering from any caching issues.

 

Before Moving Prestashop - Using the Backoffice

PrestaShop 1.6.x. How to move website from sub-directory to the root folder - Template Monster Help - This has a video showing you the process

After Moving Prestashop - via PHPMyadmin

It should be noted that you can use these methods before you move your prestashop install if required, maybe the server is broken and you cannot access the Backoffice

These settings might only be required for legacy applications but should be changed.

ps_configuration --> PS_SHOP_DOMAIN --> value           | change to the new domain
ps_configuration --> PS_SHOP_DOMAIN_SSL --> value       | change to the new domain

Unless using multishop you should only have 1 entry in this table, if you have more you will need to alter them accordingly. You must alter the following values:

ps_shop_url -->
domain        | change to the new domain
domain_ssl    | change to the new domain
physical_uri  | change to the physical path ( i.e. /builder/public_html/shop/ )

When i edited the physical_uri i was able to access the Backoffice.

Housekeeping after gaining access to the backoffice on the new server

After you have got access to the Backoffice you should go through the following configurations to make sure everything is working correctly.

You should now goto (Preferences / SEO & URLs ) and configure the settings in order as shown below:

  • SET SHOP URL section - check your settings are correct here, they should match what you have just set in the database. If not change them and hit save
  • SET UP URLs section
    • Disable Friendly URL
    • Disable Apache's Multiviews option (optional your server might not support this feature)
    • Disable Apache's mod_security module (optional your server might not support this feature)
    • Click save
    • Enable Friendly URL - This has now regenerated your .htaccess file to match the new location
  • ROBOTS FILE GENERATION - run this and generate your new robots.txt file for the new location
  • Wipe Cache - Just to be thorough you should wipe the cache again
  • Enable Cache - if required
  • Wipe Browser Cache - Delete old or unwanted assets
  • Restart Browser - sometimes the browser will incorrectly serve the wrong assets even though you have wiped the cache because it stores them in the session.

 

Moving Prestashop Older Versions of Prestashop

By the looks of it in v.14 the location settings are in the settings.inc.php file and therefore can be changed before or after a move, but as prestashop has got more complicated (v1.5) the location settings have been added into the database and are supposed to be changed in the backoffice before moving your site as a rule. In v1.5 you can changes these settings after a move but it is a little more tricky.

Additional Steps if changing Domain - Before or After move

These steps might be optional

  • Disable SSL - This might not always be required if SSL is already configured on the target but such enviroments like you Xampp install on your windows PC it is better to have this turned off. There are 2 ways that SSL can be configured:
    • .htaccess - You can set rules in here to enforce SSL either for the front office, back office or both i.e.
      ## SSL enforcement for Prestashop Back Office
      RewriteCond %{HTTPS} !=on
      RewriteRule ^admin6def/.* https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
    • Admin Options - Preferences --> General Options --> Enable SSL - This enforces HTTPS for admin and enables it where required in the front office
  • Disable Canonical Redirect - There are 2 places this can be set
    • .htaccess - If the domain that you are moving to is different you can either disable this or change the domain. The .htaccess method only handles the non-www --> www redirection or vice-versa.
    • Module - You might of installed a 3rd party extension that handles product page canonicalization to make SEO better showing the search engines which is the primary product page when there are multiple entry ppints. Extensions might also handle the non-www --> www redirection. The extensions will need disabling or reconfiguring>
    • You should also make sure the cache is emptied or turned off for the changes to be applied

Notes

  • PS 1.6.0.14  - In prestashop admin, SET SHOP URI when changed in this version the database entry below is changed
    prefix_shop_url --> physical_uri = /myaccount/public_html/
    Changing this setting on it's own does not change the shop's location.
  • If you get really stuck you can move the shop to the same directory on the new server as it was on the old server. it will obviously re-direct yiou on the home page if the caches are on, but you will be able to get in to the admin and run the cache delete option in there.
  • on older version of Prestashop the following database entry is important.
    PS_BASE_URI value="/shop/"
    SHOP_URL

Links

Published in Prestashop
  • A while ago I started having trouble with my optical drives. Both of them keep showing up in Explorer as CD/DVD drives on boot, but as soon as I put a disc in either one, it suddenly turns into a hard-drive—“local disk” is displayed in the Type column, though the File System column remains UDF/CDFS. (I though that maybe it was a permission issue on the registry key in HKLM\System\CurrentControlSet..., but I’m not so certain because of the next test.)
  • When I try to open a disc (of any type), I get an access denied error message. If I open an elevated command-prompt, I am able to access the files.

Solution

Access to CD/DVD Drive is Denied through Windows 7 Explorer (Permission Problem) from superuser.com

You might also find these registry files useful

  • make sure all 3 parts of the reg entery are added including propereties
  • install drive reg file  2
  • change owner of properties sub key to SYSTEM
     

Registry file 1 {code class="brush: ps"}Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E965-E325-11CE-BFC1-08002BE10318}] "Class"="CDROM" "ClassDesc"="@%SystemRoot%\\System32\\StorProp.dll,-17001" @="DVD/CD-ROM drives" "IconPath"=hex(7):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,\ 74,00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,69,\ 00,6d,00,61,00,67,00,65,00,72,00,65,00,73,00,2e,00,64,00,6c,00,6c,00,2c,00,\ 2d,00,33,00,30,00,00,00,00,00 "Installer32"="storprop.dll,DvdClassInstaller" "EnumPropPages32"="storprop.dll,DvdPropPageProvider" "SilentInstall"="1" "NoInstallClass"="1" [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E965-E325-11CE-BFC1-08002BE10318}\0000] "InfPath"="cdrom.inf" "InfSection"="cdrom_install" "ProviderName"="Microsoft" "DriverDateData"=hex:00,80,8c,a3,c5,94,c6,01 "DriverDate"="6-21-2006" "DriverVersion"="6.1.7601.17514" "MatchingDeviceId"="gencdrom" "DriverDesc"="CD-ROM Drive"{/code}

Registry file 2 - DVD with properties key {code class="brush: ps"}Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E965-E325-11CE-BFC1-08002BE10318}] "Class"="CDROM" "ClassDesc"="@%SystemRoot%\\System32\\StorProp.dll,-17001" @="DVD/CD-ROM drives" "IconPath"=hex(7):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,\ 74,00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,69,\ 00,6d,00,61,00,67,00,65,00,72,00,65,00,73,00,2e,00,64,00,6c,00,6c,00,2c,00,\ 2d,00,33,00,30,00,00,00,00,00 "Installer32"="storprop.dll,DvdClassInstaller" "EnumPropPages32"="storprop.dll,DvdPropPageProvider" "SilentInstall"="1" "NoInstallClass"="1" [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E965-E325-11CE-BFC1-08002BE10318}\0000] "InfPath"="cdrom.inf" "InfSection"="cdrom_install" "ProviderName"="Microsoft" "DriverDateData"=hex:00,80,8c,a3,c5,94,c6,01 "DriverDate"="6-21-2006" "DriverVersion"="6.1.7601.17514" "MatchingDeviceId"="gencdrom" "DriverDesc"="CD-ROM Drive" [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E965-E325-11CE-BFC1-08002BE10318}\Properties] "DeviceType"=dword:00000002 "DeviceCharacteristics"=dword:00000100{/code}

Published in Windows 7
Steps are common for Windows Vista and Windows 7. 
 
Method 1.
a. The Internet Explorer shortcut in the Quick Launch toolbar and in the Start menu of Windows 7 x64 will run the 32-bit version of Internet Explorer by default.
b. There are actually two shortcuts for Internet Explorer in the "All Programs" menu.
c. Here's the title of each and the exe's they run:
d.
Internet Explorer 32 bit
"C:\Program Files (x86)\Internet Explorer\iexplore.exe"
Internet Explorer (64-bit)
"C:\Program Files\Internet Explorer\iexplore.exe"
The first one runs IE from the "Program Files (x86)" folder, this is the 32-bit version. The second one is the 64-bit version.
 
 
Method 2.
If you want to change the default internet explorer from 32 bit to 64 bit you may perform the following steps.
You can change the program windows uses by default to open with different file extensions.
Here is how:
a. Click on Start and go to Default Programs.
b. Click on Associate a file type or protocol always open in a specific program.
c. Browse to all the extensions where internet explorer is set as default and then click onchange.
d. Now Click on browse and then go to location C:\Program Files\Internet Explorer\iexplore.exeand select it.
e. Click Ok and then Close.
f. Click Save.
Published in Windows Family
Sunday, 06 May 2012 15:35

WSOD - White screen of death

Win7 seems to install and reboots. Then I get a white screen with a cursor in the upper left hand corner. I can move the cursor but nothing else happens.

If I reboot again in safe mode from the HD windows loads but says it cannot finish installing in safe mode. If I reboot in regular mode it's the same thing over again.


Solution 1

If you've installed more than 2GB RAM, try cutting it back to just 2GB.

If this worked, you have a problem related to some AMD64 chips.

More info here:
http://social.technet.microsoft.com/Forums/en-US/w7itproui/thread/db44f451-f531-4553-96b7-b29e5388613e


Solution 2

After installing W7 and rebooting I got a white screen.

  1. start W7 in safe mode
  2. in search programs type: msconfig
  3. in tab computer booting choose advanced settings check: number of processors and the maximum memory

I have a dual processor CPU and this did the trick.


try reseting the BIOS

Published in Windows Vista

fdf


Solution 1

This is what you do:

  1. Go to start
  2. Type cmd and open it
  3. Type this:
    netsh winsock reset
  4. Enter
  5. Reset
  6. Fixed.

Solution 2

I have an internet explorer resetter application from iefaq, run this and it should fix the issue

 

 

Published in Windows Family
Sunday, 06 May 2012 15:01

Windows My Computer crashes

window 7 explorer / My Computer crashes when you open it. somtimes it can be straight away and other times seems random, but you never get long to browse.


error was caused by:

c:\windows\system32\thumbcache.dll

this was discovered by reading the event log


solution:

empty thumbnail cache with disc cleanup.

spyware could also be the cause of this so service PC if the first option does not work

Published in Windows 7

These scripts Fix most of Internet Explorer issues for versions IE7 - IE9

  • open in new tab/window not working
  • Find on this page "empty"
  • tabs on Favorites pane missing
  • about screen and other dialogs "empty"
  • IE8 closes immediately (not if caused by an add-on!)
  • can't print (interface not registered)


Versions: (please download the correct one for your Windows version!) these are available from iefaq

  •  ie8-rereg.zip: for IE7/8 on 32bit-Windows
  •  ie8-rereg.32on64.zip: for 32bit IE8 on 64bit Windows
  •  ie8-rereg.64on64.zip: for 64bit IE8 on 64bit Windows
  •  ie8-rereg.all.zip: contains all the above scripts
Published in Windows Family
Sunday, 06 May 2012 14:38

Partition Hex Codes

Partition Hex codes

0x00 unknown type or empty
0x01 12-bit FAT
0x02 XENIX root file system
0x03 XENIX /usr file system (obsolete)
0x04 16-bit FAT, partition <32 MB
0x05 Extended partition or Extended volume
0x06 16-bit FAT, partition >=32 MB
0x07 Installable file system: HPFS, NTFS
0x07 QNX
0x07 Advanced Unix
0x08 AIX bootable partition
0x08 AIX (Linux)
0x08 SplitDrive
0x08 OS/2 (through Version 1.3) (Landis)
0x08 Dell partition spanning multiple drives (array) (Landis)
0x08 Commodore DOS (Landis)
0x09 AIX data partition
0x09 AIX bootable (Linux)
0x09 Coherent file system
0x09 QNX
0x0A Coherent swap partition
0x0A OPUS
0x0A OS/2 Boot Manager
0x0B 32-bit FAT
0x0C 32-bit FAT, EXT INT 13
0x0E 16-bit FAT >= 32 MB, Ext INT 13
0x0F Extended partition, Ext INT 13
0x10 OPUS
0x11 Hidden 12-bit FAT
0x12 Compaq diagnostics (Landis)
0x14 Hidden 16-bit FAT, partition <32 MB
0x14 Novell DOS 7.0 (result of bug in FDISK?) (Landis)
0x14 AST DOS with logical sectored FAT
0x16 Hidden 16-bit FAT, partition >= 32 MB
0x17 Hidden IFS
0x18 AST Windows swap file
0x19 Willowtech Photon coS
0x1B Hidden 32-bit FAT
0x1C Hidden 32-bit FAT, Ext INT 13
0x1E Hidden 16-bit FAT >32 MB, Ext INT 13 (PowerQuest specific)
0x20 Willowsoft Overture File System (OFS1)
0x21 officially listed as reserved (HP Volume Expansion, SpeedStor variant)
0x21 Oxygen FSo2
0x22 Oxygen Extended
0x23 officially listed as reserved (HP Volume Expansion, SpeedStor variant?)
0x24 NEC MS-DOS 3.x
0x26 officially listed as reserved (HP Volume Expansion, SpeedStor variant?)
0x31 officially listed as reserved (HP Volume Expansion, SpeedStor variant?)
0x33 officially listed as reserved (HP Volume Expansion, SpeedStor variant?)
0x34 officially listed as reserved (HP Volume Expansion, SpeedStor variant?)
0x36 officially listed as reserved (HP Volume Expansion, SpeedStor variant?)
0x38 Theos
0x3C PowerQuest Files Partition Format
0x3D Hidden NetWare
0x40 VENIX 80286
0x41 Personal RISC Boot (Landis)
0x41 PowerPC boot partition
0x41 PTS-DOS 6.70 & BootWizard: Alternative Linux, Minix, and DR-DOS
0x42 Secure File System (Landis)
0x42 Windows 2000 (NT 5): Dynamic extended partition
0x42 PTS-DOS 6.70 & BootWizard: Alternative Linux swap and DR-DOS
0x43 Alternative Linux native file system (EXT2fs)
0x43 PTS-DOS 6.70 & BootWizard: DR-DOS
0x45 Priam
0x45 EUMEL/Elan
0x46 EUMEL/Elan
0x47 EUMEL/Elan
0x48 EUMEL/Elan
0x4A ALFS/THIN lightweight filesystem for DOS
0x4D QNX
0x4E QNX
0x4F QNX
0x4F Oberon boot/data partition
0x50 Ontrack Disk Manager, read-only partition, FAT partition (Logical sector size varies)
0x51 Ontrack Disk Manager, read/write partition, FAT partition (Logical sector size varies)
0x51 Novell ?
0x52 CP/M
0x52 Microport System V/386
0x53 Ontrack Disk Manager, write-only (Landis)
0x54 Ontrack Disk Manager 6.0 (DDO)
0x55 EZ-Drive 3.05
0x56 Golden Bow VFeature
0x5C Priam EDISK
0x61 Storage Dimensions SpeedStor
0x63 GNU HURD
0x63 Mach, MtXinu BSD 4.2 on Mach
0x63 Unix Sys V/386, 386/ix
0x64 Novell NetWare 286
0x64 SpeedStore (Landis)
0x65 Novell NetWare (3.11 and 4.1)
0x66 Novell NetWare 386
0x67 Novell NetWare
0x68 Novell NetWare
0x69 Novell NetWare 5+; Novell Storage Services (NSS)
0x70 DiskSecure Multi-Boot
0x75 IBM PC/IX
Codes 7A to 7F are not shown in the IMB or MS lists obtained by Hale Landis
0x80 Minix v1.1 - 1.4a
0x80 Old MINIX (Linux)
0x81 Linux/Minix v1.4b+
0x81 Mitac Advanced Disk Manager
0x82 Linux Swap partition
0x82 Prime (Landis)
0x82 Solaris (Unix)
0x83 Linux native file system (EXT2fs/xiafs)
0x84 OS/2 hiding type 04h partition
0x84 APM hibernation, can be used by Win98
0x86 NT Stripe Set, Volume Set?
0x87 NT Stripe Set, Volume Set?
0x87 HPFS FT mirrored partition (Landis)
0x93 Amoeba file system
0x93 Hidden Linux EXT2 partition (by PowerQuest products)
0x94 Amoeba bad block table
0x99 Mylex EISA SCSI
0x9F BSDI
0xA0 Phoenix NoteBios Power Management "Save to Disk"
0xA0 IBM hibernation
0xA1 HP Volume Expansion (SpeedStor variant)
0xA3 HP Volume Expansion (SpeedStor variant)
0xA4 HP Volume Expansion (SpeedStor variant)
0xA5 FreeBSD/386
0xA6 OpenBSD
0xA6 HP Volume Expansion (SpeedStor variant)
0xA7 NextStep Partition
0xA9 NetBSD
0xAA Olivetti DOS with FAT12
0xB0      BootStar Dummy (part of DriveStar disk image by Star-Tools GmbH)
0xB1 HP Volume Expansion (SpeedStor variant)
0xB3 HP Volume Expansion (SpeedStor variant)
0xB4 HP Volume Expansion (SpeedStor variant)
0xB6 HP Volume Expansion (SpeedStor variant)
0xB7 BSDI file system or secondarily swap
0xB8 BSDI swap partition or secondarily file system
0xBB PTS BootWizard
0xBE Solaris boot partition
0xC0 Novell DOS/OpenDOS/DR-OpenDOS/DR-DOS secured partition
0xC0 CTOS (reported by a customer)
0xC1 DR-DOS 6.0 LOGIN.EXE-secured 12-bit FAT partition
0xC2 Reserved for DR-DOS 7+
0xC3 Reserved for DR-DOS 7+
0xC4 DR-DOS 6.0 LOGIN.EXE-secured 16-bit FAT partition
0xC6 DR-DOS 6.0 LOGIN.EXE-secured Huge partition
0xC6 corrupted FAT16 volume/stripe (V/S) set (Windows NT)
0xC7 Syrinx
0xC7 Cyrnix (Landis)
0xC7 HPFS FT disabled mirrored partition (Landis)
0xC7 corrupted NTFS volume/stripe set
0xC8 Reserved for DR-DOS 7+
0xC9 Reserved for DR-DOS 7+
0xCA Reserved for DR-DOS 7+
0xCB Reserved for DR-DOS secured FAT32
0xCC Reserved for DR-DOS secured FAT32X (LBA)
0xCD Reserved for DR-DOS 7+
0xCE Reserved for DR-DOS secured FAT16X (LBA)
0xCF Reserved for DR-DOS secured extended partition (LBA)
0xD0 Multiuser DOS secured (FAT12???)
0xD1 Old Multiuser DOS secured FAT12
0xD4 Old Multiuser DOS secured FAT16 (<= 32M)
0xD5 Old Multiuser DOS secured extended partition
0xD6 Old Multiuser DOS secured FAT16 (BIGDOS > 32 Mb)
0xD8 CP/M 86 (Landis)
0xDB CP/M, Concurrent CP/M, Concurrent DOS
0xDB CTOS (Convergent Technologies OS)
0xDE DeLL partition
0xDF BootIt EMBRM
0xE1 SpeedStor 12-bit FAT extended partition
0xE1 DOS access (Linux)
0xE2 DOS read-only (Florian Painke's XFDISK 1.0.4)
0xE3 SpeedStor (Norton, Linux says DOS R/O)
0xE4 SpeedStor 16-bit FAT extended partition
0xE5 Tandy DOS with logical sectored FAT
0xE6 Storage Dimensions SpeedStor
0xEB BeOS file system
0xED Reserved for Matthias Paul's Spryt*x
0xF1 SpeedStor Dimensions (Norton,Landis)
0xF2 DOS 3.3+ second partition
0xF2 Unisys DOS with logical sectored FAT
0xF3 Storage Dimensions SpeedStor
0xF4 SpeedStor Storage Dimensions (Norton,Landis)
0xF5 Prologue
0xF6 Storage Dimensions SpeedStor
0xFD Reserved for FreeDOS (http://www.freedos.org)
0xFE LANstep
0xFE IBM PS/2 IML (Initial Microcode Load) partition
0xFE Storage Dimensions SpeedStor (> 1024 cylinder???)
0xFF Xenix bad-block table
Published in Data Recovery

cursor and keyboard really slow to respond like the laptop is overheating (after this is ruled out) and the computer is running generally slow but laptop responds fine with bartpe or safe mode and when the battery is removed everything runs fine


solutions:

1. remove the battery and keep it out
2. buy a new battery
3. disable in device manager, 'Microsoft ACPI-Compliant Method Battery'

Published in Laptops
Sunday, 06 May 2012 14:12

Bad Request 400

when trying to install a extension in joomla you get a Bas Request 400 error. Try the following:

  1. delete all cookies and restart browser,
  2. Use a different browser
  3. possibly empty cache
Published in Joomla
Page 66 of 96