You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you instantiate a RemoteLRS object and the LRS host is down, or the URL points to a non-LRS endpoint, etc. and then try to send a statement via RemoteLRS::saveStatement a couple of 'Notice: Undefined variable' exceptions are generated.
One for $fp on line 149. This is because $fp is (currently) only defined within the preceeding try block, and if an exception is generated here, then $fp goes undefined.
The other is for $response on line 182. This is because $response is only defined within the block that checks for $fp being truthy (mentioned above).
changset d634afb seems to have introduced these problems.
The text was updated successfully, but these errors were encountered:
jamarr81
changed the title
RemoteLRS::sendRequest generates undefined variable warnings for non-xAPI host
RemoteLRS::sendRequest generates undefined variable warnings if the host cannot be reached
Jun 29, 2016
If you instantiate a RemoteLRS object and the LRS host is down, or the URL points to a non-LRS endpoint, etc. and then try to send a statement via RemoteLRS::saveStatement a couple of 'Notice: Undefined variable' exceptions are generated.
One for $fp on line 149. This is because $fp is (currently) only defined within the preceeding try block, and if an exception is generated here, then $fp goes undefined.
The other is for $response on line 182. This is because $response is only defined within the block that checks for $fp being truthy (mentioned above).
changset d634afb seems to have introduced these problems.
The text was updated successfully, but these errors were encountered: