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

Nextcloud v28.0.0 incompatibility with Sciencemesh #39

Open
MahdiBaghbani opened this issue Aug 24, 2023 · 1 comment
Open

Nextcloud v28.0.0 incompatibility with Sciencemesh #39

MahdiBaghbani opened this issue Aug 24, 2023 · 1 comment

Comments

@MahdiBaghbani
Copy link
Member

MahdiBaghbani commented Aug 24, 2023

In testing PR nextcloud/server#39574

Error encountered:

{
  "reqId": "pfah3ntERVK2AIbTnIM9",
  "level": 3,
  "time": "2023-08-24T09:09:06+00:00",
  "remoteAddr": "172.20.0.3",
  "user": "--",
  "app": "no app in context",
  "method": "GET",
  "url": "/index.php",
  "message": "App sciencemesh threw an error during app.php load and will be disabled: Call to undefined method OC\\Server::getEventDispatcher()",
  "userAgent": "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/116.0",
  "version": "28.0.0.2",
  "exception": {
    "Exception": "Error",
    "Message": "Call to undefined method OC\\Server::getEventDispatcher()",
    "Code": 0,
    "Trace": [
      {
        "file": "/var/www/html/lib/private/App/AppManager.php",
        "line": 521,
        "function": "require_once"
      },
      {
        "file": "/var/www/html/lib/private/App/AppManager.php",
        "line": 412,
        "function": "requireAppFile",
        "class": "OC\\App\\AppManager",
        "type": "::"
      },
      {
        "file": "/var/www/html/lib/private/App/AppManager.php",
        "line": 212,
        "function": "loadApp",
        "class": "OC\\App\\AppManager",
        "type": "->"
      },
      {
        "file": "/var/www/html/lib/private/legacy/OC_App.php",
        "line": 126,
        "function": "loadApps",
        "class": "OC\\App\\AppManager",
        "type": "->"
      },
      {
        "file": "/var/www/html/lib/base.php",
        "line": 1068,
        "function": "loadApps",
        "class": "OC_App",
        "type": "::"
      },
      {
        "file": "/var/www/html/index.php",
        "line": 37,
        "function": "handleRequest",
        "class": "OC",
        "type": "::"
      }
    ],
    "File": "/var/www/html/apps/sciencemesh/appinfo/app.php",
    "Line": 7,
    "message": "App sciencemesh threw an error during app.php load and will be disabled: Call to undefined method OC\\Server::getEventDispatcher()",
    "exception": {
      "xdebug_message": "<tr><th align='left' bgcolor='#f57900' colspan=\"5\"><span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> Error: Call to undefined method OC\\Server::getEventDispatcher() in /var/www/html/apps/sciencemesh/appinfo/app.php on line <i>7</i></th></tr>\n<tr><th align='left' bgcolor='#e9b96e' colspan='5'>Call Stack</th></tr>\n<tr><th align='center' bgcolor='#eeeeec'>#</th><th align='left' bgcolor='#eeeeec'>Time</th><th align='left' bgcolor='#eeeeec'>Memory</th><th align='left' bgcolor='#eeeeec'>Function</th><th align='left' bgcolor='#eeeeec'>Location</th></tr>\n<tr><td bgcolor='#eeeeec' align='center'>1</td><td bgcolor='#eeeeec' align='center'>0.0006</td><td bgcolor='#eeeeec' align='right'>364744</td><td bgcolor='#eeeeec'>{main}(  )</td><td title='/var/www/html/index.php' bgcolor='#eeeeec'>.../index.php<b>:</b>0</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>2</td><td bgcolor='#eeeeec' align='center'>0.3570</td><td bgcolor='#eeeeec' align='right'>4332712</td><td bgcolor='#eeeeec'>OC::handleRequest(  )</td><td title='/var/www/html/index.php' bgcolor='#eeeeec'>.../index.php<b>:</b>37</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>3</td><td bgcolor='#eeeeec' align='center'>0.4752</td><td bgcolor='#eeeeec' align='right'>5251928</td><td bgcolor='#eeeeec'>OC_App::loadApps( <span>$types = </span>??? )</td><td title='/var/www/html/lib/base.php' bgcolor='#eeeeec'>.../base.php<b>:</b>1068</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>4</td><td bgcolor='#eeeeec' align='center'>0.4752</td><td bgcolor='#eeeeec' align='right'>5251928</td><td bgcolor='#eeeeec'>OC\\App\\AppManager->loadApps( <span>$types = </span><span>[]</span> )</td><td title='/var/www/html/lib/private/legacy/OC_App.php' bgcolor='#eeeeec'>.../OC_App.php<b>:</b>126</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>5</td><td bgcolor='#eeeeec' align='center'>0.4770</td><td bgcolor='#eeeeec' align='right'>5275456</td><td bgcolor='#eeeeec'>OC\\App\\AppManager->loadApp( <span>$app = </span><span>&#39;sciencemesh&#39;</span> )</td><td title='/var/www/html/lib/private/App/AppManager.php' bgcolor='#eeeeec'>.../AppManager.php<b>:</b>212</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>6</td><td bgcolor='#eeeeec' align='center'>0.4773</td><td bgcolor='#eeeeec' align='right'>5341248</td><td bgcolor='#eeeeec'>OC\\App\\AppManager::requireAppFile( <span>$app = </span><span>&#39;/var/www/html/apps/sciencemesh&#39;</span> )</td><td title='/var/www/html/lib/private/App/AppManager.php' bgcolor='#eeeeec'>.../AppManager.php<b>:</b>412</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>7</td><td bgcolor='#eeeeec' align='center'>0.4778</td><td bgcolor='#eeeeec' align='right'>5341744</td><td bgcolor='#eeeeec'>require_once( <font color='#00bb00'>'/var/www/html/apps/sciencemesh/appinfo/app.php</font> )</td><td title='/var/www/html/lib/private/App/AppManager.php' bgcolor='#eeeeec'>.../AppManager.php<b>:</b>521</td></tr>\n"
    },
    "CustomMessage": "App sciencemesh threw an error during app.php load and will be disabled: Call to undefined method OC\\Server::getEventDispatcher()"
  }
}

This function:

OC\\Server::getEventDispatcher()

doesn't exist anymore

@MahdiBaghbani
Copy link
Member Author

This is related to the open-with functionality of Sciencemesh.

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

No branches or pull requests

1 participant