Module, Plugin

Developer
Supported

Rest

ExpressionEngine 2

Back to this add-on's main page
View Other Add-ons From Phil Sturgeon

     

You must be logged in to post.

Creating default object from empty value

Support Request

Jacob Graf
Jacob Graf

I just upgraded from EE 2.5.2 to 2.5.3 and for whatever reason, I am getting this error when I visit the Rest module page in the CP. I have uninstalled/reinstalled the add-on with no luck. Thanks for your help!

A PHP Error was encountered
Severity
Warning
Message
Creating default object from empty value
Filename
rest/mcp.rest.php
Line Number
35 
A PHP Error was encountered
Severity
Warning
Message
Cannot modify header information headers already sent by (output started at /home/aac/system/codeigniter/system/core/Exceptions.php:170)
Filenamecore/Common.php
Line Number
408 
philsturgeon
# 1
Developer
philsturgeon

This is most likely due to your error reporting previously being lower, then when you upgraded it put it back to E_ALL. If you are on PHP 5.4 now then this will be the reason, as PHP 5.3 generally wouldn’t have cared about this.

Anyhow, I fixed it for you:

https://github.com/philsturgeon/ee2-rest/commit/37d982ccf55f864c0e36a7e87e9e6d229d7f2bc6

Took me a while, but thats why I open-sourced everything :)