Fine on localhost, fatal error on live server - why?

Hi,

having developed on localhost for some time now (everything working perfectly), I wanted it looks like on live-server (hosted). Same code, same everything, but on live, I get "Indirect modification of overloaded property", see http://www.carfreewalks.org/...441

Would anyone have an idea as to why this is?

This usually happens with different configurations of the web server (PHP in this case). The live server is possibly using a newer version of PHP or is set to be more strict. I usually opt for fixing the code to be more strict, in which case you could probably fix like so:


$rating = $model->rating;

$rating = array_pop($rating);

I think that would work… haven’t really used array_pop much… ???

Thanks, working like a charm.