If this is your first visit, check our documentation. To post, register or login.
Forums / Installing Zen Cart / Installing on a Linux/Unix Server / Cannot instantiate non-existent class [not phpBB]

Cannot instantiate non-existent class [not phpBB]

Locked

Started by daveky on 20 Sep 2006, 4:21 PM · Views: 4,561

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
20 Sep 2006, 4:21 PM
#1
daveky avatar

daveky

New Zenner

Join Date:
Aug 2006
Location:
Manchester, UK
Posts:
36
Plugin Contributions:
0

Cannot instantiate non-existent class [not phpBB]

Hi All. Searched around the forums and tried various things but to no avail. Still keep getting the following fatal error:

Fatal error: Cannot instantiate non-existent class: notifier in /home/[username]/public_html/includes/autoload_func.php on line 79

What does this error mean (in general)? The file is not missing. (Neither is it empty.) Reinstalled the shop. Re-ftp-ed the files. Checked both configure.php files. Baffled.

Help! D.

(You should know that I have built this installation locally and uploaded the files and run a database script manually. This *should *work just fine but I got this error so I did a *proper *install which has the same problem. Could it be a hosting problem? PHP version etc? zencart v1.3.0.2 was just fine.)

20 Sep 2006, 5:29 PM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Cannot instantiate non-existent class [not phpBB]

Check that your includes/classes/class.notifier.php file is present and uncorrupted.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

20 Sep 2006, 5:47 PM
#3
daveky avatar

daveky

New Zenner

Join Date:
Aug 2006
Location:
Manchester, UK
Posts:
36
Plugin Contributions:
0

Re: Cannot instantiate non-existent class [not phpBB]

Yup. Seems to be OK. All the usual comments and then:

if (!defined('IS_ADMIN_FLAG')) {
  die('Illegal Access');
}
class notifier extends base {
}

I've checked every file for zero byte uploads too. None there.

22 Sep 2006, 12:50 AM
#4
peace_freak avatar

peace_freak

Zen Follower

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

Re: Cannot instantiate non-existent class [not phpBB]

I have got a similar message after upgrading on my test site:

Fatal error: Cannot instantiate non-existent class: phpbb in /home/globalpe/public_html/storetestsite/store/includes/autoload_func.php on line 79

The upgrader says Zen is successfully installed but when going to the store I get a blank page with that message.

I have one additional question... When I trying going to the Admin area for the test store I get taken to the admin area of my live store... How can I remedy this?

(I have to say i am certainly glad I did the upgrade on my test site!)

22 Sep 2006, 2:00 AM
#5
peace_freak avatar

peace_freak

Zen Follower

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

Re: Cannot instantiate non-existent class [not phpBB]

I have renamed the file /includes/classes/class.phpBB.php to class.phpbb.php but still no change... I even deleted and re-uploaded it but I stilll cannot get past the error message.

22 Sep 2006, 8:06 AM
#6
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Cannot instantiate non-existent class [not phpBB]

Daveky, Peace Freak

Let's see if we can gain some more info by doing the following. In your includes directory edit the first line of code to read> define('DEBUG_AUTOLOAD', true);Don't worry about over-rides as once you site is working properly you will set this back to its original value of false.

Now go to your site and let's see what debug statements are generated.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

22 Sep 2006, 8:10 AM
#7
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Cannot instantiate non-existent class [not phpBB]

Peace Freak

The re-direction to the admin area for your live store suggests to me that you may have copied the config files from your live store to your test directory without editing them to point to the new location. This could also explain why your change to the phpBB filename didn't have any effect, as your test Zen Cart may be looking at the version on your live site which still has the old name.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

22 Sep 2006, 1:38 PM
#8
daveky avatar

daveky

New Zenner

Join Date:
Aug 2006
Location:
Manchester, UK
Posts:
36
Plugin Contributions:
0

Re: Cannot instantiate non-existent class [not phpBB]

Eedjit, eedjit, eedjit. (Just for the record, I'm talking about myself there.)

I solved my problem yesterday evening. As I said I had copied over files from a local installation and run a database script manually. After that I edited the configs so it should all work. It didn't. So I ran a full install and checked that. The problem was that I was checking the install against my database created from the script, for which I was using the edited config files from my local install. So I was tweaking values in it including DIR_FS_CATALOG in /includes/configure.php to point to my admin folder (which I had changed as per security recomendations) but of course you edit /admin/includes/configure.php for that. So it was all a complete shambles everytime.

You think you have a handle on it an you have to go back and RTFM. Darn.

Sorry for the false post all.

Peace Freak: my guees is Kuroi is correct in saying there is something wrong with your config files. It was my first point of call but I still couldn't see the wood for the trees. Have another look. :D

Cheers, D.

22 Sep 2006, 1:56 PM
#9
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Cannot instantiate non-existent class [not phpBB]

Thanks for confirming that this is closed daveky. And for posting the background and resolution to help others who might just fall into a similar trap.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

22 Sep 2006, 5:20 PM
#10
peace_freak avatar

peace_freak

Zen Follower

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

Re: Cannot instantiate non-existent class [not phpBB]

Hello Kuroi San,

Sorry I was not able to respond earlier. I was quite busy today in Tokyo and didn’t get back to this till 10pm and it is now almost 2:30 am!

Thanks for your advice... You were TOTALLY on track...

I took a closer look at my configure.php files in the Admin and Includes. I had changed the HTTP_SERVER files but I didn’t make any changes to the Catalog and Cache paths so that is why I couldn’t things to work. Changed them all and the store appeared...

(I had installed my test store in a folder within a folder that made working out the paths a real nightmare as I am using a subdomain... Anyway, after much hassle I decided to move it all to a new folder that would imitate the paths of my live site. Doing so made it much easier for me to work out the paths...)

So now I have started testing the ‘test’ store. The first problem I have encountered is when making a new customer account. When I press the submit button I get an error message saying:

You must select a country from the Countries pull down menu.

Of course, I have selected a country, but I cannot get past that window... It happens with both the Japanese and the English sides...

Thanks in advance, as always!

23 Sep 2006, 2:19 AM
#11
peace_freak avatar

peace_freak

Zen Follower

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

Re: Cannot instantiate non-existent class [not phpBB]

Hard to believe but I have managed to fix the country pulldown problem by myself!

I realized that my templates were probably old versions so I found the related templates to the login window and copied my modifications into the new versions... Here is what I had to change:

/includes/languages/my_template01/english.php

/includes/languages/my_template01/japanese.php

includes/templates/my_template01/templates/tpl_modules_create_account.php

More testing is underway!