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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Löschen einer Kategorie schmeisst Fehler #36

Open
gaffling opened this issue Apr 26, 2021 · 1 comment
Open

Löschen einer Kategorie schmeisst Fehler #36

gaffling opened this issue Apr 26, 2021 · 1 comment

Comments

@gaffling
Copy link

Fatal error: Uncaught ArgumentCountError: Too few arguments to function {closure}(), 0 passed in /function/utilities.php on line 209 and exactly 2 expected in /routes.php:170 Stack trace: #0 /function/utilities.php(209): {closure}() #1 /includes.php(45): require_once('/Applications/M...') #3 /index.php(14): require('/Applications/M...') #4 {main} thrown in /routes.php on line 170

@dab767
Copy link

dab767 commented Jan 4, 2022

Die Route in der routes.php sollte wie folgt aussehen.

router('/category/delete/',function() use($userId,$baseUrl,$isEmail,$countCartItems){
  logger('INFO','Wir sind auf der URL /category/delete');
  require_once ACTIONS_DIR . '/category.delete.real.php';
  logEnd();
},'POST');

Also unter function() die Parameter entfernen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants