admin not working

Views: 2,774

Results 1 to 14 of 14
17 Sep 2011, 9:35 AM
#1
wotnow avatar

wotnow

Zen Follower

Join Date:
Jan 2010
Location:
Broome
Posts:
331
Plugin Contributions:
0

admin not working

Hi I am pulling my hair out here! I have done a fresh install of the latest zen cart and have been over the config files, permissions trying to find out what is going on. I can see the front end and the back end but when click on any of the menus in admin I get a 404 error not found.

Site is https://www.fusionherbsorganics.com.au/

The files are located in the https docs as I am waiting to get the SSL certificate on Monday. The config file in admin>includes is set to:

define('ENABLE_SSL_CATALOG', 'true');
define('ENABLE_SSL_ADMIN', 'true');

I paid $15USD to a company to help me out this morning but now they are off line and I didn't realise that the admin was not working.

If anyone could help me out here, I would be eternally grateful, thanks!

Amanda McInerney
Kimberley Web Design

http://www.kimberleywebdesign.com.au/

17 Sep 2011, 10:30 AM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: admin not working

What happens if you set those to 'false' ?

17 Sep 2011, 10:45 AM
#3
wotnow avatar

wotnow

Zen Follower

Join Date:
Jan 2010
Location:
Broome
Posts:
331
Plugin Contributions:
0

Re: admin not working

Exactly the same scenario I have the front end page with the congratulations you have successfully .. and the backend/admin page loads but when I try to access anything in it .. it defaults to the http doc folder and the alt_nav.php file.

Thanks so much for looking at this for me.

Amanda McInerney
Kimberley Web Design

http://www.kimberleywebdesign.com.au/

17 Sep 2011, 12:59 PM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: admin not working

Post the contents of admin/includes/configure.php after X'ing out the db name and login info.

Also, when I try to go to your store (not admin) with http (not https) I get a 403 Forbidden error.

17 Sep 2011, 1:10 PM
#5
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: admin not working

Also, as DrByte said in a different thread:

If your server requires using htdocs_secure in order to serve SSL content, you're going to have numerous headaches.

Until you find a server that is configured in a more contemporary way such that it serves SSL from the same folder as non-SSL content, you're best advised to set ENABLE_SSL to false.

Or you can use a way more complicated setup of duplicating all your files constantly. You do NOT want that mess when the better way is to configure the hosting server properly. https://www.zen-cart.com/tutorials/index.php?article=14

17 Sep 2011, 1:16 PM
#6
wotnow avatar

wotnow

Zen Follower

Join Date:
Jan 2010
Location:
Broome
Posts:
331
Plugin Contributions:
0

Re: admin not working

Hi Steve, u r not gonna believe this but company I wrote away to this morning has just replied to me and is looking at the problem as well. I have been waiting all day and reading so much stuff now I have both your attentions. Typical! I have set the SSL back to true but I did try false.

define('HTTP_SERVER', 'http://www.fusionherbsorganics.com.au');
define('HTTPS_SERVER', 'https://www.fusionherbsorganics.com.au');
define('HTTP_CATALOG_SERVER', 'http://www.fusionherbsorganics.com.au');
define('HTTPS_CATALOG_SERVER', 'https://www.fusionherbsorganics.com.au');

// Use secure webserver for catalog module and/or admin areas?
define('ENABLE_SSL_CATALOG', 'true');
define('ENABLE_SSL_ADMIN', 'true');

// NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
// * DIR_WS_* = Webserver directories (virtual/URL)
// these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
define('DIR_WS_ADMIN', '/xxxxxxx/');
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_ADMIN', '/xxxxxxx/');
define('DIR_WS_HTTPS_CATALOG', '/');

define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
define('DIR_WS_CATALOG_IMAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'images/');
define('DIR_WS_CATALOG_TEMPLATE', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/templates/');
define('DIR_WS_INCLUDES', 'includes/');
define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
define('DIR_WS_CATALOG_LANGUAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/languages/');

// * DIR_FS_* = Filesystem directories (local/physical)
//the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
define('DIR_FS_ADMIN', '/usr/local/pem/vhosts/109668/webspace/httpsdocs/xxxxxxx/');
define('DIR_FS_CATALOG', '/usr/local/pem/vhosts/109668/webspace/httpsdocs/');

define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
define('DIR_FS_CATALOG_TEMPLATES', DIR_FS_CATALOG . 'includes/templates/');
define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

// define our database connection
define('DB_TYPE', 'mysql');
define('DB_PREFIX', 'xxxx');
define('DB_SERVER', 'xxxx');
define('DB_SERVER_USERNAME', 'xxxxx');
define('DB_SERVER_PASSWORD', 'xxxx;');
define('DB_DATABASE', 'xxxx');
define('USE_PCONNECT', 'false');
define('STORE_SESSIONS', 'db');
// for STORE_SESSIONS, use 'db' for best support, or '' for file-based storage

// The next 2 "defines" are for SQL cache support.
// For SQL_CACHE_METHOD, you can select from: none, database, or file
// If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache
// or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
// ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash
define('SQL_CACHE_METHOD', 'none');
define('DIR_FS_SQL_CACHE', '/usr/local/pem/vhosts/109668/webspace/httpsdocs/cache');

// EOF

Amanda McInerney
Kimberley Web Design

http://www.kimberleywebdesign.com.au/

17 Sep 2011, 1:57 PM
#7
wotnow avatar

wotnow

Zen Follower

Join Date:
Jan 2010
Location:
Broome
Posts:
331
Plugin Contributions:
0

Re: admin not working

Ok problem solved at last.

The problem was the files were uploaded to Https docs and these lines of code in the admin>includes>config.php were pointing to http not https.

define('HTTP_SERVER', 'https://www.fusionherbsorganics.com.au');
define('HTTPS_SERVER', 'https://www.fusionherbsorganics.com.au');
define('HTTP_CATALOG_SERVER', 'https://www.fusionherbsorganics.com.au');
define('HTTPS_CATALOG_SERVER', 'https://www.fusionherbsorganics.com.au');

Hope this saves some-one else from ripping their hair out lol

Amanda McInerney
Kimberley Web Design

http://www.kimberleywebdesign.com.au/

17 Sep 2011, 11:32 PM
#8
wotnow avatar

wotnow

Zen Follower

Join Date:
Jan 2010
Location:
Broome
Posts:
331
Plugin Contributions:
0

Re: admin not working

Hi I am not sure why you have said the following:

If your server requires using htdocs_secure in order to serve SSL content, you're going to have numerous headaches.

As stated previously SSL certificate arrives Monday (tomorrow) but I wanted to get a start on developing the site this weekend. I was under the impression that if you are going to use an SSL certificate you upload the file structure to https docs?

Also I was under the impression that you could enable the SSL certificate later in the development process?

Hosting company and SSL provider are awesome. Never a problem with them. Problem is with my misunderstanding?

Should I have uploaded file structure to http docs? Thanks for your patience.

Amanda McInerney
Kimberley Web Design

http://www.kimberleywebdesign.com.au/

18 Sep 2011, 2:26 PM
#9
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: admin not working

Depends on your host. Most modern hosts don't require an additional set of files for the secured pages. They somehow use the existing files (I'm not good with the server stuff). If your host still requires you to have two sets of files to use SSL, I would ask them why, and probably find another host.

https://www.zen-cart.com/tutorials/index.php?article=14

18 Sep 2011, 3:03 PM
#10
wotnow avatar

wotnow

Zen Follower

Join Date:
Jan 2010
Location:
Broome
Posts:
331
Plugin Contributions:
0

Re: admin not working

I still don't understand where > an additional set of files for the secured pages

I dont have an additional set of files. I only have one set in https docs.
Am I missing something?

Amanda McInerney
Kimberley Web Design

http://www.kimberleywebdesign.com.au/

18 Sep 2011, 3:53 PM
#11
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,684
Plugin Contributions:
0

Re: admin not working

If I understood you correctly and your SSL cert doesn't arrive until Monday - trying to set things up without it will break things.

Zen Cart code is smart - it knows what pages need to be SSL and when to switch, but you have to have the parts and pieces in the right places and in the right order. By setting both defines to your https address and having the Zen Cart files in the HTTPS_DOCS directory on your server - you will have both the Store and the Admin working only in SSL mode.

Do you want your Zen Cart to operate normally (switching when needed) or do you want everything under SSL?

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

19 Sep 2011, 6:41 AM
#12
wotnow avatar

wotnow

Zen Follower

Join Date:
Jan 2010
Location:
Broome
Posts:
331
Plugin Contributions:
0

Re: admin not working

Ok ... now I finally get it .. better late than never.

  1. File structure should have been uploaded to http docs not https docs
  2. Development should not have been started until SSL certificate was in place.

Are you talking about symbolic links from my server?

I think I have it all sorted now. SSL certificate is activated. Thanks for all your help.

Amanda McInerney
Kimberley Web Design

http://www.kimberleywebdesign.com.au/

19 Sep 2011, 2:49 PM
#13
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,684
Plugin Contributions:
0

Re: admin not working

Are you talking about symbolic links from my server?

Yes, you need a symlink for the SSL and NonSSL pages to switch back and forth properly.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

19 Sep 2011, 3:22 PM
#14
wotnow avatar

wotnow

Zen Follower

Join Date:
Jan 2010
Location:
Broome
Posts:
331
Plugin Contributions:
0

Re: admin not working

Thanks engineers from hosting company put this in place today. Thanks for all your help:clap:

Amanda McInerney
Kimberley Web Design

http://www.kimberleywebdesign.com.au/