While installing vanilla locally, i am getting this error :
Fatal error: Class 'CategoryModel' not found in E:\wamp\www\vanilla\applications\vanilla\settings\structure.php on line 60
Any recommendations?
Regards,
Abhishek
http://www.gtricks.com/forum/
3 • •
Comments
- Spam
- Abuse
- Troll
1 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
1 • Off Topic Insightful Awesome LOL •Vanilla Forums Senior Developer [GitHub, Twitter, About.me]
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •What to do if I get a Bonk Error?
Vanilla Wiki : Join and help edit our Wiki! | View all Vanilla issues on GitHub | Report a new Vanilla issue on GitHub
Deploying a new Forum and adding a Theme | Give thanks to the Vanilla Developers!
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •2.0.17.7 installs but has this error "Could not find a 'index' view for the 'discussions' controller in the '' application."
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Now let's figure out why you get the CategoryModel error.
Unfortunately, it looks like it's something in the configuration. I have a similar install (Xampplite, not Wamp) and I don't have the problem.
Are you familiar with looking at apache configurations?
What to do if I get a Bonk Error?
Vanilla Wiki : Join and help edit our Wiki! | View all Vanilla issues on GitHub | Report a new Vanilla issue on GitHub
Deploying a new Forum and adding a Theme | Give thanks to the Vanilla Developers!
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •You are on linux, correct?
What to do if I get a Bonk Error?
Vanilla Wiki : Join and help edit our Wiki! | View all Vanilla issues on GitHub | Report a new Vanilla issue on GitHub
Deploying a new Forum and adding a Theme | Give thanks to the Vanilla Developers!
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Fatal error: Class 'CategoryModel' not found in /srv/www/(not important)/forums/applications/vanilla/settings/structure.php on line 60
I can look through logs, but I don't know if my configs will match up with Apache.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •if ($CategoryExists) {
$CategoryModel = new CategoryModel();
$CategoryModel->RebuildTree();
unset($CategoryModel);
}
It will allow you to install it, and it should as far as i know run fine, but i havent tested this on a live forum, just on a localhost.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
2 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
2 • Off Topic Insightful Awesome LOL •To follow up on ShawnM's suggestion, what are the paths supposed to be in the cache/.ini files?
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •It was because I forgot to clear out the database after my existing install of Vanilla.
Dropped all the old Vanilla tables and now it works fine!
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •and make sure this line exist under EnabledApplications
$Configuration['EnabledApplications']['Vanilla'] = 'vanilla';
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Developer at Vanilla Forums, Inc. [GitHub, Twitter]
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •1. Download a copy of your database.
2. Delete your database.
3. Create a database with the same name.
4. Install Vanilla
5. Once it's working, upload your backup.
It worked for me at least.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •1) Comment out the CategoryExists check in structure.php as per deathdroid above.
2) Before that comment, put in a var_dump($CategoryExists);exit; call.
3) Run the installer. It should say Boolean(False) and an otherwise white screen.
4) Do it again. It should now say Boolean(True)
5) Uncomment the section in (1), but after the 'if' line add in:
include_once($_SERVER['DOCUMENT_ROOT'].'/vanilla/applications/vanilla/models/class.categorymodel.php');
You'll have to change 'vanilla' to be the dir in the doc root you installed Vanilla into.
6) Run installer again. This will activate the Conversations installed application, but not Vanilla itself.
7) In the dashboard, activate Vanilla.
---
I've done this twice now to reproduce it. So it's working for me. Messy, but I get a forum out of it.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •It works on a live forum. thanks for the workaround deathroid.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •My work-around was to make sure structure.php finds the category model class by including it at the top of structure.php:
require_once('/path/to/vanilla/applications/vanilla/models/class.categorymodel.php');(Adjust the /path/to/vanilla part to point to the directory where you installed Vanilla.)
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •