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
Discovered on a fresh install of Emoncms using emonScripts updated to support php8.2 on Debian 12 "bookworm". Navigating to the Sync page displays a JavaScript alert "Error - 200: OK" and does not list feeds when the connection details for another emoncms are provided.
Investigating the response for the /sync/feed-list request shows a php warning:
<br />
<b>Deprecated</b>: Creation of dynamic property Sync::$feed is deprecated in <b>/opt/emoncms/modules/sync/sync-module/sync_model.php</b> on line <b>29</b><br />
{"enphase_panel\/Back_East_LRW":...}
The text was updated successfully, but these errors were encountered:
davefiddes
added a commit
to davefiddes/emoncms-sync
that referenced
this issue
Jul 14, 2023
Issue emoncms#36 was caused by the $feed member variable in the Sync
class not being delcared in the class. This was permitted prior to
php 8.2 but will now raise a warning. The warning corrupts the JSON
output preventing the function from working.
Tests:
- Sync several feed from an upstream stable emoncms instance
Discovered on a fresh install of Emoncms using emonScripts updated to support php8.2 on Debian 12 "bookworm". Navigating to the Sync page displays a JavaScript alert "Error - 200: OK" and does not list feeds when the connection details for another emoncms are provided.
Investigating the response for the
/sync/feed-list
request shows a php warning:The text was updated successfully, but these errors were encountered: