MarcelRobitaille / nextcloud_google_synchronization

🇬 Google integration into Nextcloud
GNU Affero General Public License v3.0
21 stars 2 forks source link

<div id="nojavascript"> When trying to Sync Google Calendars #14

Closed schobernoise closed 4 months ago

schobernoise commented 1 year ago

Hey there, I just managed to connect my google account with my nextcloud instance (Had to switch on all the correct APIs in the google console). Importing Claendars works fine, but when I hit "Sync Calendar" I get an html-error message:

Failed to register background job:

Nextcloud

<div id="nojavascript">
<div>
Diese Anwendung benötigt JavaScript zum ordnungsgemäßen Betrieb. Bitte <a href="https://www.enable-javascript.com/" target="_blank" rel="noreferrer noopener">aktivieren Sie JavaScript</a> und laden Sie die Seite neu. </div>
</div>

image

This is the case with all of my google calendars.

ops99 commented 11 months ago

me to

Rafose commented 10 months ago

Hi, I also have such a problem only that no calendar was synchronized, did you manage to solve it?

kyfehr commented 9 months ago

I too am experiencing this error. Have not been able to fix it.

MarcelRobitaille commented 9 months ago

Hi everyone. Sorry I haven't been around. For some reason, even though I own this fork, it was not set up to send me notifications on issues and PRs. Sorry about that! I've signed up now.

@schobernoise Could you please let me know:

kyfehr commented 9 months ago

@MarcelRobitaille

Nextcloud version: 28.0.2 Calendar: 4.6.5 Extension: 1.0.9

kyfehr commented 9 months ago

This is the error that i get in the log when trying to run the sync: (replaced identifying info with HIDDEN)


Method OCA\Google\Controller\GoogleAPIController::registerSyncCalendar() does not exist
/var/www/html/lib/private/AppFramework/Utility/ControllerMethodReflector.php
line 51
ReflectionMethod->__construct(
  [
    "OCA\\Google\\Controller\\GoogleAPIController"
  ],
  "registerSyncCalendar"
)
/var/www/html/lib/private/AppFramework/Http/Dispatcher.php
line 127
OC\AppFramework\Utility\ControllerMethodReflector->reflect(
  [
    "OCA\\Google\\Controller\\GoogleAPIController"
  ],
  "registerSyncCalendar"
)
/var/www/html/lib/private/AppFramework/App.php
line 184
OC\AppFramework\Http\Dispatcher->dispatch(
  [
    "OCA\\Google\\Controller\\GoogleAPIController"
  ],
  "registerSyncCalendar"
)
/var/www/html/lib/private/Route/Router.php
line 315
OC\AppFramework\App::main(
  "OCA\\Google\\Controller\\GoogleAPIController",
  "registerSyncCalendar",
  [
    "OC\\AppFramework\\DependencyInjection\\DIContainer"
  ],
  [
    "google_synchronization.googleAPI.registerSyncCalendar"
  ]
)
/var/www/html/lib/base.php
line 1069
OC\Route\Router->match(
  "/apps/google_synchronization/sync-calendar"
)
/var/www/html/index.php
line 39
OC::handleRequest()`

`{
  "reqId": "HIDDEN",
  "level": 3,
  "time": "2024-02-18T10:31:08-07:00",
  "remoteAddr": "HIDDEN",
  "user": "HIDDEN",
  "app": "index",
  "method": "GET",
  "url": "/apps/google_synchronization/sync-calendar?calId=HIDDEN%40group.calendar.google.com&calName=Work&color=%23fbe983",
  "message": "Method OCA\\Google\\Controller\\GoogleAPIController::registerSyncCalendar() does not exist",
  "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36",
  "version": "28.0.2.5",
  "exception": {
    "Exception": "ReflectionException",
    "Message": "Method OCA\\Google\\Controller\\GoogleAPIController::registerSyncCalendar() does not exist",
    "Code": 0,
    "Trace": [
      {
        "file": "/var/www/html/lib/private/AppFramework/Utility/ControllerMethodReflector.php",
        "line": 51,
        "function": "__construct",
        "class": "ReflectionMethod",
        "type": "->",
        "args": [
          [
            "OCA\\Google\\Controller\\GoogleAPIController"
          ],
          "registerSyncCalendar"
        ]
      },
      {
        "file": "/var/www/html/lib/private/AppFramework/Http/Dispatcher.php",
        "line": 127,
        "function": "reflect",
        "class": "OC\\AppFramework\\Utility\\ControllerMethodReflector",
        "type": "->",
        "args": [
          [
            "OCA\\Google\\Controller\\GoogleAPIController"
          ],
          "registerSyncCalendar"
        ]
      },
      {
        "file": "/var/www/html/lib/private/AppFramework/App.php",
        "line": 184,
        "function": "dispatch",
        "class": "OC\\AppFramework\\Http\\Dispatcher",
        "type": "->",
        "args": [
          [
            "OCA\\Google\\Controller\\GoogleAPIController"
          ],
          "registerSyncCalendar"
        ]
      },
      {
        "file": "/var/www/html/lib/private/Route/Router.php",
        "line": 315,
        "function": "main",
        "class": "OC\\AppFramework\\App",
        "type": "::",
        "args": [
          "OCA\\Google\\Controller\\GoogleAPIController",
          "registerSyncCalendar",
          [
            "OC\\AppFramework\\DependencyInjection\\DIContainer"
          ],
          [
            "google_synchronization.googleAPI.registerSyncCalendar"
          ]
        ]
      },
      {
        "file": "/var/www/html/lib/base.php",
        "line": 1069,
        "function": "match",
        "class": "OC\\Route\\Router",
        "type": "->",
        "args": [
          "/apps/google_synchronization/sync-calendar"
        ]
      },
      {
        "file": "/var/www/html/index.php",
        "line": 39,
        "function": "handleRequest",
        "class": "OC",
        "type": "::",
        "args": []
      }
    ],
    "File": "/var/www/html/lib/private/AppFramework/Utility/ControllerMethodReflector.php",
    "Line": 51,
    "message": "Method OCA\\Google\\Controller\\GoogleAPIController::registerSyncCalendar() does not exist",
    "exception": [],
    "CustomMessage": "Method OCA\\Google\\Controller\\GoogleAPIController::registerSyncCalendar() does not exist"
  },
  "id": "65d23feb92afd"
}```
MarcelRobitaille commented 8 months ago

I have just released a new version of the app. It adds support for up to version 29 of Nextcloud and fixes some critical bugs. Please let me know if this version solves your problem.

Unfortunately, I cannot tell exactly what error you are getting. What you posted is not the actual error message. I should fix this notification.

Christophmarczinzik commented 8 months ago

@MarcelRobitaille yes the Javascript bug is now fixed. And now is an new bug in my log´s.

Undefined property: OCA\\Google\\Service\\GoogleCalendarAPIService::$appName at /var/www/nextcloud/apps/google_synchronization/lib/Service/GoogleCalendarAPIService.php#177

can u help me please?

MarcelRobitaille commented 8 months ago

Hi @Christophmarczinzik. Please open a dedicated issue for that and include:

MarcelRobitaille commented 4 months ago

Closing this due to inactivity. Feel free to reopen.