Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Error when opening collective: Could not fetch page trash: Internal Server Error #1431

Closed
manumitted opened this issue Aug 20, 2024 · 6 comments · Fixed by #1432 or #1439
Closed

Error when opening collective: Could not fetch page trash: Internal Server Error #1431

manumitted opened this issue Aug 20, 2024 · 6 comments · Fixed by #1432 or #1439
Assignees
Labels
bug Something isn't working needs info

Comments

@manumitted
Copy link

Describe the bug
There is an error box opened at the top of the web page when I open one of my collectives.

To Reproduce
Steps to reproduce the behavior:

  1. Click on the collective name.
  2. See error message "Could not fetch page trash: Internal Server Error"

Expected behavior
No error.

Screenshots
Not necessary, i think.

Server details:

  • Collectives app version: 2.14.0
  • Nextcloud version: 29.0.4
  • PHP Version: 8.2
  • Database: MariaDB 10.6

Client details:

  • OS: Windows, Ubuntu
  • Browser: Firefox, Opera
  • Browser version: latest
  • Device: desktop
I don't see a related log message, although there seems to be an unrelated message. Logs

Nextcloud log (data/nextcloud.log)

 Error Call to a member function getFullWidth() on null
Collectives App Error: Call to a member function getFullWidth() on null 

Browser log

@manumitted manumitted added the bug Something isn't working label Aug 20, 2024
@mejo-
Copy link
Member

mejo- commented Aug 20, 2024

Dear @manumitted, could you restart your webserver and see whether the issue persists?

@manumitted
Copy link
Author

Thanks. I tried a quick Apache restart, but the message still is displayed when going to this specific collective. I'll try a restart of the system tonight when it's not busy (if I remember).

@manumitted
Copy link
Author

I tried rebooting the server entirely, but no luck.

On the other hand, I have several other Nextcloud instances with Collectives, and none of them are showing this error. On the other hand, this is the most used Collectives, especially since there are multiple people editing. I wonder if it's just something specific about the collective on this instance. It doesn't seem to affect the operation at all, as far as I can tell. I'm not sure what it might indicate, though.

@ChristophWurst
Copy link
Member

ChristophWurst commented Aug 21, 2024

@mejo- it also happens for our 30 RC1 instance.

{
  "reqId": "pkhShuZw7GEqTzwI5OBb",
  "level": 3,
  "time": "2024-08-21T05:18:05+00:00",
  "remoteAddr": "2001:871:220:d07a:9678:46c3:e7b7:241f",
  "user": "christoph",
  "app": "collectives",
  "method": "GET",
  "url": "/apps/collectives/_api/12/_pages/trash",
  "message": "Collectives App Error: Call to a member function getFullWidth() on null",
  "userAgent": "Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0",
  "version": "30.0.0.8",
  "exception": {
    "Exception": "Error",
    "Message": "Call to a member function getFullWidth() on null",
    "Code": 0,
    "Trace": [
      {
        "file": "/var/www/nextcloud/apps/collectives/lib/Service/PageService.php",
        "line": 486,
        "function": "getTrashPageByFile",
        "class": "OCA\\Collectives\\Service\\PageService",
        "type": "->",
        "args": [
          [
            "OC\\Files\\Node\\File"
          ],
          "Talk room from outlook message.mp4",
          "1724156437"
        ]
      },
      {
        "file": "/var/www/nextcloud/apps/collectives/lib/Controller/PageTrashController.php",
        "line": 42,
        "function": "findAllTrash",
        "class": "OCA\\Collectives\\Service\\PageService",
        "type": "->",
        "args": [
          12,
          "christoph"
        ]
      },
      {
        "file": "/var/www/nextcloud/apps/collectives/lib/Controller/ErrorHelper.php",
        "line": 28,
        "function": "OCA\\Collectives\\Controller\\{closure}",
        "class": "OCA\\Collectives\\Controller\\PageTrashController",
        "type": "->",
        "args": [
          "*** sensitive parameters replaced ***"
        ]
      },
      {
        "file": "/var/www/nextcloud/apps/collectives/lib/Controller/PageTrashController.php",
        "line": 46,
        "function": "handleErrorResponse",
        "class": "OCA\\Collectives\\Controller\\PageTrashController",
        "type": "->",
        "args": [
          [
            "Closure"
          ],
          [
            "OC\\AppFramework\\ScopedPsrLogger"
          ]
        ]
      },
      {
        "file": "/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
        "line": 208,
        "function": "index",
        "class": "OCA\\Collectives\\Controller\\PageTrashController",
        "type": "->",
        "args": [
          12
        ]
      },
      {
        "file": "/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
        "line": 114,
        "function": "executeController",
        "class": "OC\\AppFramework\\Http\\Dispatcher",
        "type": "->",
        "args": [
          [
            "OCA\\Collectives\\Controller\\PageTrashController"
          ],
          "index"
        ]
      },
      {
        "file": "/var/www/nextcloud/lib/private/AppFramework/App.php",
        "line": 161,
        "function": "dispatch",
        "class": "OC\\AppFramework\\Http\\Dispatcher",
        "type": "->",
        "args": [
          [
            "OCA\\Collectives\\Controller\\PageTrashController"
          ],
          "index"
        ]
      },
      {
        "file": "/var/www/nextcloud/lib/private/Route/Router.php",
        "line": 309,
        "function": "main",
        "class": "OC\\AppFramework\\App",
        "type": "::",
        "args": [
          "OCA\\Collectives\\Controller\\PageTrashController",
          "index",
          [
            "OC\\AppFramework\\DependencyInjection\\DIContainer"
          ],
          [
            "12",
            "collectives.pagetrash.index"
          ]
        ]
      },
      {
        "file": "/var/www/nextcloud/lib/base.php",
        "line": 996,
        "function": "match",
        "class": "OC\\Route\\Router",
        "type": "->",
        "args": [
          "/apps/collectives/_api/12/_pages/trash"
        ]
      },
      {
        "file": "/var/www/nextcloud/index.php",
        "line": 24,
        "function": "handleRequest",
        "class": "OC",
        "type": "::",
        "args": []
      }
    ],
    "File": "/var/www/nextcloud/apps/collectives/lib/Service/PageService.php",
    "Line": 239,
    "message": "Collectives App Error: Call to a member function getFullWidth() on null",
    "exception": [],
    "CustomMessage": "Collectives App Error: Call to a member function getFullWidth() on null"
  },
  "id": "66c5789bd2885"
}

@juliusknorr
Copy link
Member

$page->getFullWidth());

mejo- added a commit that referenced this issue Aug 21, 2024
Fixes: #1431

Signed-off-by: Jonas <jonas@freesources.org>
@mejo- mejo- self-assigned this Aug 21, 2024
@github-project-automation github-project-automation bot moved this to 🧭 Planning evaluation (don't pick) in 📝 Office team Aug 21, 2024
@mejo- mejo- moved this from 🧭 Planning evaluation (don't pick) to 🏗️ In progress in 📝 Office team Aug 21, 2024
mejo- added a commit that referenced this issue Aug 21, 2024
Fixes: #1431

Signed-off-by: Jonas <jonas@freesources.org>
@mejo- mejo- closed this as completed in e955298 Aug 21, 2024
@github-project-automation github-project-automation bot moved this from 🏗️ In progress to ☑️ Done in 📝 Office team Aug 21, 2024
@manumitted
Copy link
Author

From version 2.14.1, the following log message occurs, and the trash message still exists:

 TypeError OCA\Collectives\Model\PageInfo::fromFile(): Argument #7 ($fullWidth) must be of type bool, null given, called in /var/www/nextcloud/apps/collectives/lib/Service/PageService.php on line 233
Collectives App Error: OCA\Collectives\Model\PageInfo::fromFile(): Argument #7 ($fullWidth) must be of type bool, null given, called in /var/www/nextcloud/apps/collectives/lib/Service/PageService.php on line 233 

I think the patch kicked the can down the road a bit, but not all the way?

mejo- added a commit that referenced this issue Aug 23, 2024
Fixes: #1431

Signed-off-by: Jonas <jonas@freesources.org>
mejo- added a commit that referenced this issue Aug 23, 2024
Fixes: #1431

Signed-off-by: Jonas <jonas@freesources.org>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working needs info
Projects
Archived in project
4 participants