Topic: Pyrostreams - "Fatal error: Class 'Users_m' not found in ... " |
|||
|---|---|---|---|
Posted: 2011-12-21 |
|||
|
User |
Just want to report a bug, I'm using pyrocms 2.0.0-dev and pyrostreams 2.1 and receive the following error when trying to display a stream with a "user" field assignment even if I'm not referencing that field. It appears maybe the name of the model is wrong? or perhaps the model has not been loaded yet. Fatal error: Class 'Users_m' not found in ... ./system/cms/libraries/MX/Loader.php on line 203
Cheers,
Mike
|
||
| Quote | |||
Posted: 2011-12-21 |
# 1 | ||
|
Admin |
Hey Mike, Thanks for reporting this. Not sure what's going on (since there is a users_m and user_m in PyroCMS) but I'll check it out and report back! Adam |
||
| Quote | |||
Posted: 2011-12-21 |
# 2 | ||
|
Admin |
Hey Adam, it's probably because users_m got renamed to user_m. https://github.com/pyrocms/pyrocms/commit/5ac30acc76de8b4e97b2e6f549c451b75fa02e86 | ||
| Quote | |||
Posted: 2011-12-21 |
# 3 | ||
|
Admin |
Ah yes, that would be it. I'm smart. There is still a users_m model in there though - for backwards compat or something? Well, I guess not if streams isn't loading it. Adam |
||
| Quote | |||
Posted: 2011-12-26 |
# 4 | ||
|
Admin |
Just FYI this is fixed in the final release of 2.1 which is available now. -Adam |
||
| Quote | |||
Posted: 2011-12-27 |
# 5 | ||
|
User |
Great! Thanks Adam, I'll try and test it out shortly. | ||
| Quote | |||
Posted: 2012-01-04 |
# 6 | ||
|
User |
Guessing I did not grab the latest version, in my ad on section it shows version 1.2 of the forms and i am getting this error. Fatal error: Class 'Users_m' not found I checked the link above and all the files on my site have the fix shown on the code. here is the full error i am getting Fatal error: Class 'Users_m' not found in /system/cms/libraries/MX/Loader.php on line 203 Can anyone let me know how to fix this. Thanks in advance. |
||
| Quote | |||
Posted: 2012-01-04 |
# 7 | ||
|
User |
Chances are it will be in the front end Controller for the module, have a look in there for where it loads the user model it will be looking for something like this "$this->load->model(''users/users_m'')" you need to change this to "users/user_m" |
||
| Quote | |||
Posted: 2012-01-04 |
# 8 | ||
|
Admin |
Hey rudejason, I'm not sure I follow - what is at version 1.2 that you are running? PyroStreams? Adam |
||
| Quote | |||
Posted: 2012-01-05 |
# 9 | ||
|
User |
I am checking it out now, but just bought it, so should be the most recent version right? | ||
| Quote | |||
