#1 September 27, 2012 2:10pm

jacobltobin
Member
Registered: September 27, 2012
Posts: 4

Sample Site - Fatal error

I installed BigTree locally and told the installer to put in sample content so I could start poking around and learning.

After install, the home page gives me:

Fatal error:  Class 'SampleFeatures' not found in /Applications/MAMP/htdocs/BigTree2/templates/basic/home.php on line 18

As you can see, I'm using mamp. Any idea what could be happening?

Offline

#2 September 27, 2012 2:12pm

timbuckingham
Administrator
From: Baltimore, MD
Registered: April 2, 2012
Posts: 978

Re: Sample Site - Fatal error

My best guess is that the database connection is failing. Can you make sure that the connection parameters in /templates/config.php are correct?

Offline

#3 September 27, 2012 2:15pm

jacobltobin
Member
Registered: September 27, 2012
Posts: 4

Re: Sample Site - Fatal error

Thanks for the quick response.

Looks alright to me:

    // Database info.
    $bigtree["config"]["db"]["host"] = "localhost";
    $bigtree["config"]["db"]["name"] = "bigtree2";
    $bigtree["config"]["db"]["user"] = "root";
    $bigtree["config"]["db"]["password"] = "root";

Offline

#4 October 1, 2012 3:42pm

timbuckingham
Administrator
From: Baltimore, MD
Registered: April 2, 2012
Posts: 978

Re: Sample Site - Fatal error

Everything looks like it's setup properly (assuming that the password and username are correct for MySQL).  Can you verify that there is an entry in the bigtree_modules table with the title "Features"?

Offline

#5 October 3, 2012 12:53pm

jacobltobin
Member
Registered: September 27, 2012
Posts: 4

Re: Sample Site - Fatal error

Yeah, there is.

Offline

#6 October 3, 2012 12:55pm

timbuckingham
Administrator
From: Baltimore, MD
Registered: April 2, 2012
Posts: 978

Re: Sample Site - Fatal error

Can you try deleting the /cache/module-class-list.btc file and see if that fixes the error?

Offline

#7 October 4, 2012 2:29pm

jacobltobin
Member
Registered: September 27, 2012
Posts: 4

Re: Sample Site - Fatal error

Woo! That worked. Thanks a bunch. Could you explain what was happening?

Offline

#8 October 4, 2012 2:32pm

timbuckingham
Administrator
From: Baltimore, MD
Registered: April 2, 2012
Posts: 978

Re: Sample Site - Fatal error

Normally it occurs when the bigtree_modules table is changed directly in MySQL without the BigTree admin doing the changes (the hard class cache file gets cached with incorrect information).


The incoming Release Candidate 2 tries to address that very issue with a bit more grace, so it's a known pain point smile  Hopefully you're all set now but feel free to ask any more questions!

Offline

Board footer

Powered by FluxBB

The Discussion Forum is not available on displays of this size.