# NC 21 Activity - All Activities does not work

**URL:** <https://help.nextcloud.com/t/nc-21-activity-all-activities-does-not-work/109870>\
**Category:** ℹ️ Support\
**Created:** [March 4, 2021, 11:33am UTC](https://help.nextcloud.com/t/nc-21-activity-all-activities-does-not-work/109870 "2021-03-04T11:33:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nc\_user\_210304](https://help.nextcloud.com/letter_avatar/nc_user_210304/32/6_449c533f586939b6e5f246632a46421f.png) [@nc\_user\_210304](https://help.nextcloud.com/u/nc_user_210304)\
**Post date:** [March 4, 2021, 11:33am UTC](https://help.nextcloud.com/t/nc-21-activity-all-activities-does-not-work/109870/1 "2021-03-04T11:33:03Z")

</div>

Nextcloud version 21.0.0  
Operating system and version FreeBSD 11.4  
Apache or nginx version Apache 2.4.46  
PHP version 7.4.15

The issue you are facing:

Is this the first time you’ve seen this error? Y:

Steps to replicate it:

1. Install NC 21
2. Select Activity app - displaying rotating circle with no result

The output of your Nextcloud log in Admin \> Logging:

```auto
{"reqId":"oAM5ppLpoaCr16465kie","level":3,"time":"2021-03-04T11:29:11+00:00","remoteAddr":"192.168.65.32","user":"0000","app":"no app in context","method":"GET","url":"/ocs/v2.php/apps/activity/api/v2/activity/all?format=json&previews=true&since=0","message":{"Exception":"Exception","Message":"Argument 1 passed to OCA\\Activity\\Controller\\APIv2Controller::getPreviewLink() must be of the type string, bool given, called in /usr/local/www/nextcloud/apps-pkg/activity/lib/Controller/APIv2Controller.php on line 398","Code":0,"Trace":[{"file":"/usr/local/www/nextcloud/lib/private/AppFramework/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/usr/local/www/nextcloud/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/usr/local/www/nextcloud/ocs/v1.php","line":63,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/usr/local/www/nextcloud/ocs/v2.php","line":24,"args":["/usr/local/www/nextcloud/ocs/v1.php"],"function":"require_once"}],"File":"/usr/local/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","Line":159,"Previous":{"Exception":"TypeError","Message":"Argument 1 passed to OCA\\Activity\\Controller\\APIv2Controller::getPreviewLink() must be of the type string, bool given, called in /usr/local/www/nextcloud/apps-pkg/activity/lib/Controller/APIv2Controller.php on line 398","Code":0,"Trace":[{"file":"/usr/local/www/nextcloud/apps-pkg/activity/lib/Controller/APIv2Controller.php","line":398,"function":"getPreviewLink","class":"OCA\\Activity\\Controller\\APIv2Controller","type":"->"},{"file":"/usr/local/www/nextcloud/apps-pkg/activity/lib/Controller/APIv2Controller.php","line":356,"function":"getPreviewFromPath","class":"OCA\\Activity\\Controller\\APIv2Controller","type":"->"},{"file":"/usr/local/www/nextcloud/apps-pkg/activity/lib/Controller/APIv2Controller.php","line":304,"function":"getPreview","class":"OCA\\Activity\\Controller\\APIv2Controller","type":"->"},{"file":"/usr/local/www/nextcloud/apps-pkg/activity/lib/Controller/APIv2Controller.php","line":209,"function":"get","class":"OCA\\Activity\\Controller\\APIv2Controller","type":"->"},{"file":"/usr/local/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":218,"function":"getFilter","class":"OCA\\Activity\\Controller\\APIv2Controller","type":"->"},{"file":"/usr/local/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":127,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/usr/local/www/nextcloud/lib/private/AppFramework/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/usr/local/www/nextcloud/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/usr/local/www/nextcloud/ocs/v1.php","line":63,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/usr/local/www/nextcloud/ocs/v2.php","line":24,"args":["/usr/local/www/nextcloud/ocs/v1.php"],"function":"require_once"}],"File":"/usr/local/www/nextcloud/apps-pkg/activity/lib/Controller/APIv2Controller.php","Line":416},"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Windows NT 10.1; rv:52.0) Gecko/20100101 Firefox/52.0","version":"21.0.0.18","id":"6040c491865b4"}

```

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

```auto
<?php
$CONFIG = array (
  'apps_paths' => 
  array (
    0 => 
    array (
      'path' => '/usr/local/www/nextcloud/apps',
      'url' => '/apps',
      'writable' => true,
    ),
    1 => 
    array (
      'path' => '/usr/local/www/nextcloud/apps-pkg',
      'url' => '/apps-pkg',
      'writable' => false,
    ),
  ),
  'logfile' => '/var/log/nextcloud/nextcloud.log',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => '/var/run/redis/redis.sock',
    'port' => 0,
    'dbindex' => 0,
  ),
  'instanceid' => ' *************',
  'passwordsalt' => ' *************',
  'secret' => ' **************',
  'trusted_domains' => 
  array (
    0 => '*',
  ),
  'datadirectory' => '/data/nextcloud',
  'dbtype' => 'mysql',
  'version' => '21.0.0.18',
  'overwrite.cli.url' => 'https://nc21. *************',
  'dbname' => 'NC21TEST',
  'dbhost' => 'localhost:/tmp/mysql.sock',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'oc_00001',
  'dbpassword' => ' **************************',
  'installed' => true,
  'has_internet_connection' => false,
  'updatechecker' => false,
  'appstoreenabled' => false,
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_send_plaintext_only' => true,
  'trusted_proxies' => 
  array (
    0 => '192.168.68.0/24',
  ),
  'overwriteprotocol' => 'https',
  'overwritecondaddr' => '^192\\.168\\.68\\.[0-9]+$',
  'log_rotate_size' => 67108864,
  'ldapIgnoreNamingRules' => false,
  'ldapProviderFactory' => 'OCA\\User_LDAP\\LDAPProviderFactory',
  'enable_previews' => false,
  'trashbin_retention_obligation' => 'auto,5',
  'logtimezone' => 'UTC',
  'log_query' => false,
  'loglevel' => 1,
  'maintenance' => false,
  'filesystem_check_changes' => 1,
  'upgrade.disable-web' => true,
  'simpleSignUpLink.shown' => false,
  'theme' => '',
  'skeletondirectory' => '',
  'data-fingerprint' => ' ********************',
  'defaultapp' => 'files',
); 

```

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 13, 2024, 8:41am UTC](https://help.nextcloud.com/t/nc-21-activity-all-activities-does-not-work/109870/2 "2024-12-13T08:41:47Z")

</div>



---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 13, 2024, 8:41am UTC](https://help.nextcloud.com/t/nc-21-activity-all-activities-does-not-work/109870/3 "2024-12-13T08:41:49Z")

</div>


