If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / Configure.php major problem

Configure.php major problem

Started by cardbean5 on 3 Sep 2011, 5:59 PM · Views: 1,572

Results 1 to 11 of 11
3 Sep 2011, 5:59 PM
#1
cardbean5 avatar

cardbean5

New Zenner

Join Date:
Jul 2011
Posts:
10
Plugin Contributions:
0

Configure.php major problem

Hello,

I really struggling at the moment and was wondering if anyone would be able to give me a bit of help or point me in the right direction. This is my first time designing my site using Zencart so I have been learning as I go. I have managed to figure out most issues by searcing posts etc. My I am now stumped. I have finally gone live with my site and moved the files for my template to the main Public_html directory I changed the configure.php files but I know I have done them wrong and cannot figure out how to do it right. So at the moment if you go to my site https://www.amagicalday.co.uk you see all the writing and no template or images etc. I am also unable to access my Admin site. Any help would be greatly appreciated, I am a bit frustrated and cannot think straight at the moment.

Here is what I have in my files:

This what I have in my includes/configure.php directory define('HTTP_SERVER', 'http://www.amagicalday.co.uk');
define('HTTPS_SERVER', 'https://www.amagicalday.co.uk');
define('DIR_FS_CATALOG', '/home/amagical/public_html/');
define('DIR_FS_SQL_CACHE', '/home/amagical/public_html/cache');

This is what I have in my admin/includes/configure.php define('HTTP_SERVER', 'http://www.amagicalday.co.uk');
define('HTTPS_SERVER', 'https://www.amagicalday.co.uk');
define('HTTP_CATALOG_SERVER', 'http://www.amagicalday.co.uk');
define('HTTPS_CATALOG_SERVER', 'https://www.amagicalday.co.uk');
define('DIR_WS_ADMIN', '/my_admin/');
define('DIR_WS_CATALOG', '/home/amagical/public_html/');
define('DIR_WS_HTTPS_ADMIN', '/my_admin/');
define('DIR_WS_HTTPS_CATALOG', '/home/amagical/public_html/');
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/');
define('DIR_FS_ADMIN', '/home/amagical/public_html/my_admin/');
define('DIR_FS_CATALOG', '/home/amagical/public_html/');
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('DIR_FS_SQL_CACHE', '/home/amagical/public_html/cache');

Thanks again in advance
Teka

3 Sep 2011, 6:22 PM
#2
stevesh avatar

stevesh

Black Belt

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

Re: Configure.php major problem

define('DIR_WS_ADMIN', '/my_admin/');
define('DIR_WS_CATALOG', '/home/amagical/public_html/');
define('DIR_WS_HTTPS_ADMIN', '/my_admin/');
defineCOLOR="red";[/COLOR]

These should be just '/' .

3 Sep 2011, 6:50 PM
#3
cardbean5 avatar

cardbean5

New Zenner

Join Date:
Jul 2011
Posts:
10
Plugin Contributions:
0

Re: Configure.php major problem

OMG!!! Thank you sooooo much that worked!!!! You have made my night!!:clap::clap::clap:

3 Sep 2011, 11:13 PM
#4
cardbean5 avatar

cardbean5

New Zenner

Join Date:
Jul 2011
Posts:
10
Plugin Contributions:
0

Re: Configure.php major problem

stevesh:

define('DIR_WS_ADMIN', '/my_admin/');
define('DIR_WS_CATALOG', '/home/amagical/public_html/');
define('DIR_WS_HTTPS_ADMIN', '/my_admin/');
defineCOLOR="red";[/COLOR]

These should be just '/' .

Cardbean5:

OMG!!! Thank you sooooo much that worked!!!! You have made my night!!:clap::clap::clap:

Oh dear! I think i celebrated a bit too early. :blush: I can't seem to get to my admin site. It is showing the "Thank you for loading Zen Cart"

Is there anything else I could have missed?

I also noticed this line is in the admin/includes/configure.php and not in the includes/configure.php. Should it be in both files?

define('DIR_FS_ADMIN', '/home/amagical/public_html/my_admin/');

Thanks again!

4 Sep 2011, 12:34 PM
#5
cardbean5 avatar

cardbean5

New Zenner

Join Date:
Jul 2011
Posts:
10
Plugin Contributions:
0

Re: Configure.php major problem

Hello,

I am unable to access my Admin site at the moment. I keep getting a 500 error. I just made the site live and changed config.php settings to redirect to new directory. I was able to access it, but wasn't able to access my site due to wrong config.php settings so I was told how to correct them. This worked and my site is up and running however now that I have checked the admin site I cannot access it anymore. I don't know what I could have done wrong.:frusty:

I have checked the debug log and this is what it says. I have no idea where to go from here as I am very new to this. I have tried searching but no luck as yet. If anyone can help I would be very greatful.

[04-Sep-2011 12:23:32] PHP Warning: require(/home/amagical/public_html/languages/english/meta_tags.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /home/amagical/public_html/my_admin/includes/languages/english.php on line 54
[04-Sep-2011 12:23:32] PHP Fatal error: require() [<a href='function.require'>function.require</a>]: Failed opening required '/home/amagical/public_html/languages/english/meta_tags.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/amagical/public_html/my_admin/includes/languages/english.php on line 54

This is what is on line 54 of /home/amagical/public_html/my_admin/includes/languages/english.php
require(DIR_FS_CATALOG_LANGUAGES . $_SESSION['language'] . '/' . $template_dir_select . 'meta_tags.php');

This is what I have in my config.php files if this helps any.

**INCLUDES/CONFIGURE.PHP**define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');

define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_INCLUDES', 'includes/');
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_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');

define('DIR_WS_PHPBB', '/');
define('DIR_FS_CATALOG', '/home/amagical/public_html/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/');
define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS);
define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');
define('DIR_FS_SQL_CACHE', '/home/amagical/public_html/cache');

MY_ADMIN/INCLUDES
define('DIR_WS_ADMIN', '/');
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_ADMIN', '/');
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/');
define('DIR_FS_ADMIN', '/home/amagical/public_html/my_admin/');
define('DIR_FS_CATALOG', '/home/amagical/public_html/');

define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'languages/');
define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'modules/');
define('DIR_FS_CATALOG_TEMPLATES', DIR_FS_CATALOG . '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('DIR_FS_SQL_CACHE', '/home/amagical/public_html/cache');

Teka

4 Sep 2011, 1:04 PM
#6
stevesh avatar

stevesh

Black Belt

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

Re: Configure.php major problem

No, that line doesn't appear in the store configure file.

Almost every time you see that install message, it means the path information is wrong. Maybe copy and paste the current contents of admin/includes/configure.php into a post again (changing the name of your new admin folder, as before) and we may be able to see something, like a forgotten single quote or something.

4 Sep 2011, 1:10 PM
#7
stevesh avatar

stevesh

Black Belt

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

Re: Configure.php major problem

I don't know about your current error, but when I advised in your other post about changing these to '/', I meant the ones in red:

define('DIR_WS_ADMIN', '/');
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_ADMIN', '/');
define('DIR_WS_HTTPS_CATALOG', '/');

The other two should be '/YOUR_ADMIN_FOLDER_NAME/'

Monochrome monitor ? :laugh:

4 Sep 2011, 1:25 PM
#8
cardbean5 avatar

cardbean5

New Zenner

Join Date:
Jul 2011
Posts:
10
Plugin Contributions:
0

Re: Configure.php major problem

stevesh:

I don't know about your current error, but when I advised in your other post about changing these to '/', I meant the ones in red:

define('DIR_WS_ADMIN', '/');
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_ADMIN', '/');
define('DIR_WS_HTTPS_CATALOG', '/');

The other two should be '/YOUR_ADMIN_FOLDER_NAME/'

Monochrome monitor ? :laugh:

:wacko: How sill am I that was my initial thought but then i second guessed myself and thought maybe you meant all 4 since you cpoied them all. :laugh:

I corrected that, but still getting the above 500 error.

4 Sep 2011, 2:04 PM
#9
cardbean5 avatar

cardbean5

New Zenner

Join Date:
Jul 2011
Posts:
10
Plugin Contributions:
0

Re: Configure.php major problem

stevesh:

No, that line doesn't appear in the store configure file.

Almost every time you see that install message, it means the path information is wrong. Maybe copy and paste the current contents of admin/includes/configure.php into a post again (changing the name of your new admin folder, as before) and we may be able to see something, like a forgotten single quote or something.

Thanks Stevesh!

Here is all the info...however as you may know I have a 500 error on the page now. I am so desperate at the moment I have my site up and running and cannot manage it at all. I have quite a few changes I needed to make as well. :frusty:

This is what my config.php files look like now:
INCLUDES/CONFIGURE.PHPdefine('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');

define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_INCLUDES', 'includes/');
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_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');

define('DIR_WS_PHPBB', '/');
define('DIR_FS_CATALOG', '/home/amagical/public_html/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/');
define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS);
define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');
define('DIR_FS_SQL_CACHE', '/home/amagical/public_html/cache');

MY_ADMIN/INCLUDES
define('DIR_WS_ADMIN', '/my_admin/');
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_ADMIN', '/my_admin/');
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/');
define('DIR_FS_ADMIN', '/home/amagical/public_html/my_admin/');
define('DIR_FS_CATALOG', '/home/amagical/public_html/');

define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'languages/');
define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'modules/');
define('DIR_FS_CATALOG_TEMPLATES', DIR_FS_CATALOG . '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('DIR_FS_SQL_CACHE', '/home/amagical/public_html/cache');

This is the debug code that I am getting and have no clue what to do with it.

[04-Sep-2011 12:23:32] PHP Warning: require(/home/amagical/public_html/languages/english/meta_tags.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /home/amagical/public_html/my_admin/includes/languages/english.php on line 54
[04-Sep-2011 12:23:32] PHP Fatal error: require() [<a href='function.require'>function.require</a>]: Failed opening required '/home/amagical/public_html/languages/english/meta_tags.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/amagical/public_html/my_admin/includes/languages/english.php on line 54

This is what is on line 54 of /home/amagical/public_html/my_admin/includes/languages/english.php
require(DIR_FS_CATALOG_LANGUAGES . $_SESSION['language'] . '/' . $template_dir_select . 'meta_tags.php');

I am very grateful for any help or direction.

4 Sep 2011, 3:30 PM
#10
Kim avatar

Kim

Obaa-san

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

Re: Configure.php major problem

Moderator's note - merged the 2 thread on the same subject together.

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.

4 Sep 2011, 9:17 PM
#11
cardbean5 avatar

cardbean5

New Zenner

Join Date:
Jul 2011
Posts:
10
Plugin Contributions:
0

Re: Configure.php major problem

All fixed!

I just got a copy of the backup config files and uploaded them to the directories and did the changes again and it works!