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

MissingNamedParameter exception after upgrading to NC 21 beta5 #1030

Closed
3 tasks done
anoymouserver opened this issue Jan 9, 2021 · 0 comments · Fixed by #1031
Closed
3 tasks done

MissingNamedParameter exception after upgrading to NC 21 beta5 #1030

anoymouserver opened this issue Jan 9, 2021 · 0 comments · Fixed by #1031
Assignees
Labels

Comments

@anoymouserver
Copy link
Contributor

IMPORTANT

Read and tick the following checkbox after you have created the issue or place an x inside the brackets ;)

  • I have read the CONTRIBUTING.md and followed the provided tips
  • I accept that the issue will be closed without comment if I do not check here
  • I accept that the issue will be closed without comment if I don not fill out all items in the issue template.

Explain the Problem

What problem did you encounter?

After updating to NC 21 beta5 the news app stays empty and displays a 'Internal server error' notification.
The log shows an Doctrine\DBAL\ArrayParameters\Exception\MissingNamedParameter: Named parameter "user_id" does not have a bound value. exception.

Steps to Reproduce

Explain what you did to encounter the issue

  1. upgrade to NC 21.0.0 beta5
  2. open the news app

System Information

  • News app version: 15.1.1
  • Nextcloud version: 21.0.0 beta5
  • Cron type: system cron
  • PHP version: 7.3.18
  • Database and version:
  • Browser and version:
  • Distribution and version:

Contents of nextcloud/data/nextcloud.log

{"reqId":"jcxP8hge7EaVME3QDrod","level":3,"time":"2021-01-09T16:38:04+00:00","remoteAddr":"127.0.0.1","user":"anoymouserver","app":"index","method":"GET","url":"/apps/news/folders","message":{"Exception":"Doctrine\\DBAL\\ArrayParameters\\Exception\\MissingNamedParameter","Message":"Named parameter \"user_id\" does not have a bound value.","Code":0,"Trace":[{"file":"/var/www/cloud/3rdparty/doctrine/dbal/src/ExpandArrayParameters.php","line":64,"function":"new","class":"Doctrine\\DBAL\\ArrayParameters\\Exception\\MissingNamedParameter","type":"::","args":["user_id"]},{"file":"/var/www/cloud/3rdparty/doctrine/dbal/src/SQL/Parser.php","line":79,"function":"acceptNamedParameter","class":"Doctrine\\DBAL\\ExpandArrayParameters","type":"->","args":["*** sensitive parameter replaced ***"]},{"file":"/var/www/cloud/3rdparty/doctrine/dbal/src/SQL/Parser.php","line":96,"function":"Doctrine\\DBAL\\SQL\\{closure}","class":"Doctrine\\DBAL\\SQL\\Parser","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/cloud/3rdparty/doctrine/dbal/src/Connection.php","line":1692,"function":"parse","class":"Doctrine\\DBAL\\SQL\\Parser","type":"->","args":["SELECT * FROM `oc_news_folders` WHERE (user_id = :user_id) AND (deleted_at = 0)",{"__class__":"Doctrine\\DBAL\\ExpandArrayParameters"}]},{"file":"/var/www/cloud/3rdparty/doctrine/dbal/src/Connection.php","line":1024,"function":"expandArrayParameters","class":"Doctrine\\DBAL\\Connection","type":"->","args":["SELECT * FROM `oc_news_folders` WHERE (user_id = :user_id) AND (deleted_at = 0)",{":user_id":"anoymouserver"},[]]},{"file":"/var/www/cloud/lib/private/DB/Connection.php","line":221,"function":"executeQuery","class":"Doctrine\\DBAL\\Connection","type":"->","args":["SELECT * FROM `oc_news_folders` WHERE (user_id = :user_id) AND (deleted_at = 0)",{":user_id":"anoymouserver"},[],null]},{"file":"/var/www/cloud/3rdparty/doctrine/dbal/src/Query/QueryBuilder.php","line":210,"function":"executeQuery","class":"OC\\DB\\Connection","type":"->","args":["SELECT * FROM `oc_news_folders` WHERE (user_id = :user_id) AND (deleted_at = 0)",{":user_id":"anoymouserver"},[]]},{"file":"/var/www/cloud/lib/private/DB/QueryBuilder/QueryBuilder.php","line":256,"function":"execute","class":"Doctrine\\DBAL\\Query\\QueryBuilder","type":"->","args":[]},{"file":"/var/www/cloud/lib/public/AppFramework/Db/QBMapper.php","line":320,"function":"execute","class":"OC\\DB\\QueryBuilder\\QueryBuilder","type":"->","args":[]},{"file":"/var/www/cloud/apps/news/lib/Db/FolderMapperV2.php","line":57,"function":"findEntities","class":"OCP\\AppFramework\\Db\\QBMapper","type":"->","args":[{"__class__":"OC\\DB\\QueryBuilder\\QueryBuilder"}]},{"file":"/var/www/cloud/apps/news/lib/Service/FolderServiceV2.php","line":63,"function":"findAllFromUser","class":"OCA\\News\\Db\\FolderMapperV2","type":"->","args":["anoymouserver",[]]},{"file":"/var/www/cloud/apps/news/lib/Controller/FolderController.php","line":60,"function":"findAllForUser","class":"OCA\\News\\Service\\FolderServiceV2","type":"->","args":["anoymouserver"]},{"file":"/var/www/cloud/lib/private/AppFramework/Http/Dispatcher.php","line":218,"function":"index","class":"OCA\\News\\Controller\\FolderController","type":"->","args":[]},{"file":"/var/www/cloud/lib/private/AppFramework/Http/Dispatcher.php","line":127,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\News\\Controller\\FolderController"},"index"]},{"file":"/var/www/cloud/lib/private/AppFramework/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\News\\Controller\\FolderController"},"index"]},{"file":"/var/www/cloud/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\News\\Controller\\FolderController","index",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"news.folder.index"}]},{"file":"/var/www/cloud/lib/base.php","line":1002,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/news/folders"]},{"file":"/var/www/cloud/index.php","line":37,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/cloud/3rdparty/doctrine/dbal/src/ArrayParameters/Exception/MissingNamedParameter.php","Line":17,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:84.0) Gecko/20100101 Firefox/84.0","version":"21.0.0.12","id":"5ff9dbffeb0d5"}

Contents of Browser Error Console

Read http://ggnome.com/wiki/Using_The_Browser_Error_Console if you are unsure what to put here

Not relevant

@anoymouserver anoymouserver self-assigned this Jan 9, 2021
Grotax added a commit that referenced this issue Jan 12, 2021
Changed
- Remove outdated feed DB code
- add background & hover for entries
- Improve spacing of open articles in compact mode (#1017)

Fixed
- `MissingNamedParameter` exception after upgrading to NC 21 beta5 (#1030)

Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
mnassabain pushed a commit to Team-Forward/news that referenced this issue Mar 1, 2021
Changed
- Remove outdated feed DB code
- add background & hover for entries
- Improve spacing of open articles in compact mode (nextcloud#1017)

Fixed
- `MissingNamedParameter` exception after upgrading to NC 21 beta5 (nextcloud#1030)

Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
mnassabain pushed a commit to Team-Forward/news that referenced this issue Mar 1, 2021
Changed
- Remove outdated feed DB code
- add background & hover for entries
- Improve spacing of open articles in compact mode (nextcloud#1017)

Fixed
- `MissingNamedParameter` exception after upgrading to NC 21 beta5 (nextcloud#1030)

Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
mnassabain pushed a commit to Team-Forward/news that referenced this issue Mar 1, 2021
Changed
- Remove outdated feed DB code
- add background & hover for entries
- Improve spacing of open articles in compact mode (nextcloud#1017)

Fixed
- `MissingNamedParameter` exception after upgrading to NC 21 beta5 (nextcloud#1030)

Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
Neo11 pushed a commit to Neo11/news that referenced this issue May 28, 2022
Changed
- Remove outdated feed DB code
- add background & hover for entries
- Improve spacing of open articles in compact mode (nextcloud#1017)

Fixed
- `MissingNamedParameter` exception after upgrading to NC 21 beta5 (nextcloud#1030)

Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant