Zen Cart Logo
Forums / General Questions / Broken admin section after change of domains

Broken admin section after change of domains

Locked

Views: 1,404

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
24 Nov 2008, 9:56 PM
#1
craigavonite avatar

craigavonite

New Zenner

Join Date:
Apr 2008
Posts:
7
Plugin Contributions:
0

Broken admin section after change of domains

Hi guy's

Basically I have moved domain names, and have got everything changed properly in the two config files to point to the new domain. The home page of the cart and all the product pages display correctly, but the admin section gives me this error:

Warning: main(includes/auto_loaders/config.core.php) [function.main]: failed to open stream: No such file or directory in /content/DesignerPlus/m/a/marxdirect.com/web/admin/includes/initsystem.php on line 21

Warning: main(includes/auto_loaders/config.core.php) [function.main]: failed to open stream: No such file or directory in /content/DesignerPlus/m/a/marxdirect.com/web/admin/includes/initsystem.php on line 21

Warning: main(includes/auto_loaders/config.core.php) [function.main]: failed to open stream: No such file or directory in /content/DesignerPlus/m/a/marxdirect.com/web/admin/includes/initsystem.php on line 21

Warning: main() [function.include]: Failed opening 'includes/auto_loaders/config.core.php' for inclusion (include_path='.:/usr/local/lib/php') in /content/DesignerPlus/m/a/marxdirect.com/web/admin/includes/initsystem.php on line 21

Warning: dir(includes/auto_loaders) [function.dir]: failed to open dir: No such file or directory in /content/DesignerPlus/m/a/marxdirect.com/web/admin/includes/initsystem.php on line 22

Fatal error: Call to undefined function: zen_get_languages() in /content/DesignerPlus/m/a/marxdirect.com/web/admin/index.php on line 25

I found a post in the forums saying to check if the file "/includes/auto_loaders/config.core.php" was there - it is, but dosn't hold the same data as the one within the post I found, a few sections seem to be missing. My config.core.php is below:

<?php
/**
 * autoloader array for catalog application_top.php
 * see  {@link  http://www.zen-cart.com/wiki/index.php/Developers_API_Tutorials#InitSystem wikitutorials} for more details.
 *
 * @package initSystem
 * @copyright Copyright 2003-2006 Zen Cart Development Team
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: config.core.php 4271 2006-08-26 01:21:02Z drbyte $
 */
if (!defined('IS_ADMIN_FLAG')) {
 die('Illegal Access');
} 
/**
 * 
 * require(DIR_WS_CLASSES . 'class.base.php'); 
 * require(DIR_WS_CLASSES . 'class.notifier.php');
 * $zco_notifier = new notifier()'
 * require(DIR_WS_CLASSES . 'mime.php'); 
 * require(DIR_WS_CLASSES . 'email.php'); 
 * require(DIR_WS_CLASSES . 'boxes.php'); 
 * require(DIR_WS_CLASSES . 'category_tree.php'); 
 * require(DIR_WS_CLASSES . 'cache.php'); 
 * require(DIR_WS_CLASSES . 'sniffer.php'); 
 * require(DIR_WS_CLASSES . 'shopping_cart.php'); 
 * require(DIR_WS_CLASSES . 'navigation_history.php'); 
 * require(DIR_WS_CLASSES . 'currencies.php'); 
 * require(DIR_WS_CLASSES . 'message_stack.php'); 
 * require(DIR_WS_CLASSES . 'template_func.php'); 
 * require(DIR_WS_CLASSES . 'split_page_results.php'); 
 * require(DIR_WS_CLASSES . 'breadcrumb.php'); 
 * require(DIR_WS_CLASSES . 'language.php'); 
 * 
 */
  $autoLoadConfig[0][] = array('autoType'=>'class',
                                'loadFile'=>'class.base.php');
  $autoLoadConfig[0][] = array('autoType'=>'class',
                                'loadFile'=>'class.notifier.php');
  $autoLoadConfig[0][] = array('autoType'=>'classInstantiate',
                                'className'=>'notifier',
                                'objectName'=>'zco_notifier');
  $autoLoadConfig[0][] = array('autoType'=>'class',
                                'loadFile'=> 'class.phpmailer.php');
  $autoLoadConfig[0][] = array('autoType'=>'class',
                                'loadFile'=> 'class.smtp.php');
  $autoLoadConfig[0][] = array('autoType'=>'class',
                                'loadFile'=> 'boxes.php');
  $autoLoadConfig[0][] = array('autoType'=>'class',
                                'loadFile'=>'category_tree.php');
  $autoLoadConfig[0][] = array('autoType'=>'class',
                                'loadFile'=>'template_func.php');
  $autoLoadConfig[0][] = array('autoType'=>'class',
                                'loadFile'=>'split_page_results.php');
  $autoLoadConfig[0][] = array('autoType'=>'class',
                                'loadFile'=>'language.php');
  $autoLoadConfig[0][] = array('autoType'=>'class',
                                'loadFile'=>'cache.php');
  $autoLoadConfig[0][] = array('autoType'=>'class',
                                'loadFile'=>'sniffer.php');
  $autoLoadConfig[0][] = array('autoType'=>'class',
                                'loadFile'=>'class.phpbb.php');
  $autoLoadConfig[0][] = array('autoType'=>'class',
                                'loadFile'=>'shopping_cart.php');
  $autoLoadConfig[0][] = array('autoType'=>'class',
                                'loadFile'=>'navigation_history.php');
  $autoLoadConfig[0][] = array('autoType'=>'class',
                                'loadFile'=>'currencies.php');
  $autoLoadConfig[0][] = array('autoType'=>'class',
                                'loadFile'=>'message_stack.php');
  $autoLoadConfig[0][] = array('autoType'=>'class',
                                'loadFile'=>'breadcrumb.php');
/**
 * Breakpoint 10.
 * 
 * require('includes/init_includes/init_database.php');
 * require('includes/version.php');
 * 
 */
  $autoLoadConfig[10][] = array('autoType'=>'init_script',
                                'loadFile'=> 'init_file_db_names.php');
  $autoLoadConfig[10][] = array('autoType'=>'init_script',
                                'loadFile'=>'init_database.php');
/**
 * Breakpoint 20.
 * 
 * require('includes/init_includes/init_file_db_names.php');
 * 
 */
  $autoLoadConfig[20][] = array('autoType'=>'include',
                                'loadFile'=> DIR_WS_INCLUDES . 'version.php');
/**
 * Breakpoint 30.
 * 
 * $zc_cache = new cache(); 
 * 
 */
  $autoLoadConfig[30][] = array('autoType'=>'classInstantiate',
                                'className'=>'cache',
                                'objectName'=>'zc_cache');
/**
 * Breakpoint 40.
 * 
 * require('includes/init_includes/init_db_config_read.php');
 * 
 */
  $autoLoadConfig[40][] = array('autoType'=>'init_script',
                                'loadFile'=> 'init_db_config_read.php');
/**
 * Breakpoint 50.
 * 
 * $sniffer = new sniffer();
 * require('includes/init_includes/init_gzip.php'); 
 * require('includes/init_includes/init_sefu.php'); 
 * $phpBB = new phpBB();
 */
  $autoLoadConfig[50][] = array('autoType'=>'classInstantiate',
                                'className'=>'sniffer',
                                'objectName'=>'sniffer');
  $autoLoadConfig[50][] = array('autoType'=>'init_script',
                                'loadFile'=> 'init_gzip.php');
  $autoLoadConfig[50][] = array('autoType'=>'init_script',
                                'loadFile'=> 'init_sefu.php');
  $autoLoadConfig[50][] = array('autoType'=>'classInstantiate',
                                'className'=>'phpBB',
                                'objectName'=>'phpBB');
/**
 * Breakpoint 60.
 * 
 * require('includes/init_includes/init_general_funcs.php'); 
 * require('includes/init_includes/init_tlds.php'); 
 * 
 */
  $autoLoadConfig[60][] = array('autoType'=>'init_script',
                                'loadFile'=> 'init_general_funcs.php');
  $autoLoadConfig[60][] = array('autoType'=>'init_script',
                                'loadFile'=> 'init_tlds.php');
/**
 * Breakpoint 70.
 * 
 * require('includes/init_includes/init_sessions.php'); 
 * 
 */
  $autoLoadConfig[70][] = array('autoType'=>'init_script',
                                'loadFile'=> 'init_sessions.php');
/**
 * Breakpoint 80.
 * 
 * if(!$_SESSION['cart']) $_SESSION['cart'] = new shoppingCart();
 * if(!$_SESSION['navigaton']) $_SESSION['navigation'] = new navigaionHistory();
 * 
 */
  $autoLoadConfig[80][] = array('autoType'=>'classInstantiate',
                                'className'=>'shoppingCart',
                                'objectName'=>'cart',
                                'checkInstantiated'=>true,
                                'classSession'=>true);
  $autoLoadConfig[80][] = array('autoType'=>'classInstantiate',
                                'className'=>'navigationHistory',
                                'objectName'=>'navigation',
                                'checkInstantiated'=>true,
                                'classSession'=>true);
/**
 * Breakpoint 90.
 * 
 * currencies = new currencies();
 * 
 */
  $autoLoadConfig[90][] = array('autoType'=>'classInstantiate',
                                'className'=>'currencies',
                                'objectName'=>'currencies');
/**
 * Breakpoint 100.
 * 
 * require('includes/init_includes/init_sanitize.php'); 
 * $template = new template_func();
 * 
 */
  $autoLoadConfig[100][] = array('autoType'=>'classInstantiate',
                                 'className'=>'template_func',
                                 'objectName'=>'template');
  $autoLoadConfig[100][] = array('autoType'=>'init_script',
                                 'loadFile'=> 'init_sanitize.php');
/**
 * Breakpoint 110.
 * 
 * require('includes/init_includes/init_languages.php'); 
 * require('includes/init_includes/init_templates.php'); 
 * 
 */
  $autoLoadConfig[110][] = array('autoType'=>'init_script',
                                 'loadFile'=> 'init_languages.php');
  $autoLoadConfig[110][] = array('autoType'=>'init_script',
                                 'loadFile'=> 'init_templates.php');
/**
 * Breakpoint 120.
 * 
 * $_SESSION['navigation']->add_current_page();
 * require('includes/init_includes/init_currencies.php'); 
 * 
 */
  $autoLoadConfig[120][] = array('autoType'=>'objectMethod',
                                'objectName'=>'navigation',
                                'methodName' => 'add_current_page');
  $autoLoadConfig[120][] = array('autoType'=>'init_script',
                                 'loadFile'=> 'init_currencies.php');
/**
 * Breakpoint 130.
 * 
 * require('includes/init_includes/init_customer_auth.php'); 
 * messageStack = new messageStack();
 * 
 */
  $autoLoadConfig[130][] = array('autoType'=>'classInstantiate',
                                 'className'=>'messageStack',
                                 'objectName'=>'messageStack');
  $autoLoadConfig[130][] = array('autoType'=>'init_script',
                                 'loadFile'=> 'init_customer_auth.php');
/**
 * Breakpoint 140.
 * 
 * require('includes/init_includes/init_cart_handler.php'); 
 * 
 */
  $autoLoadConfig[140][] = array('autoType'=>'init_script',
                                 'loadFile'=> 'init_cart_handler.php');
/**
 * Breakpoint 150.
 * 
 * require('includes/init_includes/init_special_funcs.php'); 
 * 
 */
  $autoLoadConfig[150][] = array('autoType'=>'init_script',
                                 'loadFile'=> 'init_special_funcs.php');
/**
 * Breakpoint 160.
 * 
 * require('includes/init_includes/init_category_path.php'); 
 * $breadcrumb = new breadcrumb();
 */
  $autoLoadConfig[160][] = array('autoType'=>'classInstantiate',
                                 'className'=>'breadcrumb',
                                 'objectName'=>'breadcrumb');
  $autoLoadConfig[160][] = array('autoType'=>'init_script',
                                 'loadFile'=> 'init_category_path.php');
/**
 * Breakpoint 170.
 * 
 * require('includes/init_includes/init_add_crumbs.php'); 
 * 
 */
  $autoLoadConfig[170][] = array('autoType'=>'init_script',
                                 'loadFile'=> 'init_add_crumbs.php');
/**
 * Breakpoint 180.
 * 
 * require('includes/init_includes/init_header.php'); 
 * 
 */
  $autoLoadConfig[180][] = array('autoType'=>'init_script',
                                 'loadFile'=> 'init_header.php');
?>

Is there any way to fix this or is borked and I'll just have to do a clean install?

Thanks

24 Nov 2008, 10:40 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Broken admin section after change of domains

If it's your admin side that's complaining about missing its includes/auto_loaders/.... files then you need to check in your /admin/includes/auto_loaders folder. If the error is occurring on your admin side, then it's most likely referring to files in your /admin/ folder structure.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

24 Nov 2008, 10:45 PM
#3
craigavonite avatar

craigavonite

New Zenner

Join Date:
Apr 2008
Posts:
7
Plugin Contributions:
0

Re: Broken admin section after change of domains

DrByte:

If it's your admin side that's complaining about missing its includes/auto_loaders/.... files then you need to check in your /admin/includes/auto_loaders folder. If the error is occurring on your admin side, then it's most likely referring to files in your /admin/ folder structure.

Oh ok, well there is no auto_loaders folder within the admin section at all, nor is there a config.core.php

24 Nov 2008, 10:52 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Broken admin section after change of domains

craigavonite:

Oh ok, well there is no auto_loaders folder within the admin section at all, nor is there a config.core.php

/admin/includes/auto_loaders/ should contain 2 files, and a folder.

If yours doesn't, then ... you'll have to get them from one of your working backups.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

25 Nov 2008, 2:13 PM
#5
craigavonite avatar

craigavonite

New Zenner

Join Date:
Apr 2008
Posts:
7
Plugin Contributions:
0

Re: Broken admin section after change of domains

DrByte:

/admin/includes/auto_loaders/ should contain 2 files, and a folder.

If yours doesn't, then ... you'll have to get them from one of your working backups.

OK I copied over the auto_loaders into the admin section from a backup, but now it's throwing me this error:

Fatal error: Cannot instantiate non-existent class: messagestack in /content/DesignerPlus/m/a/marxdirect.com/web/includes/autoload_func.php on line 79

The files /includes/autoload_func.php is there, contents are below:
*** file contents removed by moderator ***
Any idea's?

25 Nov 2008, 3:25 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Broken admin section after change of domains

It's telling you that the "messageStack" class didn't load ... probably because the files for it are missing. The problem is not with the autoload script itself.

Rather than doing this all piecemeal back and forth one file at a time, I'm going to recommend that you re-upload the files to your site. It seems that however you transferred files the first time wasn't successful or reliable.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

25 Nov 2008, 3:55 PM
#7
craigavonite avatar

craigavonite

New Zenner

Join Date:
Apr 2008
Posts:
7
Plugin Contributions:
0

Re: Broken admin section after change of domains

Well your advice worked, thanks so much.

Not sure why it didn't work first time, I was transferring all the files at once, but no errors during transfer, this time I transferred them in blocks of 10 and it seems to have worked.

Thanks again!