Post by brydekirk » Sun Jan 22, 2023 6:22 pm

Hi,
We are using Opencart 3.0.3.1 for our website www.gallowayfudge.com.

I have installed xampp and then copied our live website into a folder (GFC3031) in htdocs. I have also imported our database and modified the two config.php files to reflect the local install.

This is the config.php file in root folder. I have deliberately not shown the DB section.

<?php
// HTTP
define('HTTP_SERVER', 'http://localhost/GFC3031/');

// HTTPS
define('HTTPS_SERVER', 'https://localhost/GFC3031/');

// DIR
define('DIR_APPLICATION', 'F:/xampp/htdocs/GFC3031/catalog/');
define('DIR_SYSTEM', 'F:/xampp/htdocs/GFC3031/system/');
define('DIR_IMAGE', 'F:/xampp/htdocs/GFC3031/image/');
define('DIR_STORAGE', 'F:/xampp/htdocs/GFC3031/GFC3031storage/');
define('DIR_LANGUAGE', DIR_APPLICATION . 'language/');
define('DIR_TEMPLATE', DIR_APPLICATION . 'view/theme/');
define('DIR_CONFIG', DIR_SYSTEM . 'config/');
define('DIR_CACHE', DIR_STORAGE . 'cache/');
define('DIR_DOWNLOAD', DIR_STORAGE . 'download/');
define('DIR_LOGS', DIR_STORAGE . 'logs/');
define('DIR_MODIFICATION', DIR_STORAGE . 'modification/');
define('DIR_SESSION', DIR_STORAGE . 'session/');
define('DIR_UPLOAD', DIR_STORAGE . 'upload/');

// DB

at the moment I have two distinct problems.

Problem 1 is that although the dashboard is shown when I login as Admin, it is "wonky" and difficult to use, See attached images.

Problem 2 is that when I try to load our website's homepage using http://localhost/GCF3031/ it generates a 404 error and nothing else.

I would be grateful if someone could explain to me why the dashboard might be incorrectly displayed and where I should be looking for whatever is resulting in the 404 error.

Thanks in advance, Ian

Image
Image

New member

Posts

Joined
Sun Dec 30, 2018 7:26 pm

User avatar
Guru Member
Online

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by brydekirk » Sun Jan 22, 2023 10:00 pm

Hi,
Thanks for your suggestion.

The htaccess file just has RewriteBase /

Given that I have opencart installed in f:/xampp/htdocs/gfc3031 what should the Rewrite?base be in my htaccess ?

Thanks,
Ian

New member

Posts

Joined
Sun Dec 30, 2018 7:26 pm

User avatar
Guru Member
Online

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by brydekirk » Sun Jan 22, 2023 11:18 pm

Ok, I have changed htaccess to read:

RewriteBase /F:/xampp/htdocs/GFC3031

and this returns Image

and nothing else...

New member

Posts

Joined
Sun Dec 30, 2018 7:26 pm

Post by paulfeakins » Mon Jan 23, 2023 7:27 pm

JNeuhoff wrote:
Sun Jan 22, 2023 10:31 pm
Try F:/xampp/htdocs/GFC3031/ for your RewriteBase.
Seriously Jeff? RewriteBase isn't going to be the full absolute Windows file path :crazy:

Perhaps try:

Code: Select all

RewriteBase /GFC3031/

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by JNeuhoff » Mon Jan 23, 2023 8:08 pm

Sorry, yes, you are right, the RewriteBase should be relative to the htdocs folder, not the whole absolute path.

Override Engine * Integrated VQMod * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Rich Snippets * Google Tag Manager * Export/Import Tool * SpamBot Buster * Survey Plus


User avatar
Guru Member
Online

Posts

Joined
Wed Dec 05, 2007 3:38 am

Who is online

Users browsing this forum: No registered users and 21 guests