concrete5 - An unexpected error occurred. Using $this when not in object context error in Concrete 5 on PHP 5.6 -


i running legacy version of concrete 5 2012 (5.5.2.1) , experiencing issue out of blue on every page load following error:

an unexpected error occurred. using $this when not in object context

this code creating error, or @ least calling code:

## display (provided we've gotten far)       $v = view::getinstance();       $v->render($c); 

when dump $v out var_dump this:

object(view)#4 (8) {      ["viewpath":"view":private]=> null      ["controller"]=> null      ["headeritems":"view":private]=> array(0) { }     ["footeritems":"view":private]=> array(0) { }      ["themepaths":"view":private]=> array(8) {          ["/dashboard"]=> string(9) "dashboard"          ["/dashboard/*"]=> string(9) "dashboard"          ["/page_forbidden"]=> string(8) "concrete"          ["/page_not_found"]=> string(8) "concrete"          ["/install"]=> string(8) "concrete"          ["/login"]=> string(8) "concrete"          ["/register"]=> string(8) "concrete"          ["/maintenance_mode"]=> string(8) "concrete"      }      ["arelinksdisabled":"view":private]=> bool(false)      ["iseditingenabled":"view":private]=> bool(true)      ["error"]=> string(0) ""  } 

unfortunately cheapo host have bug in cpanel meaning can't access error logs see error is, line number, class etc.

is common issue? assuming host have upgraded php (currently 5.6.23) , has broken install haven't touched concrete 5 since fixing bug in may last year.

thanks.

this indeed caused host upgrading sites php 7. concrete 5.5 not run on php 7.

reverting php 5.6 worked , site normal.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -