You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 do not fill out all items in the issue template.
Explain the Problem
When I try to go to the settings page for News (/settings/admin/news) I get an error and this is what shows up in the log at /settings/admin/logging:
Contents of Error Log
**Exception**: OCP\BackgroundJob\TimedJob::setInterval(): Argument #1 ($seconds) must be of type int, string given, called in /var/www/html/custom_apps/news/lib/Cron/UpdaterJob.php on line 55 in file '/var/www/html/lib/public/BackgroundJob/TimedJob.php' line 49
- /var/www/html/lib/private/AppFramework/App.php - line 183:OC\AppFramework\Http\Dispatcher->dispatch([ "OCA\\Sett ... "], "index")
- /var/www/html/lib/private/Route/Router.php - line 315:OC\AppFramework\App::main("OCA\\Settin ... r", "index", [ "OC\\AppFr ... "], [ "news","se ... "])
- /var/www/html/lib/base.php - line 1060:OC\Route\Router->match("/settings/admin/news")
- /var/www/html/index.php - line 36:OC::handleRequest()
**Caused by TypeError**: OCP\BackgroundJob\TimedJob::setInterval(): Argument #1 ($seconds) must be of type int, string given, called in /var/www/html/custom_apps/news/lib/Cron/UpdaterJob.php on line 55
- /var/www/html/custom_apps/news/lib/Cron/UpdaterJob.php - line 55:OCP\BackgroundJob\TimedJob->setInterval("")
- <<closure>>OCA\News\Cron\UpdaterJob->__construct([ "OC\\AppFr ... "], [ "OC\\AllConfig"], [ "OCA\\News ... "], [ "OCA\\News ... "])
- /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php - line 116:ReflectionClass->newInstanceArgs([ [ "OC\\App ... ]])
- /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php - line 124:OC\AppFramework\Utility\SimpleContainer->buildClass([ "Reflectio ... "])
- /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php - line 142:OC\AppFramework\Utility\SimpleContainer->resolve("OCA\\News\\Cron\\UpdaterJob")
- /var/www/html/lib/private/AppFramework/DependencyInjection/DIContainer.php - line 493:OC\AppFramework\Utility\SimpleContainer->query("OCA\\News\\Cron\\UpdaterJob")
- /var/www/html/lib/private/ServerContainer.php - line 155:OC\AppFramework\DependencyInjection\DIContainer->queryNoFallback("OCA\\News\\Cron\\UpdaterJob")
- /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php - line 65:OC\ServerContainer->query("OCA\\News\\Cron\\UpdaterJob")
- /var/www/html/lib/public/Server.php - line 55:OC\AppFramework\Utility\SimpleContainer->get("OCA\\News\\Cron\\UpdaterJob")
- /var/www/html/lib/private/BackgroundJob/JobList.php - line 300:OCP\Server::get("OCA\\News\\Cron\\UpdaterJob")
- /var/www/html/lib/private/BackgroundJob/JobList.php - line 192:OC\BackgroundJob\JobList->buildJob([ 11371,"OCA ... "])
- <<closure>>OC\BackgroundJob\JobList->getJobsIterator("OCA\\News\\Cron\\UpdaterJob", 1, 0)
- /var/www/html/custom_apps/news/lib/Service/StatusService.php - line 99:Generator->current()
- /var/www/html/custom_apps/news/lib/Settings/AdminSettings.php - line 42:OCA\News\Service\StatusService->getUpdateTime()
- /var/www/html/apps/settings/lib/Controller/CommonSettingsTrait.php - line 129:OCA\News\Settings\AdminSettings->getForm()
- /var/www/html/apps/settings/lib/Controller/AdminSettingsController.php - line 83:OCA\Settings\Controller\AdminSettingsController->formatSettings([ [ [ "OCA\\ ... ]])
- /var/www/html/apps/settings/lib/Controller/CommonSettingsTrait.php - line 149:OCA\Settings\Controller\AdminSettingsController->getSettings("news")
- /var/www/html/apps/settings/lib/Controller/AdminSettingsController.php - line 68:OCA\Settings\Controller\AdminSettingsController->getIndexResponse("admin", "news")
- /var/www/html/lib/private/AppFramework/Http/Dispatcher.php - line 230:OCA\Settings\Controller\AdminSettingsController->index("news")
- /var/www/html/lib/private/AppFramework/Http/Dispatcher.php - line 137:OC\AppFramework\Http\Dispatcher->executeController([ "OCA\\Sett ... "], "index")
- /var/www/html/lib/private/AppFramework/App.php - line 183:OC\AppFramework\Http\Dispatcher->dispatch([ "OCA\\Sett ... "], "index")
- /var/www/html/lib/private/Route/Router.php - line 315:OC\AppFramework\App::main("OCA\\Settin ... r", "index", [ "OC\\AppFr ... "], [ "news","se ... "])
- /var/www/html/lib/base.php - line 1060:OC\Route\Router->match("/settings/admin/news")/var/www/html/index.php - line 36:OC::handleRequest()
In addition, my feed has not been fetching new posts lately. So, since the settings page is out of commission, I need to know how I can edit this value to something valid. Also, this should be validated and not allowed to happen in the first place.
Steps to Reproduce
Explain what you did to encounter the issue
I believe this started because the last time I was on this settings page some copy/paste or auto-fill mistake happened and filled the cron interval field with a non-valid value.
After saving that non-valid value, just visit /settings/admin/news to experience error
Visit /apps/news every so often and you'll see no feeds are being updated
System Information
News app version: 21.2.0
Nextcloud version: 26.0.3
Cron type: system cron (I'm pretty sure)
PHP version: 8.1.21
Database and version: PostgreSQL 15.3
Browser and version: Multiple Browsers
OS and version: Win 10 and Win 11 (Using AIO Docker setup)
Contents of nextcloud/data/nextcloud.log
/* Not sure how to get these contents. That's a relative path that I don't know the root of and I have around a dozen containers running and I'm not sure which one to look at.*/
Contents of Browser Error Console
Read http://ggnome.com/wiki/Using_The_Browser_Error_Console if you are unsure what to put here
NA
The text was updated successfully, but these errors were encountered:
I assume it's the same issue as #2289. The solution would be to correct the value manually in the database.
However the underlying problem is that the field allows strings at all and also writes them to the database, and that the field seems to be recognised as an autofill.
I checked this, I think the best option would be to check in the frontend if the field is valid.
Ideally you would do that for all fields.
The data that is entered there gets directly send to a nextcloud api as far as I understand.
And there it is not checked for type. I think all settings are stored as strings in the DB.
IMPORTANT
Read and tick the following checkbox after you have created the issue or place an x inside the brackets ;)
Explain the Problem
When I try to go to the settings page for News (/settings/admin/news) I get an error and this is what shows up in the log at /settings/admin/logging:
Contents of Error Log
In addition, my feed has not been fetching new posts lately. So, since the settings page is out of commission, I need to know how I can edit this value to something valid. Also, this should be validated and not allowed to happen in the first place.
Steps to Reproduce
Explain what you did to encounter the issue
System Information
Contents of nextcloud/data/nextcloud.log
Contents of Browser Error Console
Read http://ggnome.com/wiki/Using_The_Browser_Error_Console if you are unsure what to put hereThe text was updated successfully, but these errors were encountered: