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
PHP Fatal error: Uncaught TypeError: Unsupported operand types: int + string in /var/www/nextcloud-userexport/functions.php:695
Stack trace:
#0 /var/www/nextcloud-userexport/index.php(104): calculate_quota()
#1 {main}\n thrown in /var/www/nextcloud-userexport/functions.php on line 695
Analysis and possible solution:
In some cases the value of $user_data['ocs']['data']['quota'] (functions.php:695) return 'none' and is interpreted as a string.
I'm not really sure why this happens, but when I've checked all $user_data['ocs']['data']['quota'] values, I see a few elements have less values (like only Array ( [quota] => none, [used] => 0 )).
Error:
Analysis and possible solution:
In some cases the value of
$user_data['ocs']['data']['quota']
(functions.php:695) return 'none' and is interpreted as a string.I'm not really sure why this happens, but when I've checked all $user_data['ocs']['data']['quota'] values, I see a few elements have less values (like only Array ( [quota] => none, [used] => 0 )).
To avoid fatal error, simply add intval parse:
functions.php:695
The text was updated successfully, but these errors were encountered: