Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Support for Nextcloud 29 & 30 #1889

Closed
NatoBoram opened this issue Jun 26, 2024 · 11 comments
Closed

Support for Nextcloud 29 & 30 #1889

NatoBoram opened this issue Jun 26, 2024 · 11 comments
Labels
enhancement New feature or request

Comments

@NatoBoram
Copy link

A tracking issue for people who want to be notified when this will be updated.

@NatoBoram NatoBoram added the enhancement New feature or request label Jun 26, 2024
@AndyScherzinger AndyScherzinger changed the title Support for Nextcloud 29 Support for Nextcloud 29 & 30 Sep 8, 2024
@GVLLIFESTYLE
Copy link

GVLLIFESTYLE commented Sep 19, 2024

I need that as well.
I have social configured at NC 30 and it simply does not work.
When I click on profile it spins like forever and I cannot find my instance at any fediverse platform.
My nextcloud runs under https://www.mydomain.com/nextcloud
apache2
ubuntu LTS x64
Social I tried was latest release and build directly from git (0.8.0)

@paulvt
Copy link

paulvt commented Sep 21, 2024

The not being able to view profiles is already filed as #1883 and an issue since NC 28.

@GVLLIFESTYLE
Copy link

Still another issue:
I cannot find my instance at any fediverse platform at all.
And I cannot really interact with other fediverse platforms from social without any issues.
Maybe its related to the fact that my nextcloud is under /nextcloud/...

@noci2012
Copy link

Crash in webfinger request

{
  "reqId": "IhilB622InmPCwv23SD0",
  "level": 4,
  "time": "2024-09-24T13:07:15+00:00",
  "remoteAddr": "192.168.7.117",
  "user": "--",
  "app": "social",
  "method": "GET",
  "url": "/apps/logreader/api/poll?lastReqId=RkpiDP9XvTgAf96Sv9l7",
  "message": "Error during app service registration: Call to undefined method OC\\Server::getEventDispatcher()",
  "userAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36",
  "version": "30.0.0.14",
  "exception": {
    "Exception": "Error",
    "Message": "Call to undefined method OC\\Server::getEventDispatcher()",
    "Code": 0,
    "Trace": [
      {
        "file": "/var/www/nextcloud/apps/social/lib/AppInfo/Application.php",
        "line": 71,
        "function": "registerDeprecatedListener",
        "class": "OCA\\Social\\AppInfo\\Application",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php",
        "line": 99,
        "function": "register",
        "class": "OCA\\Social\\AppInfo\\Application",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php",
        "line": 48,
        "function": "registerApps",
        "class": "OC\\AppFramework\\Bootstrap\\Coordinator",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/base.php",
        "line": 657,
        "function": "runInitialRegistration",
        "class": "OC\\AppFramework\\Bootstrap\\Coordinator",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/base.php",
        "line": 1132,
        "function": "init",
        "class": "OC",
        "type": "::"
      },
      {
        "file": "/var/www/nextcloud/index.php",
        "line": 22,
        "args": [
          "/var/www/nextcloud/lib/base.php"
        ],
        "function": "require_once"
      }
    ],
    "File": "/var/www/nextcloud/apps/social/lib/AppInfo/Application.php",
    "Line": 82,
    "message": "Error during app service registration: Call to undefined method OC\\Server::getEventDispatcher()",
    "exception": [],
    "CustomMessage": "Error during app service registration: Call to undefined method OC\\Server::getEventDispatcher()"
  },
  "id": "66f2b98370f2a"
}

@GVLLIFESTYLE
Copy link

Is this planed, for when?

@JimmyKater
Copy link

referring to the app-page on apps.nextcloud.com there's a version (0.7.0) available fpr NC 29 and NC30.
look here: https://apps.nextcloud.com/apps/social/releases?platform=30#30

And yes, you can install it. But at least with my server (NC 29.0.8./AIO) it throws the wellknown "webfinger misconf"-error

@paulvt
Copy link

paulvt commented Nov 5, 2024

referring to the app-page on apps.nextcloud.com there's a version (0.7.0) available fpr NC 29 and NC30. look here: https://apps.nextcloud.com/apps/social/releases?platform=30#30

And yes, you can install it. But at least with my server (NC 29.0.8./AIO) it throws the wellknown "webfinger misconf"-error

This is issue #1888.
I also have the error, but I do get new messages for the people/organisations I follow. So it is somewhat functional.
The "cannot show profile" issue is also still there (see issue #1883).

@JimmyKater
Copy link

@paulvt I know.

but I think 'there's a version (0.7.0) available for NC 29 and NC30.'
would solve this thread, though

@noci2012
Copy link

noci2012 commented Nov 10, 2024

It is available, but still fails to work as advertised.
(it is choking on missing database tables).

DbalException
An exception occurred while executing a query: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'nextcloud.oc_social_actor' doesn't exist

Both after upgrade and removal and reinstall, just opening the app).

@joshtrichards
Copy link
Member

joshtrichards commented Nov 21, 2024

Fixed in 20d668e (released as 0.7.0 for v29 and v30). Includes a fix for:

Call to undefined method OC\\Server::getEventDispatcher() (which is covered in #1864)

The other matters are covered elsewhere.

The Exception parse_str(): Argument #1 ($string) must be of type string, null given in file '/opt/nextcloud/apps/social/lib/WellKnown/WebfingerHandler.php matter is covered in #1888. Commented further on that matter there.

The webfinger is misconfigured matter is a mixture of social not handling missing required parameters correctly (basically #1888) and the an interaction with the setup checks in server which are designed for a stock install w/o social (based on a cursory look; will need a closer look to be certain).

@noci2012 Your db error is unrelated to any of this. That table has existed since 2022 so no idea why you don't have it. No one else has reported a similar problem. Wild guess: you had some of those old social_3 tables (see #1871) and maybe accidentally dropped the real tables? May want to post on the help forum: https://help.nextcloud.com about that.

@noci2012
Copy link

noci2012 commented Jan 9, 2025

wrt. db tables...

I installed a fresh NEW nextcloud, without tables & social installed social... then there are still no tables.
none at all. neither old nor new ones.

BEFORE attempting to install remove all items in the db table that tracks what is installed.
Appearantly there is a defect in the cleanup of applications that it doesn't clean the history of old upgrades (went back to NC 18 in this case for others even older) when removing an application.
==> no upgrades on tables etc.

After this Social still doesn't work... at least the tables got created.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants