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

Error: Call to undefined method OC\AppConfig::getValueString() #422

Open
tmwProjects opened this issue Dec 5, 2024 · 2 comments
Open

Error: Call to undefined method OC\AppConfig::getValueString() #422

tmwProjects opened this issue Dec 5, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@tmwProjects
Copy link

Hello Rello,

thanks for the continuous development of the analytics app, it's really helpful! 😊

Since updating to version 5.1.0, I have encountered an error. Unfortunately, I can no longer access my data sets and the charts are not plotted as usual. It seems that the app can no longer find the data sets.

The following error message appears in the log:

Call to undefined method OC\AppConfig::getValueString() in file '/var/www/html/custom_apps/analytics/lib/Controller/DatasourceController.php' line 187

Details about my setup:

Nextcloud version: 28.0.7.5
Analytics version: 5.1.0
PHP version: 8.2.19
Error occurs when: Calling /apps/analytics/datasource

It appears that the method getValueString() is being used, which does not exist in the current version of Nextcloud. Perhaps getValue() or another method should be used here.

I would be very happy if you could take a look at the problem. If you need additional information or logs, please let me know!

Thanks in advance for your support and your great work on the app! 🙌

Best regards
Timm

PS:

Log from my NC instance. - I hope this helps:

[index] Fehler: Call to undefined method OC\AppConfig::getValueString() in file '/var/www/html/custom_apps/analytics/lib/Controller/DatasourceController.php' line 187
	GET /index.php/apps/analytics/datasource
	von XX.XXX.XXX.XXX von admin um 05.12.2024, 11:35:04

{
  "reqId": "vBlS4XbQrEx5VDnH79Tz",
  "level": 3,
  "time": "2024-12-05T10:31:23+00:00",
  "remoteAddr": "10.209.247.196",
  "user": "John",
  "app": "index",
  "method": "GET",
  "url": "/index.php/apps/analytics/datasource",
  "message": "Call to undefined method OC\\AppConfig::getValueString() in file '/var/www/html/custom_apps/analytics/lib/Controller/DatasourceController.php' line 187",
  "userAgent": "Mozilla/5.0",
  "version": "28.0.7.5",
  "exception": {
    "Exception": "Exception",
    "Message": "Call to undefined method OC\\AppConfig::getValueString() in file '/var/www/html/custom_apps/analytics/lib/Controller/DatasourceController.php' line 187",
    "Code": 0,
    "Trace": [
      {
        "file": "/var/www/html/lib/private/AppFramework/App.php",
        "line": 184,
        "function": "dispatch",
        "class": "OC\\AppFramework\\Http\\Dispatcher",
        "type": "->",
        "args": [
          [
            "OCA\\Analytics\\Controller\\DatasourceController"
          ],
          "index"
        ]
      },
      {
        "file": "/var/www/html/lib/private/Route/Router.php",
        "line": 315,
        "function": "main",
        "class": "OC\\AppFramework\\App",
        "type": "::",
        "args": [
          "OCA\\Analytics\\Controller\\DatasourceController",
          "index",
          [
            "OC\\AppFramework\\DependencyInjection\\DIContainer"
          ],
          [
            "analytics.datasource.index"
          ]
        ]
      },
      {
        "file": "/var/www/html/lib/base.php",
        "line": 1069,
        "function": "match",
        "class": "OC\\Route\\Router",
        "type": "->",
        "args": [
          "/apps/analytics/datasource"
        ]
      },
      {
        "file": "/var/www/html/index.php",
        "line": 39,
        "function": "handleRequest",
        "class": "OC",
        "type": "::",
        "args": []
      }
    ],
    "File": "/var/www/html/lib/private/AppFramework/Http/Dispatcher.php",
    "Line": 169,
    "Previous": {
      "Exception": "Error",
      "Message": "Call to undefined method OC\\AppConfig::getValueString()",
      "Code": 0,
      "Trace": [
        {
          "file": "/var/www/html/custom_apps/analytics/lib/Controller/DatasourceController.php",
          "line": 88,
          "function": "getDatasources",
          "class": "OCA\\Analytics\\Controller\\DatasourceController",
          "type": "->",
          "args": []
        },
        {
          "file": "/var/www/html/lib/private/AppFramework/Http/Dispatcher.php",
          "line": 230,
          "function": "index",
          "class": "OCA\\Analytics\\Controller\\DatasourceController",
          "type": "->",
          "args": []
        },
        {
          "file": "/var/www/html/lib/private/AppFramework/Http/Dispatcher.php",
          "line": 137,
          "function": "executeController",
          "class": "OC\\AppFramework\\Http\\Dispatcher",
          "type": "->",
          "args": [
            [
              "OCA\\Analytics\\Controller\\DatasourceController"
            ],
            "index"
          ]
        },
        {
          "file": "/var/www/html/lib/private/AppFramework/App.php",
          "line": 184,
          "function": "dispatch",
          "class": "OC\\AppFramework\\Http\\Dispatcher",
          "type": "->",
          "args": [
            [
              "OCA\\Analytics\\Controller\\DatasourceController"
            ],
            "index"
          ]
        },
        {
          "file": "/var/www/html/lib/private/Route/Router.php",
          "line": 315,
          "function": "main",
          "class": "OC\\AppFramework\\App",
          "type": "::",
          "args": [
            "OCA\\Analytics\\Controller\\DatasourceController",
            "index",
            [
              "OC\\AppFramework\\DependencyInjection\\DIContainer"
            ],
            [
              "analytics.datasource.index"
            ]
          ]
        },
        {
          "file": "/var/www/html/lib/base.php",
          "line": 1069,
          "function": "match",
          "class": "OC\\Route\\Router",
          "type": "->",
          "args": [
            "/apps/analytics/datasource"
          ]
        },
        {
          "file": "/var/www/html/index.php",
          "line": 39,
          "function": "handleRequest",
          "class": "OC",
          "type": "::",
          "args": []
        }
      ],
      "File": "/var/www/html/custom_apps/analytics/lib/Controller/DatasourceController.php",
      "Line": 187
    }
  },
  "message": "Call to undefined method OC\\AppConfig::getValueString() in file '/var/www/html/custom_apps/analytics/lib/Controller/DatasourceController.php' line 187",
  "exception": [],
  "CustomMessage": "Call to undefined method OC\\AppConfig::getValueString() in file '/var/www/html/custom_apps/analytics/lib/Controller/DatasourceController.php' line 187"
}
@Rello
Copy link
Owner

Rello commented Dec 5, 2024

oh. not good.
This is related to NC28. I missed some dependency there :-(
...any plans to update to NC29/30 anyway?

@Rello Rello self-assigned this Dec 5, 2024
@Rello Rello added the bug Something isn't working label Dec 5, 2024
@tmwProjects
Copy link
Author

...any plans to update to NC29/30 anyway?

Unfortunately not. The instance is managed and it is not yet clear when the next update will be carried out. Then I will probably have to wait.

Thank you very much for your quick reply!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants