Forms Not Functioning After Recent Update

Forms Not Functioning After Recent Update

Sorry to hear you’re facing problems :slightly_frowning_face:

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:

Errors:

Caused by:

Error: Undefined constant OCA\Forms\Activity\ActivityConstants::TYPE_NEWSHAREDSUBMISSION at <>

  1. /var/www/nextcloud/lib/private/Activity/Manager.php line 289
    OCA\Forms\Activity\Settings\NewSharedSubmission->getIdentifier()
  2. /var/www/nextcloud/apps/activity/lib/UserSettings.php line 191
    OC\Activity\Manager->getSettings()
  3. /var/www/nextcloud/apps/activity/lib/Data.php line 207
    OCA\Activity\UserSettings->getNotificationTypes()
  4. /var/www/nextcloud/apps/activity/lib/Dashboard/ActivityWidget.php line 161
    OCA\Activity\Data->get()
  5. /var/www/nextcloud/apps/dashboard/lib/Controller/DashboardApiController.php line 134
    OCA\Activity\Dashboard\ActivityWidget->getItemsV2()
  6. /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 230
    OCA\Dashboard\Controller\DashboardApiController->getWidgetItemsV2()
  7. /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 137
    OC\AppFramework\Http\Dispatcher->executeController()
  8. /var/www/nextcloud/lib/private/AppFramework/App.php line 183
    OC\AppFramework\Http\Dispatcher->dispatch()
  9. /var/www/nextcloud/lib/private/Route/Router.php line 315
    OC\AppFramework\App::main()
  10. /var/www/nextcloud/ocs/v1.php line 64
    OC\Route\Router->match()
  11. /var/www/nextcloud/ocs/v2.php line 23
    require_once(“/var/www/nextcloud/ocs/v1.php”)

GET /ocs/v2.php/apps/dashboard/api/v2/widget-items?widgets%5B%5D=activity
from 87.122.50.188 by Admin at 2024-01-09T07:55:16+00:00

Or for longer, use three backticks above and below the code snippet:

other Errors:
1.
[no app in context] Fehler: BadFunctionCallException: submissionMessage is not a valid attribute at <<closure>>

 0. /var/www/nextcloud/lib/public/AppFramework/Db/Entity.php line 167
    OCP\AppFramework\Db\Entity->setter()
 1. /var/www/nextcloud/lib/public/AppFramework/Db/Entity.php line 75
    OCP\AppFramework\Db\Entity->__call()
 2. /var/www/nextcloud/lib/public/AppFramework/Db/QBMapper.php line 321
    OCP\AppFramework\Db\Entity::fromRow()
 3. /var/www/nextcloud/lib/public/AppFramework/Db/QBMapper.php line 361
    OCP\AppFramework\Db\QBMapper->mapRowToEntity()
 4. /var/www/nextcloud/apps/forms/lib/Db/FormMapper.php line 94
    OCP\AppFramework\Db\QBMapper->findEntity()
 5. /var/www/nextcloud/apps/forms/lib/Activity/Provider.php line 255
    OCA\Forms\Db\FormMapper->findByHash()
 6. /var/www/nextcloud/apps/forms/lib/Activity/Provider.php line 180
    OCA\Forms\Activity\Provider->getRichFormTitle()
 7. /var/www/nextcloud/apps/forms/lib/Activity/Provider.php line 105
    OCA\Forms\Activity\Provider->getRichParams()
 8. /var/www/nextcloud/apps/activity/lib/NotificationGenerator.php line 96
    OCA\Forms\Activity\Provider->parse()
 9. /var/www/nextcloud/apps/activity/lib/NotificationGenerator.php line 123
    OCA\Activity\NotificationGenerator->populateEvent()
10. /var/www/nextcloud/lib/private/Notification/Manager.php line 368
    OCA\Activity\NotificationGenerator->prepare()
11. /var/www/nextcloud/apps/notifications/lib/Controller/EndpointController.php line 108
    OC\Notification\Manager->prepare()
12. /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 230
    OCA\Notifications\Controller\EndpointController->listNotifications()
13. /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 137
    OC\AppFramework\Http\Dispatcher->executeController()
14. /var/www/nextcloud/lib/private/AppFramework/App.php line 183
    OC\AppFramework\Http\Dispatcher->dispatch()
15. /var/www/nextcloud/lib/private/Route/Router.php line 315
    OC\AppFramework\App::main()
16. /var/www/nextcloud/ocs/v1.php line 64
    OC\Route\Router->match()
17. /var/www/nextcloud/ocs/v2.php line 23
    require_once("/var/www/nextcloud/ocs/v1.php")

GET /ocs/v2.php/apps/notifications/api/v2/notifications?format=json
from 2.203.201.144 by ms at 2024-01-09T08:19:20+00:00

2.
[no app in context] Fehler: InvalidArgumentException: Cannot share with the share owner at <<closure>>

0. /var/www/nextcloud/apps/files_sharing/lib/Controller/ShareAPIController.php line 834
   OC\Share20\Manager->createShare("*** sensitive parameters replaced ***")
1. /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 230
   OCA\Files_Sharing\Controller\ShareAPIController->createShare("*** sensitive parameters replaced ***")
2. /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 137
   OC\AppFramework\Http\Dispatcher->executeController()
3. /var/www/nextcloud/lib/private/AppFramework/App.php line 183
   OC\AppFramework\Http\Dispatcher->dispatch()
4. /var/www/nextcloud/lib/private/Route/Router.php line 315
   OC\AppFramework\App::main()
5. /var/www/nextcloud/ocs/v1.php line 64
   OC\Route\Router->match()
6. /var/www/nextcloud/ocs/v2.php line 23
   require_once("/var/www/nextcloud/ocs/v1.php")

POST /ocs/v2.php/apps/files_sharing/api/v1/shares
from 2.203.201.144 by ms at 2024-01-09T08:36:25+00:00

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 :heart:

Nextcloud version (eg, 20.0.5): 27.1.2
Operating system and version (eg, Ubuntu 20.04): Linux 5.10.0-25-amd64 x86_64
Apache or nginx version (eg, Apache 2.4.25): Apache 2
PHP version (eg, 7.4): 8.1.23

The issue you are facing:
If i call the form site oder i call in admin panel the activity site i get this error:

Internal Server Error
The server could not complete the request.

If this issue persists, please forward the following technical details to your server administrator.

Additional details can be found in the server log.

Technical Details
Remote Address: 87.xxxx
Request ID: FSPKHoHJo9QUYVaXWUGt

Is this the first time you’ve seen this error? (Y/N):Y

Steps to replicate it:

  1. Call the Activity Site in Administration Panel
  2. Call the Form Site aus visitor

The output of your Nextcloud log in Admin > Logging:

Fehler	no app in context	BadFunctionCallException: submissionMessage is not a valid attribute	
2024-01-09T09:51:47+0100
Fehler	no app in context	BadFunctionCallException: submissionMessage is not a valid attribute	
2024-01-09T09:51:44+0100
Fehler	no app in context	BadFunctionCallException: submissionMessage is not a valid attribute	
2024-01-09T09:51:32+0100
Fehler	no app in context	BadFunctionCallException: submissionMessage is not a valid attribute	
2024-01-09T09:51:23+0100
Fehler	no app in context	BadFunctionCallException: submissionMessage is not a valid attribute	
2024-01-09T09:51:20+0100
Fehler	no app in context	BadFunctionCallException: submissionMessage is not a valid attribute	
2024-01-09T09:50:47+0100
Fehler	no app in context	BadFunctionCallException: submissionMessage is not a valid attribute	
2024-01-09T09:50:20+0100
Fehler	no app in context	BadFunctionCallException: submissionMessage is not a valid attribute	
2024-01-09T09:49:48+0100
Fehler	no app in context	BadFunctionCallException: submissionMessage is not a valid attribute	
2024-01-09T09:49:47+0100

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

PASTE HERE

The output of your Apache/nginx/system log in /var/log/____:

PASTE HERE

PASTE HERE


Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

PASTE HERE

I will paste more information later.

You probably have to wait some time or restart your web server. We saw a few errors like that in the past that were all related to some PHP caching…

1 Like

Thank you very much. That will be my first approach in the future :slight_smile: After “systemctl restart apache2” form works again.

2 Likes

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.