When trying to activate the app i get
Fatal error: Class 'PageModel' not found in .../applications/vanillacms/settings/structure.php on line 45
@fh111 @S @Ha77man @xuereb, add the following line in vanillacms/settings/class.hooks.php:
include(PATH_APPLICATIONS . DS . 'vanillacms' . DS . 'models' . DS . 'class.pagemodel.php');
Below line 117.
Or you can download the latest in the github repository, https://github.com/JockeGustin/vanillacms/downloads
Answers
Hmm, weird. Is anyone else getting this problem? Maybe the models havent hooked in yet? But it works for me. You can temporarily solve this by commenting out line 45 and 49, the only thins is that you will have to resave your Example Page to get the proper UrlCode routing setup.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Yes, I was getting this problem as well. =(
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •I recommend you both post your Vanilla versions here.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •I'm using 2.0.18.1
thanks for looking nto this
edit: i commented out line 45 and 49 and it works great. great app!
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •I suppose that error happened while enabling application.
Application not yet enabled, and autoloader cant find PageModel class.
If you are using models or other plugins in structure.php (or Setup()) make sure that PHP can reach it without any magics. Just add to structure.php:
require_once PATH_APPLICATIONS . '/<ApplicationFolder>/models/class.pagemodel.php';- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •i get this too :(
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •require_once PATH_APPLICATIONS . '//models/class.pagemodel.php'; i've added this but still doesn't work. help me please. Stept by step.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •When I try to activate this, I get this the same error "Fatal error: Class 'PageModel' not found in /home/afnme/public_html/applications/vanillacms/settings/structure.php on line 45" I have download it from http://vanillaforums.org and from github repository, but made no difference.
I am using Version 2 of vanilla forums.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Hmm, i have the same issue like AFN. Latest Build from GitHub and 2.0.18.1 Vanilla.
:/
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •I have the same issue as AFN and wiesson... latest version of Vanilla and the latest build... Checked /vanillacms/settings/class.hooks.php line below 117 and it matches that exactly...
still same error... please help
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •I have done a test while I was also testing out a theme that I have cloned and the version (Vanilla 2.0.18.1) does not give me that error , however the version that I have installed on my website give me that error.
I do not get that error with Vanilla 2.0.18.1, but fair as I know anything earlier than (Vanilla 2.0.18.1) would give you that error.
So now my question is, how can I find out what version do I have installed on my website?
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •var_dump(APPLICATION_VERSION); die();Vanilla Forums Senior Developer [GitHub, Twitter, About.me]
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •I'm using 2.0.18.1 and it still doesn't work
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •I finally managed to reproduce the bug, this commit should fix it!
https://github.com/JockeGustin/vanillacms/commit/f7909de34b9047dab07d54f088d55f6c5c482265
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •I updated and I'm still getting the
Fatal error: Class 'PageModel' not found in vanilla/applications/vanillacms/settings/structure.php on line 45- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •@Sheriffen you should probably update the download from here, http://vanillaforums.org/addon/825/vanilla-cms
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •I finally managed to completely reproduce the error your getting on another server and managed to fix it in the latest commit in github (atleast now it works in both my servers). Please report if your still getting the error using the latest checkout from github!
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •I found the root issue for this in the autoloader and fixed it in 2.1
Vanilla Forums Senior Developer [GitHub, Twitter, About.me]
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Where do I add or remove that line of code, in what page?
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Please try the newly arrived beta 2 and see if you have any luck. Apparently this is an issue in the core so it will be allright when 2.1 is released. Until then I added a working solution.
Download here: http://vanillaforums.org/addon/vanillacms-application
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •