php - PyroCMS error - Undefined Property -


i have created site pyro on local server running fine.

i've put onto staging server , it's throwing error in model.php in codeigniter system.

severity: notice  message: undefined property: pages::$session  filename: core/model.php  line number: 50 

at line 50 is

function __get($key) {     $ci =& get_instance(); //50     return $ci->$key; } 

in php error log though, logs

call member function set_flashdata() on non-object in /var/www/vhosts/site/httpdocs/system/pyrocms/modules/modules/models/module_m.php  

the full output of debug below

debug - 2011-07-01 11:19:00 --> config class initialized debug - 2011-07-01 11:19:00 --> hooks class initialized debug - 2011-07-01 11:19:00 --> utf8 class initialized debug - 2011-07-01 11:19:00 --> utf-8 support enabled debug - 2011-07-01 11:19:00 --> uri class initialized debug - 2011-07-01 11:19:00 --> router class initialized debug - 2011-07-01 11:19:00 --> file loaded: system/pyrocms/modules/pages/config/routes.php debug - 2011-07-01 11:19:00 --> no uri present. default controller set. debug - 2011-07-01 11:19:00 --> output class initialized debug - 2011-07-01 11:19:00 --> input class initialized debug - 2011-07-01 11:19:00 --> global post , cookie data sanitized debug - 2011-07-01 11:19:00 --> language class initialized debug - 2011-07-01 11:19:00 --> loader class initialized debug - 2011-07-01 11:19:00 --> config class initialized debug - 2011-07-01 11:19:00 --> loader class initialized debug - 2011-07-01 11:19:00 --> config dev environment not found. trying global config. debug - 2011-07-01 11:19:00 --> config file loaded: system/pyrocms/config/asset.php debug - 2011-07-01 11:19:00 --> config dev environment not found. trying global config. debug - 2011-07-01 11:19:00 --> config file loaded: system/pyrocms/config/language.php debug - 2011-07-01 11:19:00 --> config dev environment not found. trying global config. debug - 2011-07-01 11:19:00 --> config file loaded: system/pyrocms/config/tags.php debug - 2011-07-01 11:19:00 --> helper loaded: debug_helper debug - 2011-07-01 11:19:00 --> helper loaded: url_helper debug - 2011-07-01 11:19:01 --> helper loaded: form_helper debug - 2011-07-01 11:19:01 --> helper loaded: text_helper debug - 2011-07-01 11:19:01 --> helper loaded: string_helper debug - 2011-07-01 11:19:01 --> helper loaded: language_helper debug - 2011-07-01 11:19:01 --> helper loaded: asset_helper debug - 2011-07-01 11:19:01 --> helper loaded: pagination_helper debug - 2011-07-01 11:19:01 --> helper loaded: array_helper debug - 2011-07-01 11:19:01 --> helper loaded: gravatar_helper debug - 2011-07-01 11:19:01 --> file loaded: system/pyrocms/modules/comments/helpers/comments_helper.php debug - 2011-07-01 11:19:01 --> file loaded: system/pyrocms/modules/modules/helpers/module_helper.php debug - 2011-07-01 11:19:01 --> file loaded: system/pyrocms/modules/users/helpers/user_helper.php debug - 2011-07-01 11:19:01 --> language file loaded: language/english/main_lang.php debug - 2011-07-01 11:19:01 --> language file loaded: language/english/errors_lang.php debug - 2011-07-01 11:19:01 --> file loaded: system/pyrocms/modules/users/language/english/user_lang.php debug - 2011-07-01 11:19:01 --> database config dev environment not found. trying global config. debug - 2011-07-01 11:19:01 --> database driver class initialized debug - 2011-07-01 11:19:01 --> model class initialized debug - 2011-07-01 11:19:01 --> helper loaded: inflector_helper debug - 2011-07-01 11:19:01 --> file loaded: system/pyrocms/modules/modules/models/module_m.php debug - 2011-07-01 11:19:01 --> model class initialized debug - 2011-07-01 11:19:01 --> file loaded: system/pyrocms/modules/modules/helpers/module_helper.php error - 2011-07-01 11:19:01 --> severity: notice  --> unserialize() [<a href='function.unserialize'>function.unserialize</a>]: error @ offset 167 of 1315 bytes /var/www/vhosts/site_here/httpdocs/system/pyrocms/modules/modules/models/module_m.php 191 error - 2011-07-01 11:19:01 --> severity: notice  --> undefined property: pages::$session /var/www/vhosts/site_here/httpdocs/system/codeigniter/core/model.php 50 

i don't know if config issue on server these core files i've not changed.

any ideas?

ta.

looks pyrocms bug in versions should have since been fixed. upgrade perhaps?

edit: bug occuring because session variable somehow not being set. i'd differences between application/config/config.php , application/config/autoload.php files on local server , staging server: must somehow handle session setup differently.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -