Topic: Pyrostreams - "Fatal error: Class 'Users_m' not found in ... "

 
User
Gravatar
Joined: 2011-09-10
Posts: 5
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
 
 
Admin
Gravatar
Joined: 2011-01-27
Posts: 115
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
 
 
Admin
Gravatar
Joined: 2010-07-03
Posts: 752
Hey Adam, it's probably because users_m got renamed to user_m. https://github.com/pyrocms/pyrocms/commit/5ac30acc76de8b4e97b2e6f549c451b75fa02e86
 
 
Admin
Gravatar
Joined: 2011-01-27
Posts: 115
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
 
 
Admin
Gravatar
Joined: 2011-01-27
Posts: 115
Just FYI this is fixed in the final release of 2.1 which is available now.

-Adam
 
 
User
Gravatar
Joined: 2011-09-10
Posts: 5
Great! Thanks Adam, I'll try and test it out shortly.
 
 
User
Gravatar
Joined: 2012-01-03
Posts: 5
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.
 
 
User
Gravatar
Joined: 2011-02-03
Posts: 15
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"
 
 
Admin
Gravatar
Joined: 2011-01-27
Posts: 115
Hey rudejason,

I'm not sure I follow - what is at version 1.2 that you are running? PyroStreams?

Adam
 
 
User
Gravatar
Joined: 2012-01-03
Posts: 5
I am checking it out now, but just bought it, so should be the most recent version right?