Zen Cart Logo
Forums / Installing on a Linux/Unix Server / Migrated database and files... having trouble

Migrated database and files... having trouble

Locked

Views: 6,174

Results 1 to 20 of 33
This thread is locked. New replies are disabled.
21 May 2008, 2:08 AM
#1
hunterw avatar

hunterw

New Zenner

Join Date:
Feb 2007
Posts:
6
Plugin Contributions:
0

Migrated database and files... having trouble

I consolidated my domains onto one hosting plan instead of having them on two separate ones, and am running into some issues.

I recreated the database and imported everything, and via the admin control panel it appears all of the information came across fine. However when loading the site I got the error:

Fatal error: Class 'phpBB' not found in /home/.machine/user/site.com/store/includes/autoload_func.php on line 79

Some googling around got me to another thread that mentioned it could have been due to the renaming of class.phpBB.php, so I tried renaming that but then I'm met with the error...

Fatal error: Cannot redeclare class phpBB in /home/.machine/user/site.com/store/includes/classes/class.phpbb.php on line 502

I'm at a complete loss at this point, really. I don't even use the phpBB linking stuff, and I turned all that off in the install config.

I'm using a 1.3.7 install that was functional prior to the migration, and while I'd like to upgrade I don't think it's probably the best idea to do so until it's working like it used to... correct?

Thanks much!

21 May 2008, 3:25 AM
#2
drbyte avatar

drbyte

Sensei

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

Re: Migrated database and files... having trouble

How many class.phpbb.php files do you have (regardless of upper/lower case)?
You want only one, preferably all in lowercase.

To find others, you could do a search via your admin for "class phpBB" in all catalog files.

Additionally, how did you move the files from one account to the other?

Also, are there any steps in this FAQ which you may have missed? https://www.zen-cart.com/tutorials/index.php?article=100

21 May 2008, 3:50 AM
#3
hunterw avatar

hunterw

New Zenner

Join Date:
Feb 2007
Posts:
6
Plugin Contributions:
0

Re: Migrated database and files... having trouble

You know, I had not found that FAQ prior. Let me do a do-over step by step thing and we'll see if this persists.

Thanks!

21 May 2008, 4:19 AM
#4
hunterw avatar

hunterw

New Zenner

Join Date:
Feb 2007
Posts:
6
Plugin Contributions:
0

Re: Migrated database and files... having trouble

Worked perfectly -- at least, until I break something again!

Thanks much, my apologies for missing that in my initial search.

6 Jul 2008, 5:13 PM
#5
kay6284 avatar

kay6284

New Zenner

Join Date:
Aug 2006
Posts:
37
Plugin Contributions:
0

Re: Migrated database and files... having trouble

I have this same error, "Fatal error: Class 'phpBB' not found in /data///**//user//htdocs/doubledstoreonline/includes/autoload_func.php on line 79", unfortunately I have just read this thread and followed it step by step and still have the same error. Help please. This was a migration (Copy) from an existing server that functions correctly. Again, Help please, I would greatly appreciate it.
And while I have it in mind, does the phpBB files used even if you are not useing a Bulletin Board?

6 Jul 2008, 7:16 PM
#6
drbyte avatar

drbyte

Sensei

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

Re: Migrated database and files... having trouble

Please list all the files found in the /includes/classes folder of your new server. (not from your PC or from the old server. What's ON the new server?)
File sizes will be helpful too.

7 Jul 2008, 1:56 AM
#7
kay6284 avatar

kay6284

New Zenner

Join Date:
Aug 2006
Posts:
37
Plugin Contributions:
0

Re: Migrated database and files... having trouble

File name- bytes
boxes.php- 8754
breadcrumb.php- 2390
cache.php- 5492
category_tree.php- 8309
cc_validation.php- 7526
class.base.php- 2155
class.notifier.php- 610
class.phpbb.php- 13204
class.phpmailer.php- 40429
class.smtp.php- 29692
currencies.php- 4059
http_client.php- 12093
language.php- 4667
message_stack.php- 3758
navigation_history.php- 4752
order.php- 61657
order_total.php- 9156
payment.php- 9632
products.php- 3572
shipping.php- 5687
shoppinig_cart.php- 82915
site_map.php- 3168
sniffer.php- 1488
split_page_results- 6421
template_func.php- 2304
upload.php- 7555

7 Jul 2008, 2:09 AM
#8
drbyte avatar

drbyte

Sensei

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

Re: Migrated database and files... having trouble

Hmmm ...

What version of Zen Cart?
What addons/contributions are installed?
Is this on a Linux/Unix server, or a Windows server?
What version of PHP?
Why are you changing servers?
What did you use to transfer the files?

7 Jul 2008, 10:59 AM
#9
kay6284 avatar

kay6284

New Zenner

Join Date:
Aug 2006
Posts:
37
Plugin Contributions:
0

Re: Migrated database and files... having trouble

By the way, I can login to the admin just fine.

Zen Cart 1.3.7
Database Patch Level: 1.3.7
v1.3.7 [2007-06-22 19:08:15] (Fresh Installation)

Server Host: vux45 ()
Server OS: Linux 2.6.22.10-NETSOL Database: MySQL 5.0.45
Server Date: 07/07/2008 06:45:51 Database Date: 07/07/2008 06:45:51
PHP Version: 5.2.6 (Zend: 2.2.0)
HTTP Server: Apache/2.2.8 (Unix) FrontPage/5.0.2.2635

I have made very little changes, logos, positions etc that are still functional on old site, you can view the site here http://act-iv.com/doubledstoreonline

I am changing servers due to hosting packages/preferences.

I use FileZilla for file tranfers, Crimson for editing, Dreamweaver for testing/editing.

7 Jul 2008, 11:31 AM
#10
drbyte avatar

drbyte

Sensei

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

Re: Migrated database and files... having trouble

kay6284:

Server OS: Linux 2.6.22.10-NETSOL
Does "NETSOL" there mean "network solutions"? Or something else?
What hosting company are you changing to?

7 Jul 2008, 11:41 AM
#11
kay6284 avatar

kay6284

New Zenner

Join Date:
Aug 2006
Posts:
37
Plugin Contributions:
0

Re: Migrated database and files... having trouble

Sorry, Network Solutions.
I have transfered to them from TCH (Total Choice Hosting)

7 Jul 2008, 12:00 PM
#12
drbyte avatar

drbyte

Sensei

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

Re: Migrated database and files... having trouble

Network Solutions has a reputation of not being able to do SSL with Zen Cart sites. Hopefully you won't need that.

You can find more information by searching for them on the forum.

7 Jul 2008, 12:02 PM
#13
drbyte avatar

drbyte

Sensei

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

Re: Migrated database and files... having trouble

As for the cause of your error message, I'm inclined to believe one or more files has failed to upload properly somewhere. That's the most common cause of the errors you've mentioned.

You could try debugging by changing the following line near the top of /includes/application_top.php to true instead of false:```
define('DEBUG_AUTOLOAD', false);

7 Jul 2008, 9:33 PM
#14
kay6284 avatar

kay6284

New Zenner

Join Date:
Aug 2006
Posts:
37
Plugin Contributions:
0

Re: Migrated database and files... having trouble

Here is the list,
actionPoint=>0 include('/data/16/1/0/76/1489076/user/1601385/htdocs/Shop/includes/classes/class.base.php');
actionPoint=>0 include('/data/16/1/0/76/1489076/user/1601385/htdocs/Shop/includes/classes/class.notifier.php');
actionPoint=>0 $zco_notifier = new notifier();
actionPoint=>0 include('/data/16/1/0/76/1489076/user/1601385/htdocs/Shop/includes/classes/class.phpmailer.php');
actionPoint=>0 include('/data/16/1/0/76/1489076/user/1601385/htdocs/Shop/includes/classes/class.smtp.php');
actionPoint=>0 include('/data/16/1/0/76/1489076/user/1601385/htdocs/Shop/includes/classes/boxes.php');
actionPoint=>0 include('/data/16/1/0/76/1489076/user/1601385/htdocs/Shop/includes/classes/category_tree.php');
actionPoint=>0 include('/data/16/1/0/76/1489076/user/1601385/htdocs/Shop/includes/classes/template_func.php');
actionPoint=>0 include('/data/16/1/0/76/1489076/user/1601385/htdocs/Shop/includes/classes/split_page_results.php');
actionPoint=>0 include('/data/16/1/0/76/1489076/user/1601385/htdocs/Shop/includes/classes/language.php');
actionPoint=>0 include('/data/16/1/0/76/1489076/user/1601385/htdocs/Shop/includes/classes/cache.php');
actionPoint=>0 include('/data/16/1/0/76/1489076/user/1601385/htdocs/Shop/includes/classes/sniffer.php');
actionPoint=>0 include('/data/16/1/0/76/1489076/user/1601385/htdocs/Shop/includes/classes/class.phpbb.php');
actionPoint=>0 include('/data/16/1/0/76/1489076/user/1601385/htdocs/Shop/includes/classes/shopping_cart.php');
actionPoint=>0 include('/data/16/1/0/76/1489076/user/1601385/htdocs/Shop/includes/classes/navigation_history.php');
actionPoint=>0 include('/data/16/1/0/76/1489076/user/1601385/htdocs/Shop/includes/classes/currencies.php');
actionPoint=>0 include('/data/16/1/0/76/1489076/user/1601385/htdocs/Shop/includes/classes/message_stack.php');
actionPoint=>0 include('/data/16/1/0/76/1489076/user/1601385/htdocs/Shop/includes/classes/breadcrumb.php');
actionPoint=>10 include('includes/init_includes/init_file_db_names.php');
actionPoint=>10 include('includes/init_includes/init_database.php');
actionPoint=>20 include('includes/version.php');
actionPoint=>30 $zc_cache = new cache();
actionPoint=>40 include('includes/init_includes/init_db_config_read.php');
actionPoint=>50 $sniffer = new sniffer();
actionPoint=>50 include('includes/init_includes/init_gzip.php');

Fatal error: Class 'phpBB' not found in /data/16/1/0/76/1489076/user/1601385/htdocs/doubledstoreonline/includes/autoload_func.php on line 79

8 Jul 2008, 5:24 AM
#15
drbyte avatar

drbyte

Sensei

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

Re: Migrated database and files... having trouble

What are the first 20 lines of /includes/classes/class.phpbb.php ?

8 Jul 2008, 10:43 AM
#16
kay6284 avatar

kay6284

New Zenner

Join Date:
Aug 2006
Posts:
37
Plugin Contributions:
0

Re: Migrated database and files... having trouble

  • phpBB Class.
  • This class is used to interact with phpBB forum
  • @package classes
  • @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: class.phpbb.php 4824 2006-10-23 21:01:28Z drbyte $
    */

if (!defined('IS_ADMIN_FLAG')) {
die('Illegal Access');
}

class phpBB extends base {
var $debug = false;
var $db_phpbb;
var $phpBB=array();
var $dir_phpbb='';

function phpBB() {
  $this->debug= (defined('PHPBB_DEBUG_MODE') && strtoupper(PHPBB_DEBUG_MODE)=='ON') ? (defined('PHPBB_DEBUG_IP') && (PHPBB_DEBUG_IP == '' || PHPBB_DEBUG_IP == $_SERVER['REMOTE_ADDR'] || strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])) ? true : false ) : false;
  $this->phpBB = Array();
  $this->phpBB['installed']=false;
  if (PHPBB_LINKS_ENABLED =='true') {  // if disabled in Zen Cart admin, don't do any checks for phpBB
    $this->get_phpBB_info();

// global $db;
// $this->db_phpbb = $db;

    $this->db_phpbb = new queryFactory();
    $connect_status = $this->db_phpbb->connect($this->phpBB['dbhost'], $this->phpBB['dbuser'], $this->phpBB['dbpasswd'], $this->phpBB['dbname'], USE_PCONNECT, false);

    $this->check_connect();
    $this->set_status();
  } elseif ($this->debug==true) {
    echo "phpBB connection disabled in Admin<br>";
  }
8 Jul 2008, 10:59 AM
#17
drbyte avatar

drbyte

Sensei

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

Re: Migrated database and files... having trouble

Most bizarre.

The file is loaded.
It contains the right code, including the correct class name.
But when the system attempts to instantiate the correctly-named class, it says it's not found.

What version of PHP?
What operating system?

What are the file-permissions on the /includes/classes/class.phpbb.php file?

8 Jul 2008, 11:35 AM
#18
kay6284 avatar

kay6284

New Zenner

Join Date:
Aug 2006
Posts:
37
Plugin Contributions:
0

Re: Migrated database and files... having trouble

Server OS: Linux 2.6.22.10-NETSOL Database: MySQL 5.0.45
Server Date: 07/08/2008 07:28:16 Database Date: 07/08/2008 07:28:16
Server Up Time: 07:28:16 up 41 days, 17:01, 0 users, load average: 1.34, 0.86, 0.82
PHP Version: 5.2.6 (Zend: 2.2.0)

The permissions for class.phbb.php are rwxrwxrwx

I use a Win2K pro box as well as a Win XP pro box, I will stick with the 2K pro box for this.

8 Jul 2008, 12:22 PM
#19
drbyte avatar

drbyte

Sensei

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

Re: Migrated database and files... having trouble

Sorry, I guess I did ask you that before.

This whole thing doesn't make sense. (granted, that's not uncommon with netsol.)
It's as though you're reporting information from one set of files, but getting error messages about a completely different set.

8 Jul 2008, 12:23 PM
#20
drbyte avatar

drbyte

Sensei

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

Re: Migrated database and files... having trouble

Actually, that's exactly what's happening:

kay6284:

actionPoint=>0 include('/data/16/1/0/76/1489076/user/1601385/htdocs/Shop/includes/classes/class.phpbb.php');
actionPoint=>0 include('/data/16/1/0/76/1489076/user/1601385/htdocs/Shop/includes/classes/shopping_cart.php');

Fatal error: Class 'phpBB' not found in /data/16/1/0/76/1489076/user/1601385/htdocs/doubledstoreonline/includes/autoload_func.php on line 79

Is there a reason why you'd be using different paths?
Have you got two different paths mentioned in your configure.php file?