By the way i am able to install 2.0.17.7, but it ends up showing this error "Could not find a 'index' view for the 'discussions' controller in the '' application."
@UnderDog I am unable to install 2.0.17.8 due to the error "Fatal error: Class 'CategoryModel' not found in E:\wamp\www\vanilla\applications\vanilla\settings\structure.php on line 60" 2.0.17.7 installs but has this error "Could not find a 'index' view for the 'discussions' controller in the '' application."
2.0.17.7 installs but has this error "Could not find a 'index' view for the 'discussions' controller in the '' application."
That error is resolved in 2.0.17.8 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?
Experiencing the same issue, worked fine locally via Apache and on a test Apache webserver, but on production via Nginx I get this error. I was using WAMP locally.
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.
Hi: I tried commenting out the lines, but I just keep getting sent back to the install page. To follow up on ShawnM's suggestion, what are the paths supposed to be in the cache/.ini files?
@deathdroid - I've done 2 separate installs (core-2.0.17.8) and commenting out those lines worked like a charm. Been a month since this thread was commented on and wondered if it was being addressed elsewhere. Hate being in the dark about changing the core.
I seem to have exactly the opposite problem which I am trying to descibe elsewhere on these pages and which is a currently active discussion. At present line 60, as copied above, is apparently the cause of a fatal error.
I had the same exact problem. Basically, when you do a new reinstall, you have to remember to clear out your database of everything. Obviously, this is not good advice if you already have an existing database with legitimate data.
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.
Managed to get a work around for myself too. I think this is linked to the Zend Server CE issue.
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.
Comments
Vanilla Forums Senior Developer [GitHub, Twitter, About.me]
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
2.0.17.7 installs but has this error "Could not find a 'index' view for the 'discussions' controller in the '' application."
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
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
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.
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.
To follow up on ShawnM's suggestion, what are the paths supposed to be in the cache/.ini files?
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!
and make sure this line exist under EnabledApplications
$Configuration['EnabledApplications']['Vanilla'] = 'vanilla';
Vanilla developer [GitHub, Twitter]
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.
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.
It works on a live forum. thanks for the workaround deathroid.
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.)