Zen Cart Logo
Forums / Upgrading from 1.3.x to 1.3.9 / Fatal error after upgrade to 1.3.5 renaming phpbb file

Fatal error after upgrade to 1.3.5 renaming phpbb file

Locked

Views: 6,077

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
7 Sep 2006, 3:23 PM
#1
mikey1719 avatar

mikey1719

New Zenner

Join Date:
Sep 2006
Posts:
29
Plugin Contributions:
0

Fatal error after upgrade to 1.3.5 renaming phpbb file

I have upgraded from 1.3 to 1.3.5 and am getting the following error:
Fatal error: Cannot instantiate non-existent class: phpbb in /home/oneweew/public_html/weetestcatalog/includes/autoload_func.php on line 79
I followed the forum and renamed the file "class.phpBB.php" to "class.phpbb.php" in "includes/classes" but continue to get this error on the main page of the cart. Any further help with this would be greatly appreciated.

7 Sep 2006, 5:15 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: Fatal error after upgrade to 1.3.5 renaming phpbb file

Renaming files using the same letters but with different case often can be problematic (most noticably on Windows systems).

Please rename the file to class.phpbb.renamed.php
and then rename it back to class.phpbb.php

If that fails to resolve the issue, delete the file and re-upload it.

7 Sep 2006, 7:49 PM
#3
mikey1719 avatar

mikey1719

New Zenner

Join Date:
Sep 2006
Posts:
29
Plugin Contributions:
0

Re: Fatal error after upgrade to 1.3.5 renaming phpbb file

I nenamed as instructed. Didn't work!! So I tried step by step as per upgrade html file, by creating a fresh install, new database imported from old database, changed all files that were modified that showed up in WinMerge, upgraded the database with "zc_install" while performing ALL of this in IE and in a new directory as explained in a post. Still didn't get rid of the error. I'm thinking that I'm going to have to stick to 1.3 and just deal with any security issues. I have done upgrades on other carts and it wasn't ANYTHING like this. I just had to overwrite some files and it was done!! I really like this cart for customization but the upgrades are a nightmare. If anyone has any input on this I would REALLY appreciate it.

7 Sep 2006, 8:30 PM
#4
drbyte avatar

drbyte

Sensei

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

Re: Fatal error after upgrade to 1.3.5 renaming phpbb file

Look, while you seem to have had some bad experiences upgrading, the process is really quite straightforward.

In the case of your phpbb issue, here's how it works:

  1. /includes/auto_loaders/config.core.php
    line 60-61:```
    $autoLoadConfig[0][] = array('autoType'=>'class',
    'loadFile'=>'class.phpbb.php');

2. if you for SOME reason have other files in the /includes/auto_loaders/overrides folder or just the auto_loaders folder that contain any references to loading some other version of the phpbb class file, then you'll have to convert those to lowercase too.

3. /includes/autoload_func.php
lines 52-60:```
      if (isset($entry['classPath'])) {
        $classPath = $entry['classPath'];
      } else {
        $classPath = DIR_FS_CATALOG . DIR_WS_CLASSES;
      }
      /**
       * include a class definition as specified by autoloader array
       */
      if (file_exists($classPath . $entry['loadFile'])) include($classPath . $entry['loadFile']);
```in a nutshell, this checks the appropriate path, checks whether the file exists (/includes/classes/class.phpbb.php) and include()'s it.

If it cannot find the file in order to include it, then the phpbb class is never defined.  Thus the error message you're reporting.

So ... either the file does not exist, or it's got the wrong name, or the permissions on it are set such that it's not readable.
7 Sep 2006, 11:27 PM
#5
mikey1719 avatar

mikey1719

New Zenner

Join Date:
Sep 2006
Posts:
29
Plugin Contributions:
0

Re: Fatal error after upgrade to 1.3.5 renaming phpbb file

Thank you for the explaination, however everything checked out but still didn't work. So I decided to do a fresh complete install with version 1.3.5. I moved my template over to the new directory along with any override files. This isn't a big hassle because it's a new store without a client database and only one product at this time, so I'm not really losing anything with a new database that hasn't been updated. HOWEVER I seem to have a new problem that I can't figure out. The main page won't expand to accomodate the additional sideboxes that I have been enabling in the admin panel. There isn't a height attribute in the CSS body tag, so I know it's not that. You can see my old site that expanded properly at https://www.oneweeworld.com/weecatalog/
and you can see what my problem is at https://www.oneweeworld.com/oneweecatalog/
I have about 5 other sideboxes enabled that aren't displaying because the page won't expand to accomodate them. Could you please shed some light on this for me?:down:

7 Sep 2006, 11:40 PM
#6
drbyte avatar

drbyte

Sensei

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

Re: Fatal error after upgrade to 1.3.5 renaming phpbb file

What are all your settings in the Admin->Tools->Layout Boxes Controller ?

7 Sep 2006, 11:52 PM
#7
mikey1719 avatar

mikey1719

New Zenner

Join Date:
Sep 2006
Posts:
29
Plugin Contributions:
0

Re: Fatal error after upgrade to 1.3.5 renaming phpbb file

I basically am copying the settings I had for the admin panel in 1.3
The ones that are ON are as follows:
These are above the horizontal dividing line:
sideboxes/document_categories.php ON LEFT 0 0 OFF
sideboxes/categories.php ON LEFT 10 10 ON
sideboxes/whats_new.php ON LEFT 20 0 OFF
These are below the horizontal dividing line:
sideboxes/best_sellers.php ON RIGHT 30 70 ON
sideboxes/manufacturer_info.php ON RIGHT 35 95 ON
sideboxes/product_notifications.php ON RIGHT 55 85 ON
sideboxes/languages.php ON RIGHT 70 50 ON
sideboxes/currencies.php ON RIGHT 80 60 ON
sideboxes/whos_online.php ON RIGHT 200 200 ON

7 Sep 2006, 11:53 PM
#8
drbyte avatar

drbyte

Sensei

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

Re: Fatal error after upgrade to 1.3.5 renaming phpbb file

Based on those settings, I see no problems, at least not in IE6.

I see:
categories
languages
currencies
whos-online

Since you have no data to show in the others, they're not showing.

8 Sep 2006, 12:02 AM
#9
mikey1719 avatar

mikey1719

New Zenner

Join Date:
Sep 2006
Posts:
29
Plugin Contributions:
0

Re: Fatal error after upgrade to 1.3.5 renaming phpbb file

Ahh!! Feeling very stupid right now. :blush:

New cart is displaying properly once I put some content in it.

Thank you very much for straightening this out for me. :smile:

8 Sep 2006, 12:32 AM
#10
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,841
Plugin Contributions:
0

Re: Fatal error after upgrade to 1.3.5 renaming phpbb file

I see this on the bottom of your page...

Shopping Cart Furnished by 3rd Dimension Media

hmmmmm........no credit to zen cart:down:

8 Sep 2006, 12:54 AM
#11
mikey1719 avatar

mikey1719

New Zenner

Join Date:
Sep 2006
Posts:
29
Plugin Contributions:
0

Re: Fatal error after upgrade to 1.3.5 renaming phpbb file

Good Point!! I was leaving it off to keep hackers from knowing what cart they are dealing with. But realize that the great help I have received on this board deserves a plug, as I wouldn't even have a cart up and running with out you all. Besides script kiddies will probably be able to figure it out anyway. Thanks for the nudge. :wink2: I've added it now. :P

8 Sep 2006, 2:23 AM
#12
jetx avatar

jetx

Zen Follower

Join Date:
Apr 2006
Posts:
425
Plugin Contributions:
0

Re: Fatal error after upgrade to 1.3.5 renaming phpbb file

mikey1719:

Good Point!! I was leaving it off to keep hackers from knowing what cart they are dealing with. But realize that the great help I have received on this board deserves a plug, as I wouldn't even have a cart up and running with out you all. Besides script kiddies will probably be able to figure it out anyway. Thanks for the nudge. :wink2: I've added it now. :P

It's the search for "Powered by Zen Cart" etc.. you have to decide what's more important, the security of your site or plugging the brand.