New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrap each addon settings form in their own form tag #10440
Wrap each addon settings form in their own form tag #10440
Conversation
- The single form tag was preventing a given addon settings to be saved if another addon had an empty required field. - Instead of concatenating the addon form HTML through Hook::callAll, we loop manually through the hooks, appending the HTML to an array.
847e50b
to
efff254
Compare
After merging this, I have no addon settings at all on my node. All themes are affected. Cleaning the SMARTY3 cache did not help. In the PHP error log I see
|
In the HTML source of the addon settings page I only see the wrapping HTML blocks
|
@tobiasd It looks like the |
The old |
It's odd that it's working on other people's node but not yours, so I'd be really curious to test the exact statement on your node. |
So, what would be the exact statement be? Tell me and I'll throw it into the MariaDB console. |
I meant the PHP statement |
That yields to the same listing of addons. |
Is the blank display systematic? If so you might have to dig into the log for SQL errors. |
It is systematic in that all users are affected yes. But the display is not blank - the Friendica UI around the listing is there. It is "just" the missing listing of the addons. The MySQL error log is empty. I've increased the Friendica log level, but it looks like the log for the time when I visit the settings page does not hold any relevant information. I have disabled all the addons that are returned by the query. From my understanding now there should be the info that no addons are configurable by the user right? This is not the case. |
Disabling the addons won't change anything, the PHP statement isn't returning an expected array so the Thanks for looking in the log, we still need to figure out the actual return value of the PHP statement. |
I have checked it here. It looks like expected. |
A
|
gives the expected array. |
Thank you, it looks like I should have used |
Indeed, with |
Hook::callAll
, we loop manually through the hooks, appending the HTML snippets to an array.Depends on friendica/friendica-addons#1141, please merge the addon PR first.
Closes #10314
Closes #10439