After installed. Trying to access site or admin area of THT. I get this error. Anyone know what cause it?
Code:
Fatal error: Call to a member function config() on a non-object in /home/kevinch/public_html/tht/includes/class_email.php on line 18
Hmm. I get that error before install but not after. After I install it goes away.
Try installing again. I'll try find the root of the problem.
Jonny, global $db missing?
As I know, config() ($db->config, gets configuration value) is part of the /includes/class_db.php
Try to find this in class_email.php.
If you can't find it, add it before line 18. If still does not work, I will release a patch for that.

Jimmie it's definately there. Or it wouldn't of worked in the dev area.
The thing is, I think I pinned down the problem. It's because it constructs the email class before the database one. The DB class is the thing that constructs the connection and if it creates email before, the email class will be like, database? Wa..
Jonny, I did update class_email.php when I was dev'ing the Mass Email System (Which was removed), check if there is a portion of my unfinished code there.
Or its just because of the __construct thing?

Trust me it's the construct problem. It's line 18

This has been fixed! Download the patch.
Ok, I will download the patch again and install.
The patch work great. One more question can we use this on a live site. When it come out of beta, do we have upgrade for it? I like to use this more than cpcreator. This one is better.
Why is that in some area it ask for Authentication Required?
Also why are they all align at the center. I have upload a image of what this mean.[
attachment=1]