Check this page as an example:
https://garrysun.com/staging/index.php? ... 101&page=2
I have some product with images and some with broken images.
Correct Images are using this link: https://garrysun.com/staging/image/cach ... 00x600.JPG (for "Pinda Oil")
Broken Images are using this link: /home1/garrysun/public_html/staging/image/data/tra png.jpg (for "Trayodashang Guggulu (Tablets)")
I have searched my DB and these urls do not seem to be stored there. Everything starts at /data in the database. Also I noticed that the images that are working use /cache/data instead of image/data.
Is there a setting in OpenCart where you set the base url for images? Basically I need to know how can I change all of these broken urls at once. There are too many for me to go into each one a reset the images.
Someone mentioned that it may be the config files, this wouldn't make sense to me if only some of the images don't show up. Here is what I have:
ADMIN CONFIG:
Code: Select all
// HTTP
define('HTTP_SERVER', 'https://garrysun.com/staging/admin/');
define('HTTP_CATALOG', 'https://garrysun.com/staging/');
// HTTPS
define('HTTPS_SERVER', 'https://garrysun.com/staging/admin/');
define('HTTPS_CATALOG', 'https://garrysun.com/staging/');
// DIR
define('DIR_APPLICATION', '/home1/garrysun/public_html/staging/admin/');
define('DIR_SYSTEM', '/home1/garrysun/public_html/staging/system/');
define('DIR_IMAGE', '/home1/garrysun/public_html/staging/image/');
define('DIR_LANGUAGE', '/home1/garrysun/public_html/staging/admin/language/');
define('DIR_TEMPLATE', '/home1/garrysun/public_html/staging/admin/view/template/');
define('DIR_CONFIG', '/home1/garrysun/public_html/staging/system/config/');
define('DIR_CACHE', '/home1/garrysun/public_html/staging/system/storage/cache/');
define('DIR_DOWNLOAD', '/home1/garrysun/public_html/staging/system/storage/download/');
define('DIR_LOGS', '/home1/garrysun/public_html/staging/system/storage/logs/');
define('DIR_MODIFICATION', '/home1/garrysun/public_html/staging/system/storage/modification/');
define('DIR_UPLOAD', '/home1/garrysun/public_html/staging/system/storage/upload/');
define('DIR_CATALOG', '/home1/garrysun/public_html/staging/catalog/');
ROOT CONFIG:
Code: Select all
// HTTP
define('HTTP_SERVER', 'https://garrysun.com/staging/');
// HTTPS
define('HTTPS_SERVER', 'https://garrysun.com/staging/');
// DIR
define('DIR_APPLICATION', '/home1/garrysun/public_html/staging/catalog/');
define('DIR_SYSTEM', '/home1/garrysun/public_html/staging/system/');
define('DIR_IMAGE', '/home1/garrysun/public_html/staging/image/');
define('DIR_LANGUAGE', '/home1/garrysun/public_html/staging/catalog/language/');
define('DIR_TEMPLATE', '/home1/garrysun/public_html/staging/catalog/view/theme/');
define('DIR_CONFIG', '/home1/garrysun/public_html/staging/system/config/');
define('DIR_CACHE', '/home1/garrysun/public_html/staging/system/storage/cache/');
define('DIR_DOWNLOAD', '/home1/garrysun/public_html/staging/system/storage/download/');
define('DIR_LOGS', '/home1/garrysun/public_html/staging/system/storage/logs/');
define('DIR_MODIFICATION', '/home1/garrysun/public_html/staging/system/storage/modification/');
define('DIR_UPLOAD', '/home1/garrysun/public_html/staging/system/storage/upload/');