daithi-coombes / api-connection-manager

Manages connections and requests to 3rd party providers or services
0 stars 1 forks source link

public/static API_Connection_Manager::get_current_user() #65

Closed daithi-coombes closed 11 years ago

daithi-coombes commented 11 years ago

The following error is being thrown by API_Con_Mngr_Module when calling API_Connection_Mnager::get_current_user():

<b>Strict Standards</b>:  Non-static method API_Connection_Manager::get_current_user() should not be called statically, assuming $this from incompatible context in <b>/home/davidcoo/public_html/cityindex/labs.cityindex.com/httpdocs/wp-content/plugins/api-connection-manager/class-api-con-mngr-module.php</b> on line <b>645</b><br />
daithi-coombes commented 11 years ago

Seems the issue is due to the code flow for xmlrpc requests. All modules will throw the same fatal error. One solution would be to make sure there's a global $API_Connection_Manager object created in the parent class API_Con_Mngr_Module, as all modules extend this class this would ensure that $API_Connection_Manager is always constructed and global.