When we execute the script that creates the weekly report we receive this error:
root@S60EX ~]# /sbin/e-smith/weekly-report
PHP Fatal error: SOAP-ERROR: Encoding: object has no 'ProfilePort' property in /usr/libexec/nethserver/nethserver-flashstart-report on line 104
malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "FlashStartWS error: ...") at /usr/share/nethserver-report/miners/FlashStart line 37.
If we execute the script /usr/libexec/nethserver/nethserver-flashstart-report that is called by /sbin/e-smith/weekly-report we receive the same error:
[root@S60EX ~]# /usr/libexec/nethserver/nethserver-flashstart-report
PHP Fatal error: SOAP-ERROR: Encoding: object has no 'ProfilePort' property in /usr/libexec/nethserver/nethserver-flashstart-report on line 104
FlashStartWS error: SOAP-ERROR: Encoding: object has no 'ProfilePort' property
Talking with Flashstart support we found that the value PortNumber is not used anymore, instead they are actually using this variable ProfilePort.
Just changing the variable's name seems enough to fix the problem:
NethServer with cloud content filter working and enabled also in weekly reports. Weekly reports doesn't show flashstart section anymore.
Steps to reproduce
Expected behavior
Next weekly report will show correctly every section including cloud content filter
Actual behavior
Components version: NethServer release 7.6.1810 (final) package: nethserver-flashstart-2.1.0-1.ns7.noarch
When we execute the script that creates the weekly report we receive this error:
If we execute the script
/usr/libexec/nethserver/nethserver-flashstart-report
that is called by/sbin/e-smith/weekly-report
we receive the same error:Talking with Flashstart support we found that the value
PortNumber
is not used anymore, instead they are actually using this variableProfilePort
.Just changing the variable's name seems enough to fix the problem:
After that the scripts returns a good result: