Opencart 3.x Image src unknown error
Few days ago one of our client reported an error on his opencart store that was working perfectly in past. However suddenly it started giving error with the product images. He was not able to upload, edit, view images under admin panel as well as on front-end.
Images were failed to load on web site, and when i checked the source of images i found unknown or empty src. I tried to fix the errors while googling this issue but could not find any solution. Apparently i found out there is an image compressor php script included in the opencart. I just opened it at following location :
Front-end: Read More
Switching between litespeed and apache from ssh | switch from litespeed
Today i will tell you the ssh command to switch between apache and litespeed web servers. You must have litespeed installed on the server.
This command is useful when you have apache and litespeed installed and your cPanel license is no more operational or expired. You can still swtich between web servers by executing this command via terminal/ssh.
Login to your server with root access via ssh terminal and run followimg ssh command:
To switch from litespeed to apache:
sh /usr/local/lsws/admin/misc/cp_switch_ws.sh apache
To switch from apache to litespeed:
sh /usr/local/lsws/admin/misc/cp_switch_ws.sh lsws
Please note you should write correct path of your litespeed installation directory.
WHMCS integration of domain check for PKNIC domains
Pakistan’s largest domains (cTLDs) provider PKNIC has no WHMCS modules or domain checking mechanism for 3rd party tools.
You can add these domains checker functionality to your WHMCS by doing below simple steps:
For WHMCS 5.x, 6.x
- Login to your FTP and edit file “WHMCS installation folder/includes/whoisservers.php” in any text editor or Dreamweaver
- Now paste following below code at the end of the file and save that file to your server.