Help - Search - Members - Calendar
Full Version: Store goes Offline without setting it to Offline.
CubeCart Forums > CubeCart Version 3 > Installation & Upgrade Help (Version 3)
rhyan
I upgraded to the latest CC3 Alpha 2.

Now when I visit my store, it's offline.

In global.inc.php the store is set to online.
$config['offLine'] = '0';

And in General Settings of the admin, it's set to;
"Turn store off? No"

My url in General Settings is set to http://www.thebrasschest.com/cc3/
When I visited http://thebrasschest.com/cc3/ without www in front, it sent me to the offline message. I visited http://www.thebrasschest.com/cc3/ afterwords and it worked. Now it doesn't work with either URL.

All of the Directories & Folders settings are correct. Trailing slashes are where they need to be.

icon15.gif

EDIT: This is a problem in Firefox... it loads fine in IE.
whistling.gif

This post has been edited by rhyan on Apr 15 2005, 12:56 PM

EDIT 2: Same problem in both IE and Firefox. Appears to only occur when logged into Admin UI
PuG
As far as I can tell it appears to be a problem with Firefox browsers; as when I view my CC3 site in IE it works fine, though with Firefox it takes me to the offline page.

Cheers!
rhyan
You're right.. it does work in IE.
How odd.

blink.gif
marinist
Same problem here, my store is permanently offline even though 'turn store off' is set to 'no' in admin, I am trying to view using internet explorer, another install problem, my host 1&1 would not allow me to access my CubeCart folder whilst the .htaccess document was present, once this was removed I was straight in no problems.


I can view my store if 'Turn store off' is set to 'yes' and I enable the 'Allow administrators to view store off line? (Requires admin session)' function, as soon as previous settings are used store reverts back to offline,

(On the admin page the word administrators is missing the 'i' between the n and the s)
PuG
Just to add another turn to the plot, I came back this morning and tried it again with Firefox and its loaded fine! hmmm.
rhyan
QUOTE(PuG @ Apr 16 2005, 04:16 AM)
Just to add another turn to the plot, I came back this morning and tried it again with Firefox and its loaded fine! hmmm.

stuart.gif

mine works in firefox now as well...
this is really confusing
thinguy
I run into the same thing but it only seems to happen when I have another browser window open and logged into the admin UI.

Is this normal?
Ian MacMillan
Using the same package....get automatic off line in Firefox and IE.
jrussellcampbell@aol.com
I am experiencing the same problem with both IE & Firefox. When an admin window is open in either, the store is offline for that browser! on2long.gif

New:- If the admin session is terminated The problem Goes away, could be something to do with the option to view the store when offline, "requires admin session" as when this option is set to yes the problem seems to go away even though the store is still technically online, hope this helps wink.gif
xyncro
... wacko.gif

yes.. this happened to me too a minute ago... dry.gif

and as you said russellcampbell.. as soon as logged out from my admin the store comes back...

however.. if i log in to my admin part then again while logged in to admin the store will still be online but acting very strange...
it kind of flashes like a lightning... this can't be right... ermm.gif


and marinist...

QUOTE
I can view my store if 'Turn store off' is set to 'yes' and I enable the 'Allow administrators to view store off line


..in this case you will not be able to determine if the store is on or offline for the customer... blink.gif
Emediate
having exact same problem with www.adultplanet.com.au also. Makes it frustrating when trying to set up the store and template mods etc.
amciotola
Does anyone have a solution for this?

Thanks!
Annette
marinist
QUOTE(xyncro @ Apr 22 2005, 10:21 AM)
... wacko.gif

yes.. this happened to me too a minute ago... dry.gif

and as you said russellcampbell.. as soon as logged out from my admin the store comes back...

however.. if i log in to my admin part then again while logged in to admin the store will still be online but acting very strange...
it kind of flashes like a lightning... this can't be right... ermm.gif


and marinist...

QUOTE
I can view my store if 'Turn store off' is set to 'yes' and I enable the 'Allow administrators to view store off line


..in this case you will not be able to determine if the store is on or offline for the customer... blink.gif

Because of the settings in admin the store will be 'Offline' to customers, using these settings is at present the only way I can actually see what my store looks like! ohmy.gif
evilhomer
This is a problem in cc3 at the moment but is being looked at and will be fixed for final release.The quick fix is to set is so admin users can view site offline in general settings.

It shouldnt matter if customers can see your site or not at the moment as warned on release of alpha cc3 this is not recommened to be used on live store as its still being ironed out and is full of security risks
amciotola
Thanks Homer!

However if anyone would like to put a temporary fix in place you can do this.

Navigate to the session.inc.php file found in the main includes folder

Back up the file!

Find this code (it's right below the comments at the top)

QUOTE
if($config['offLine']==1 && !isset($_SESSION['ccAdmin']) || (isset($_SESSION['ccAdmin']) && $config['offLineAllowAdmin']==1) ) {
header("Location: offLine.php");
exit;
}


And removed it.

This will allow you to view the shop while making changes in the Admin Panel.

Warning: Do this at your own risk because removing this code will not allow you to turn your store off.

Annette
designer of http://www.moondragondesigns.com/shop
robgo777
I am sure there is someone here who can charge you to help fix this problem, but let me give it a try for FREE...



No No No, don't remove any coding. This is all very simple indeed.

Just go to your admin -> General Settings and scroll to the bottom until you find this:

Allow adminstrators to view store off line? (Requires admin session)

Simply change this to "Yes" and all your problems will go away, I promise.

I however can't vouch for firefox as I am only using IE.

Rob
S.G.
This topic should be stickied, IMO, I thought I did something wrong in the installation when the file redirected to OFFLINE page. It's a good thing I was able to find this thread, thanks for pointing this out! smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.