Support intro
Sorry to hear you’re facing problems
help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.
In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:
example
Or for longer, use three backticks above and below the code snippet:
longer
example
here
Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can
Nextcloud version (eg, 20.0.5): Nextcloud Hub 3 (25.0.1)
Operating system and version (eg, Ubuntu 20.04): Debian 11 bullseye - up to date
Apache or nginx version (eg, Apache 2.4.25): nginx 1.18.0-6.1+deb11u3
PHP version (eg, 7.4): 7.4 ... 2:7.4+76
I had a fatal crash on my old server and was forced to urgently move everything to a new server. The above describes the situation on the new server. As far as I know, the environment was identical on the old server because I’m in the habit of keeping everything up-to-date.
I rsynced the web code from the old server to the new server and double checked it. I restored the data directory from the most recent backup. I also restored the mysql db from the same backup.
Now I am getting type errors that I wasn’t getting on the old server. It’s weird that 2 different apps are both giving type errors. Almost like different versions of php, but I’m sure they were the same.
The details about the errors are below. The real questions:
- How can I fix this?
… or … - Is there a maintenance tool that forces the database and the data into alignment
… or … - Is it possible to unload the data without using php, and then reloading it?
— details about the errors follow —
The issue you are facing:
-
The Administration home page
settings/admin/overview
is causing an Internal Server Error.
The error = Exception: json_decode() expects parameter 1 to be string, bool given in file ‘/var/www/nextcloud/lib/private/IntegrityCheck/Checker.php’ line 443 -
Webdav to the Deck App causes an Internal Server Error.
The error = TypeError: Return value of OCA\Deck\Cache\AttachmentCacheHelper::getAttachmentCount() must be of the type int or null, bool returned
Is this the first time you’ve seen this error? (Y/N): Yes
Steps to replicate it: Those 2 pages do the same thing every time.
The output of your Nextcloud log in Admin > Logging:
For the settings/admin page error, the error log is:
Error index Exception: json_decode() expects parameter 1 to be string, bool given in file '/var/www/nextcloud/lib/private/IntegrityCheck/Checker.php' line 443
/var/www/nextcloud/lib/private/AppFramework/App.php - line 172:
OC\AppFramework\Http\Dispatcher->dispatch()
/var/www/nextcloud/lib/private/Route/Router.php - line 298:
OC\AppFramework\App::main()
/var/www/nextcloud/lib/base.php - line 1047:
OC\Route\Router->match()
/var/www/nextcloud/index.php - line 36:
OC::handleRequest()
Caused by TypeError: json_decode() expects parameter 1 to be string, bool given
/var/www/nextcloud/lib/private/IntegrityCheck/Checker.php - line 443:
json_decode()
/var/www/nextcloud/lib/private/IntegrityCheck/Checker.php - line 429:
OC\IntegrityCheck\Checker->getResults()
/var/www/nextcloud/apps/settings/lib/Controller/CheckSetupController.php - line 878:
OC\IntegrityCheck\Checker->hasPassedCheck()
/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 225:
OCA\Settings\Controller\CheckSetupController->check()
/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 133:
OC\AppFramework\Http\Dispatcher->executeController()
/var/www/nextcloud/lib/private/AppFramework/App.php - line 172:
OC\AppFramework\Http\Dispatcher->dispatch()
/var/www/nextcloud/lib/private/Route/Router.php - line 298:
OC\AppFramework\App::main()
/var/www/nextcloud/lib/base.php - line 1047:
OC\Route\Router->match()
/var/www/nextcloud/index.php - line 36:
OC::handleRequest()
For the Deck App error, the error log is:
Error webdav TypeError: Return value of OCA\Deck\Cache\AttachmentCacheHelper::getAttachmentCount() must be of the type int or null, bool returned
/var/www/nextcloud/apps/deck/lib/Service/AttachmentService.php - line 170:
OCA\Deck\Cache\AttachmentCacheHelper->getAttachmentCount()
/var/www/nextcloud/apps/deck/lib/Service/CardService.php - line 122:
OCA\Deck\Service\AttachmentService->count()
/var/www/nextcloud/apps/deck/lib/Service/CardService.php - line 178:
OCA\Deck\Service\CardService->enrich()
/var/www/nextcloud/apps/deck/lib/DAV/DeckCalendarBackend.php - line 85:
OCA\Deck\Service\CardService->findCalendarEntries()
/var/www/nextcloud/apps/deck/lib/DAV/Calendar.php - line 151:
OCA\Deck\DAV\DeckCalendarBackend->getChildren()
/var/www/nextcloud/apps/deck/lib/DAV/Calendar.php - line 134:
OCA\Deck\DAV\Calendar->getBackendChildren()
/var/www/nextcloud/apps/deck/lib/DAV/Calendar.php - line 89:
OCA\Deck\DAV\Calendar->getChildren()
/var/www/nextcloud/3rdparty/sabre/dav/lib/CalDAV/Plugin.php - line 598:
OCA\Deck\DAV\Calendar->calendarQuery()
/var/www/nextcloud/3rdparty/sabre/dav/lib/CalDAV/Plugin.php - line 258:
Sabre\CalDAV\Plugin->calendarQueryReport()
/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php - line 89:
Sabre\CalDAV\Plugin->report()
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php - line 690:
Sabre\DAV\Server->emit()
/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php - line 89:
Sabre\DAV\CorePlugin->httpReport()
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 472:
Sabre\DAV\Server->emit()
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 253:
Sabre\DAV\Server->invokeMethod()
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 321:
Sabre\DAV\Server->start()
/var/www/nextcloud/apps/dav/lib/Server.php - line 360:
Sabre\DAV\Server->exec()
/var/www/nextcloud/apps/dav/appinfo/v2/remote.php - line 35:
OCA\DAV\Server->exec()
/var/www/nextcloud/remote.php - line 171:
require_once("/var/www/ne ... p")
2022-12-15T18:56:27-0600
Error webdav TypeError: Return value of OCA\Deck\Cache\AttachmentCacheHelper::getAttachmentCount() must be of the type int or null, bool returned
2022-12-15T18:56:23-0600
Error webdav TypeError: Return value of OCA\Deck\Cache\AttachmentCacheHelper::getAttachmentCount() must be of the type int or null, bool returned
2022-12-15T18:56:20-0600
Error webdav TypeError: Return value of OCA\Deck\Cache\AttachmentCacheHelper::getAttachmentCount() must be of the type int or null, bool returned
2022-12-15T18:56:16-0600
Error webdav TypeError: Return value of OCA\Deck\Cache\AttachmentCacheHelper::getAttachmentCount() must be of the type int or null, bool returned
2022-12-15T18:46:25-0600
Error webdav TypeError: Return value of OCA\Deck\Cache\AttachmentCacheHelper::getAttachmentCount() must be of the type int or null, bool returned
The output of your CONFIG.PHP file in /path/to/nextcloud
(make sure you remove any
?php
$CONFIG = array (
'instanceid' => '12345',
'passwordsalt' => 'GxCzulhXOi',
'secret' => 'DFohBWY2',
'trusted_domains' =>
array (
0 => 'nextcloud.something.com',
),
'datadirectory' => '/data/nextcloud-data-store',
'dbtype' => 'mysql',
'version' => '25.0.1.1',
'overwrite.cli.url' => 'https://nextcloud.something.com',
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'user',
'dbpassword' => 'password',
'installed' => true,
'maintenance' => false,
'default_phone_region' => 'US',
'memcache.distributed' => '\\OC\\Memcache\\Memcached',
'app.mail.smtp.timeout' => 60,
'app_install_overwrite' =>
array (
0 => 'cookbook',
1 => 'bookmarks',
2 => 'bruteforcesettings',
3 => 'richdocuments',
),
'theme' => '',
'loglevel' => 2,
'share_folder' => 'shared_with_me',
'versions_retention_obligation' => 'auto, 7',
'mail_from_address' => 'badelf',
'mail_smtpmode' => 'smtp',
'mail_sendmailmode' => 'smtp',
'mail_domain' => 'something.com',
'mail_smtpauth' => 1,
'mail_smtphost' => 'localhost',
'mail_smtpport' => '587',
'mail_smtpname' => 'badelf@something.com',
'mail_smtppassword' => 'password',
'updater.secret' => 'ZiN2rFWP9mHjb',
);