Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[advanced content filter] white screen of death #13950

Closed
AlfredSK opened this issue Feb 29, 2024 · 2 comments
Closed

[advanced content filter] white screen of death #13950

AlfredSK opened this issue Feb 29, 2024 · 2 comments
Assignees
Labels
Milestone

Comments

@AlfredSK
Copy link

  • [馃ズ] I have searched open and closed issues for duplicates

Bug Description

The settings page of the advanced content filter add-on is broken. Going to https://example.com/advancedcontentfilter leads to a WSOD.

Steps to Reproduce

  1. Update to current RC
  2. Go to settings > add-ons > advanced content filter
  3. Notice the pure white color

Actual Result:

WSOD with this error in log file:

app [ERROR]: Uncaught Exception ArgumentCountError: "Too few arguments to function advancedcontentfilter_get_rules(), 0 passed in /var/www/html/libranet/addon/advancedcontentfilter/advancedcontentfilter.php on line 256 and exactly 2 expected" at /var/www/html/libranet/addon/advancedcontentfilter/advancedcontentfilter.php line 308 
{"exception":"ArgumentCountError: Too few arguments to function advancedcontentfilter_get_rules(), 0 passed in /var/www/html/libranet/addon/advancedcontentfilter/advancedcontentfilter.php on line 256 and exactly 2 expected in /var/www/html/libranet/addon/advancedcontentfilter/advancedcontentfilter.php:308\n
Stack trace:\n
#0 /var/www/html/libranet/addon/advancedcontentfilter/advancedcontentfilter.php(256): advancedcontentfilter_get_rules()\n
#1 /var/www/html/libranet/src/LegacyModule.php(96): advancedcontentfilter_content()\n
#2 /var/www/html/libranet/src/LegacyModule.php(73): Friendica\\LegacyModule->runModuleFunction()\n
#3 /var/www/html/libranet/src/BaseModule.php(250): Friendica\\LegacyModule->content()\n
#4 /var/www/html/libranet/src/App.php(711): Friendica\\BaseModule->run()\n
#5 /var/www/html/libranet/index.php(55): Friendica\\App->runFrontend()\n
#6 {main}"} - {"file":null,"line":null,"function":null,"request-id":"65e0d8f7cb688","stack":"ErrorHandler::handleException (128), ErrorHandler::Friendica\\Core\\Logger\\Handler\\{closure}","uid":"29cc42","process_id":1218997}

Expected Result:

No error.

Platform Info

Friendica Version:
2024.03-rc

Friendica Source:
git

PHP version:
8.1

SQL version:
MariaDB 10.6

@AlfredSK AlfredSK added the Bug label Feb 29, 2024
@MrPetovan MrPetovan self-assigned this Feb 29, 2024
@MrPetovan MrPetovan added this to the 2024.03 milestone Feb 29, 2024
@MrPetovan
Copy link
Collaborator

PR created: https://git.friendi.ca/friendica/friendica-addons/pulls/1475

@tobiasd
Copy link
Collaborator

tobiasd commented Mar 4, 2024

PR merged

@tobiasd tobiasd closed this as completed Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants