Post by gartheman » Sat Apr 05, 2014 2:11 am

Hi,

I'm having trouble getting my store working as I want it. I'm using opencart 1.5.4.

My store is based in '/wwwroot/newsite/'

when I point to 'www.mydomain.com/newsite/', my homepage appears and I can navigate the site as normal. Admin is working too. So far, so good.

however, seeing as I want my users to be able to access the store via 'www.mydomain.com' (no '/newsite/'), I've used the cPanel to point 'www.mydomain.com' to /wwwroot/newsite/. after editing the config files to:

Code: Select all


//**store**

// HTTP
define('HTTP_SERVER', 'http://www.marshallsportsawards.com/');
define('HTTP_IMAGE', 'http://www.marshallsportsawards.com/image/');
define('HTTP_ADMIN', 'http://www.marshallsportsawards.com/admin/');

// HTTPS
define('HTTPS_SERVER', 'http://www.marshallsportsawards.com/');
define('HTTPS_IMAGE', 'http://www.marshallsportsawards.com/image/');
and

Code: Select all


//**admin**

// HTTP
define('HTTP_SERVER', 'http://www.marshallsportsawards.com/admin/');
define('HTTP_CATALOG', 'http://www.marshallsportsawards.com/');
define('HTTP_IMAGE', 'http://www.marshallsportsawards.com/image/');

// HTTPS
define('HTTPS_SERVER', 'http://www.marshallsportsawards.com/admin/');
define('HTTPS_CATALOG', 'http://www.marshallsportsawards.com/');
define('HTTPS_IMAGE', 'http://www.marshallsportsawards.com/image/');
after doing this, admin still works as normal, but the only the homepage of the store works, when I click any of the categories I get an error.

store is here: http://www.marshallsportswards.com

I also noticed that it doesn't seem to matter in .htaccess if I set 'RewriteBase /newsite/' or 'RewriteBase /', it makes no difference to my site. surely that can't be right??
Last edited by gartheman on Sun Apr 06, 2014 5:14 pm, edited 1 time in total.

New member

Posts

Joined
Tue Feb 16, 2010 5:12 pm

Post by BlueLotusStudio » Sat Apr 05, 2014 9:59 pm

It looks like you solved the problem? Everything displays on my end.

http://www.bluelotustreasures.com
oc v1.5.6.1 with vq_mod - clean install
Current extensions: currency drop down; usps fix; vqmodmanager; sliding shopping cart; multiple flat rate options; braintree payment gateway; ajax quick checkout; show voucher theme pictures


User avatar
Active Member

Posts

Joined
Fri Feb 28, 2014 8:15 am
Location - Maryland

Post by Ghanshyam » Sat Apr 05, 2014 10:52 pm

It seems your server is not responding,
I get Server not found error, when I click on your provided link.


----
Ghanshyam Bagul
Bytes System
http://www.bytessystem.com/

Attachments

Untitled-1.png

Screenshot - Untitled-1.png (133.33 KiB) Viewed 816 times


-----------------------------------------------
I may not be there yet, but I'm closer than I was yesterday.
Ghanshyam Bagul
Bytes System
http://www.bytessystem.com


User avatar
Newbie

Posts

Joined
Sat Apr 05, 2014 10:38 pm

Post by gartheman » Sun Apr 06, 2014 4:22 pm

no, I just pointed back to the old site while I get this figured out.

I ended up deleting all the opencart files from my server (after grabbing a local copy), deleting the old database, and doing a fresh install.

but now, when I try to bring up the store (http://www.marshallsportsawards.com/opencart/) I get this error (the same as the one from my original post). admin login screen does display, but when I log in I get the same error too!! both config files (/opencart/ and /opencart/admin/) are populated and install folder is deleted!

might be worth pointing out this is running on a windows server, but it was working in the past, so I don't think that's an issue)

I'm sure it's something simple (permissions maybe?), but I'm pulling my hair out trying to figure it out!

Attachments

error.JPG

error.JPG (11.96 KiB) Viewed 863 times


New member

Posts

Joined
Tue Feb 16, 2010 5:12 pm

Post by BlueLotusStudio » Sun Apr 06, 2014 8:29 pm

might be worth pointing out this is running on a windows server, but it was working in the past, so I don't think that's an issue)
It could be your windows server - unfortunately, I don't know anything about the issues that may occur using windows. There are several people on this forum who are extremely knowledgeable. Perhaps you could pm them.

http://www.bluelotustreasures.com
oc v1.5.6.1 with vq_mod - clean install
Current extensions: currency drop down; usps fix; vqmodmanager; sliding shopping cart; multiple flat rate options; braintree payment gateway; ajax quick checkout; show voucher theme pictures


User avatar
Active Member

Posts

Joined
Fri Feb 28, 2014 8:15 am
Location - Maryland

Post by gartheman » Mon Apr 07, 2014 3:24 am

thanks for the post.

tbh, I think I shot myself in the foot persisting with a windows server. am currently in touch with my hosting provider to see what needs to be done to get moved accross to a Linux server. once that's done it should be simple enough to move my local copy over the fresh install to get things back up and running.

i'll come back and let you know how I get on once the migration is completed

New member

Posts

Joined
Tue Feb 16, 2010 5:12 pm

Post by gartheman » Mon Apr 07, 2014 4:37 pm

Hi,

I've had an update from my hosting provider (the errors shown below). Permissions issue I guess? I've gone ahead and asked them to ensure that all folders are set to the equivalent of '755' and all files are set to '644':

PHP Warning: fopen(C:\CustomerData\webspaces\webspace_00129445\wwwroot\opencart/system/logs/error.txt) [function.fopen]: failed to open stream: Permission denied in C:\CustomerData\webspaces\webspace_00129445\wwwroot\opencart\system\library\log.php on line 12

PHP Warning: fwrite(): supplied argument is not a valid stream resource in C:\CustomerData\webspaces\webspace_00129445\wwwroot\opencart\system\library\log.php on line 14

PHP Warning: fclose(): supplied argument is not a valid stream resource in C:\CustomerData\webspaces\webspace_00129445\wwwroot\opencart\system\library\log.php on line 16

PHP Warning: fopen(C:\CustomerData\webspaces\webspace_00129445\wwwroot\opencart/system/logs/error.txt) [function.fopen]: failed to open stream: Permission denied in C:\CustomerData\webspaces\webspace_00129445\wwwroot\opencart\system\library\log.php on line 12
Last edited by gartheman on Mon Apr 07, 2014 8:29 pm, edited 1 time in total.

New member

Posts

Joined
Tue Feb 16, 2010 5:12 pm

Post by gartheman » Mon Apr 07, 2014 6:03 pm

ok. so my hosting provider says they can't set the permissions as requested, that I will have to do it through cPanel.

Since I can't batch do it through Filezilla, can anyone tell me (from the error shown above) which files and folders I should be looking at?

New member

Posts

Joined
Tue Feb 16, 2010 5:12 pm
Who is online

Users browsing this forum: No registered users and 11 guests