@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
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';
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.)