Website: https://shop.grassroots1968.com/
I installed the software in a sub-directory of the main domain www.grassroots1968.com. After the installation I set up a sub-domain of shop.grassroots.com and now the icons at the top of the page for account, wish list etc and not showing as well as the add to cart buttons. They are all appearing as a small square. I'm thinking that I may just need to make a change to the .htaccess file? Any help is appreciated.
DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.
https://www.youtube.com/watch?v=zXIxDoCRc84
Code: Select all
RewriteCond %{HTTP_USER_AGENT} ^-?$ [NC]
RewriteCond %{REQUEST_URI} !.*\.(ico|cur|mp3|mpeg|webp|svg|ttf|eot|woff|woff2|js|cfg|css|xml|pdf|zip|env|tar|sql|gz|exe|rar|arj|cab|iso|rpm|tbz|tgz|old|bak|backup|dump|db|7z)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
...
Code: Select all
## Allow cross-origin requests.
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
</IfModule>
<IfModule mod_headers.c>
<FilesMatch "\.(ttf|ttc|otf|ico|pdf|flv|eot|woff|woff2|font.css|css|js)$">
Header set Access-Control-Allow-Origin "*"
Header always append X-Frame-Options SAMEORIGIN
</FilesMatch>
</IfModule>
## Send the CORS header for images when browsers request it.
<IfModule mod_setenvif.c>
<IfModule mod_headers.c>
<FilesMatch "\.(bmp|cur|gif|ico|jpe?g|png|svgz?|webp)$">
SetEnvIf Origin ":" IS_CORS
Header set Access-Control-Allow-Origin "*" env=IS_CORS
</FilesMatch>
</IfModule>
</IfModule>
config.php files:
either (SUB-DOMAIN configuration for HTTP Access !)
Code: Select all
// HTTP
define('HTTP_SERVER', 'http://subdomain.yourshop.com/');
define('HTTP_IMAGE', 'http://yourshop.com/image/');
// HTTPS
define('HTTPS_SERVER', 'http://subdomain.yourshop.com/');
define('HTTPS_IMAGE', 'http://yourshop.com/image/');
Code: Select all
// HTTP
define('HTTP_SERVER', 'https://subdomain.yourshop.com/');
define('HTTP_IMAGE', 'https://yourshop.com/image/');
// HTTPS
define('HTTPS_SERVER', 'https://subdomain.yourshop.com/');
define('HTTPS_IMAGE', 'https://yourshop.com/image/');
Code: Select all
// HTTP
define('HTTP_SERVER', 'http://www.yourshop.com/');
define('HTTP_IMAGE', 'http://yourshop.com/image/');
// HTTPS
define('HTTPS_SERVER', 'http://www.yourshop.com/');
define('HTTPS_IMAGE', 'http://yourshop.com/image/');
Good Luck!
Ernie
My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
Don't forget to add [SOLVED] to the beginning of the post title.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Warning: Use of undefined constant HTTP_CATALOG - assumed 'HTTP_CATALOG' (this will throw an Error in a future version of PHP) in /home/dh_5kw8wa/grassroots1968.com/2-3-0-2/admin/controller/common/header.php on line 121Warning: Use of undefined constant HTTPS_CATALOG - assumed 'HTTPS_CATALOG' (this will throw an Error in a future version of PHP) in /home/dh_5kw8wa/grassroots1968.com/2-3-0-2/admin/model/tool/image.php on line 42
This is a warning message for PHP Version , not only one warning soon you will be seeing more warning coming through, I will suggest better install the latest fresh copy of OC version so it is capable of PHP latest versions.WavMixer wrote: ↑Wed Aug 05, 2020 1:01 pmWarning: Use of undefined constant HTTP_CATALOG - assumed 'HTTP_CATALOG' (this will throw an Error in a future version of PHP) in /home/dh_5kw8wa/grassroots1968.com/2-3-0-2/admin/controller/common/header.php on line 121Warning: Use of undefined constant HTTPS_CATALOG - assumed 'HTTPS_CATALOG' (this will throw an Error in a future version of PHP) in /home/dh_5kw8wa/grassroots1968.com/2-3-0-2/admin/model/tool/image.php on line 42
Or if you have VPS/Dedicated hosting service plan then stick to +5.4 version. (hence this is not recommend solution) but will work without any warning.
Urgent Questions shoot here: khnaz35@gmail.com
Enjoy nature
sure won't work!
You forgot to add a 'forward slash' , besides of linking the images
into the Admin Section, what should not be the case ...
My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
// HTTP
define('HTTP_SERVER', 'https://shop.grassroots1968.com/admin/');
define('HTTP_CATALOG',' https://shop.grassroots1968.com/');
// HTTPS
define('HTTPS_SERVER', 'https://shop.grassroots1968.com/admin/');
define('HTTPS_IMAGE', 'https://shop.grassroots1968.com/image/');
define('HTTP_CATALOG',' https://shop.grassroots1968.com/');
Code: Select all
<?php
// HTTP
define('HTTP_SERVER', 'https://shop.xyz.com/admin/');
define('HTTP_CATALOG', 'https://shop.xyz.com/');
// HTTPS
define('HTTPS_SERVER', 'https://shop.xyz.com/admin/');
define('HTTPS_CATALOG', 'https://shop.xyz.com/');
// DIR
define('DIR_APPLICATION', '/home/gqvxzdmy/public_html/admin/');
define('DIR_SYSTEM', '/home/gqvxzdmy/public_html/system/');
define('DIR_LANGUAGE', '/home/gqvxzdmy/public_html/admin/language/');
define('DIR_TEMPLATE', '/home/gqvxzdmy/public_html/admin/view/template/');
define('DIR_CONFIG', '/home/gqvxzdmy/public_html/system/config/');
define('DIR_IMAGE', '/home/gqvxzdmy/public_html/image/');
define('DIR_CACHE', '/home/gqvxzdmy/public_html/system/storage/cache/');
define('DIR_DOWNLOAD', '/home/gqvxzdmy/public_html/system/storage/download/');
define('DIR_LOGS', '/home/gqvxzdmy/public_html/system/storage/logs/');
define('DIR_MODIFICATION', '/home/gqvxzdmy/public_html/system/storage/modification/');
define('DIR_UPLOAD', '/home/gqvxzdmy/public_html/system/storage/upload/');
define('DIR_CATALOG', '/home/gqvxzdmy/public_html/catalog/');
// DB
define('DB_DRIVER', '...............................................');
define('DB_HOSTNAME', '......................................');
define('DB_USERNAME', '......................................');
define('DB_PASSWORD', '.....................................');
define('DB_DATABASE', '......................');
define('DB_PORT', '.............................');
define('DB_PREFIX', '.............................');
Urgent Questions shoot here: khnaz35@gmail.com
Enjoy nature
Users browsing this forum: No registered users and 51 guests