Bug202505181152 undefined variable
@
Hubzilla Documentation TeamIt is personal opinion that functionality added without documentation nor quality assurance test, is a bug. Please ignore this post if disagreed.
The bugs as defined by this person alone will only be published within hubzilla. Again, please ignore this post and the author if disagreed.
Bugs are published as information only. Noone is forced or expected to read, reproduce, replicate. Again, please ignore these posts and the author if disagreed.
Recent versions show the following text at top of web page:
"Warning: Undefined variable $file_tags in ...//Zotlabs/Widget/Messages.php on line 43
"
A quick web search suggests (source,
https://www.slingacademy.com/article/how-to-fix-php-notice-undefined-variable/):
"
The ‘Undefined Variable’ notice is not a fatal error and does not stop the script from running. However, it indicates poor coding practices and might lead to unpredictable behavior or bugs in your application. Hence, it’s important to understand why this notice appears and learn how to fix it properly.
"
Elsewhere:
"
To prevent undefined variable errors in PHP, it's recommended to declare variables with default values. This ensures that the variables have a valid initial value, even if one is not explicitly assigned.
"
What has changed to cause these bugs and why?
How to fix?