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

I can not enter the settings(nextcloud) after updating to NC13 #62

Closed
ion-lane opened this issue Feb 12, 2018 · 26 comments
Closed

I can not enter the settings(nextcloud) after updating to NC13 #62

ion-lane opened this issue Feb 12, 2018 · 26 comments
Labels

Comments

@ion-lane
Copy link

Nextcloud version 13.0.0.14
Operating system Gentoo
Apache -2.4.27-r1
PHP version 7.1.13

After updating from NC 12.0.5 to NC 13.0.0.14 I can not enter the settings nextcloud under any user.
If disable application ocDownloader, then i can enter the settings.

Error:

Internal server error
The request can not be processed by the server.

If this happens again, send the administrator of the server a detailed message about what happened, listed below.

For more information, see the server log.

Technical details
Remote address: 192.168.100.2
Request ID: WnwuAsCoZGQAAFomNskAAAAK

nextcloud.log:
{"reqId":"WnwuAsCoZGQAAFomNskAAAAK","level":3,"time":"2018-02-08T11:01:24+00:00","remoteAddr":"192.168.100.2","user":"ivan","app":"index","method":"GET","url":"\/settings\/user","message":"Exception: {\"Exception\":\"Error\",\"Message\":\"Call to undefined function style()\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/legacy\\\/app.php(706): include()\\n#1 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Settings\\\/Manager.php(497): OC_App::getForms('personal')\\n#2 \\\/var\\\/www\\\/nextcloud\\\/settings\\\/Controller\\\/CommonSettingsTrait.php(89): OC\\\\Settings\\\\Manager->getPersonalSections()\\n#3 \\\/var\\\/www\\\/nextcloud\\\/settings\\\/Controller\\\/CommonSettingsTrait.php(42): OC\\\\Settings\\\\Controller\\\\PersonalSettingsController->formatPersonalSections('personal', 'personal-info')\\n#4 \\\/var\\\/www\\\/nextcloud\\\/settings\\\/Controller\\\/CommonSettingsTrait.php(120): OC\\\\Settings\\\\Controller\\\\PersonalSettingsController->getNavigationParameters('personal', 'personal-info')\\n#5 \\\/var\\\/www\\\/nextcloud\\\/settings\\\/Controller\\\/PersonalSettingsController.php(61): OC\\\\Settings\\\\Controller\\\\PersonalSettingsController->getIndexResponse('personal', 'personal-info')\\n#6 [internal function]: OC\\\\Settings\\\\Controller\\\\PersonalSettingsController->index('personal-info')\\n#7 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(161): call_user_func_array(Array, Array)\\n#8 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(91): OC\\\\AppFramework\\\\Http\\\\Dispatcher->executeController(Object(OC\\\\Settings\\\\Controller\\\\PersonalSettingsController), 'index')\\n#9 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/AppFramework\\\/App.php(115): OC\\\\AppFramework\\\\Http\\\\Dispatcher->dispatch(Object(OC\\\\Settings\\\\Controller\\\\PersonalSettingsController), 'index')\\n#10 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/AppFramework\\\/Routing\\\/RouteActionHandler.php(47): OC\\\\AppFramework\\\\App::main('OC\\\\\\\\Settings\\\\\\\\Con...', 'index', Object(OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer), Array)\\n#11 [internal function]: OC\\\\AppFramework\\\\Routing\\\\RouteActionHandler->__invoke(Array)\\n#12 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Route\\\/Router.php(297): call_user_func(Object(OC\\\\AppFramework\\\\Routing\\\\RouteActionHandler), Array)\\n#13 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/base.php(998): OC\\\\Route\\\\Router->match('\\\/settings\\\/user')\\n#14 \\\/var\\\/www\\\/nextcloud\\\/index.php(37): OC::handleRequest()\\n#15 {main}\",\"File\":\"\\\/var\\\/www\\\/nextcloud\\\/apps\\\/ocdownloader\\\/settings\\\/personal.php\",\"Line\":17}","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/63.0.3239.132 Safari\/537.36 OPR\/50.0.2762.67","version":"13.0.0.14"}

/var/log/apache2/ssl_access_log:

192.168.100.2 - - [08/Feb/2018:21:20:47 +1000] “GET /settings/user HTTP/1.1” 500 6537
192.168.100.2 - - [08/Feb/2018:21:20:48 +1000] “GET /settings/ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1” 302 -
192.168.100.2 - - [08/Feb/2018:21:20:48 +1000] “GET /settings/undefined/img/notifications.svg HTTP/1.1” 302 -
192.168.100.2 - - [08/Feb/2018:21:20:48 +1000] “GET /apps/files/ HTTP/1.1” 200 35391
192.168.100.2 - - [08/Feb/2018:21:20:49 +1000] “GET /apps/files/ HTTP/1.1” 200 35393
@e-alfred e-alfred added the bug label Feb 14, 2018
@e-alfred
Copy link
Owner

e-alfred commented Feb 14, 2018

I tried to reproduce your problem by setting up a system with Nextcloud 12, installed ocDownloader and then updated to Nextcloud 13. This works so far, I can access the settings page.

I suspect that something went wrong during the upgrade. Can you try to remove the app and reinstall it from the App Store? I released a new version with fixes for Nextcloud 13+.

@blackcrack
Copy link

blackcrack commented Feb 15, 2018

(by the way.. my experience)
i have download the nextcloud 13 as tar.gz, remove the /config/ folder,
and overwrite the whole nextcloudfolder with version 13,
make in the prompt "php occ upgrade"
all works pretty well (and my server in the basement have the "html2-"bug" with multi-treads" and don't let show the files by file-browsing in nextcloud, also not the Gallery with the pictures)

behind the "php occ upgrade" works all pretty well, include my custom skins/theme.
Upgrade by hand in openmandriva 3.03 prompt via ssh the one or other app.
(The Server/PC it is in my rented apartment basement connected over fritzbox/selfhost.de )
so, info to e-alfred=> it works /or should works so far, only because the "custom css "app"" flash the orginal css short for 2/3 sec. before my custom theme it's running.

http://www.blackysgate.de/files/folder-root/nextcloud/

@e-alfred
Copy link
Owner

@ion-lane Do you use a custom theme? I am suspecting this might indeed be the problem.

@ion-lane
Copy link
Author

I remove the app and reinstall it from the app store, but also can not enter the settings.

Invalid argument supplied for foreach() at /var/www/nextcloud/lib/private/Installer.php#406

 Error: Call to undefined function style()
/var/www/nextcloud/lib/private/legacy/app.php - line 706: include()
/var/www/nextcloud/lib/private/Settings/Manager.php - line 497: OC_App getForms('personal')
/var/www/nextcloud/settings/Controller/CommonSettingsTrait.php - line 89: OC\Settings\Manager->getPersonalSections()
/var/www/nextcloud/settings/Controller/CommonSettingsTrait.php - line 42: OC\Settings\Controller\PersonalSettingsController->formatPersonalSections('personal', 'personal-info')
/var/www/nextcloud/settings/Controller/CommonSettingsTrait.php - line 120: OC\Settings\Controller\PersonalSettingsController->getNavigationParameters('personal', 'personal-info')
/var/www/nextcloud/settings/Controller/PersonalSettingsController.php - line 61: OC\Settings\Controller\PersonalSettingsController->getIndexResponse('personal', 'personal-info')
[internal function] OC\Settings\Controller\PersonalSettingsController->index('personal-info')
/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 161: call_user_func_array(Array, Array)
/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 91: OC\AppFramework\Http\Dispatcher->executeController(Object(OC\Settings\Controller\PersonalSettingsController), 'index')
/var/www/nextcloud/lib/private/AppFramework/App.php - line 115: OC\AppFramework\Http\Dispatcher->dispatch(Object(OC\Settings\Controller\PersonalSettingsController), 'index')
/var/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php - line 47: OC\AppFramework\App main('OC\\Settings\\Con...', 'index', Object(OC\AppFramework\DependencyInjection\DIContainer), Array)
[internal function] OC\AppFramework\Routing\RouteActionHandler->__invoke(Array)
/var/www/nextcloud/lib/private/Route/Router.php - line 297: call_user_func(Object(OC\AppFramework\Routing\RouteActionHandler), Array)
/var/www/nextcloud/lib/base.php - line 998: OC\Route\Router->match('/settings/user')
/var/www/nextcloud/index.php - line 37: OC handleRequest()
{main}

@ion-lane
Copy link
Author

@e-alfred, yes i'm using custom theme. I tried to remove it from the configuration and turn on the application Theming, but it did not help.

@ion-lane
Copy link
Author

Run check-code using occ command:

# sudo -u apache php occ app:check-code ocdownloader
The process control (PCNTL) extensions are required in case you want to interrupt                                                                                       long running commands - see http://php.net/manual/en/book.pcntl.php
Analysing /var/www/nextcloud/apps/ocdownloader/SERVER/fallback.php
 8 errors
    line   43: != - is discouraged
    line   44: == - is discouraged
    line   44: == - is discouraged
    line   45: == - is discouraged
    line   46: == - is discouraged
    line   47: == - is discouraged
    line   67: == - is discouraged
    line   67: == - is discouraged
Analysing /var/www/nextcloud/apps/ocdownloader/appinfo/routes.php
 6 errors
    line   73: OC_API - Constant of  class must not not be fetched
    line   73: OC_API::USER_AUTH - Constant of deprecated class must not not be fe                                                                                      tched
    line   83: OC_API - Constant of  class must not not be fetched
    line   83: OC_API::USER_AUTH - Constant of deprecated class must not not be fe                                                                                      tched
    line   93: OC_API - Constant of  class must not not be fetched
    line   93: OC_API::USER_AUTH - Constant of deprecated class must not not be fe                                                                                      tched
Analysing /var/www/nextcloud/apps/ocdownloader/controller/adminsettings.php
 18 errors
    line   38: == - is discouraged
    line   53: OCP\JSON - Static method of deprecated class must not be called
    line   67: == - is discouraged
    line   74: == - is discouraged
    line   80: == - is discouraged
    line   90: == - is discouraged
    line   92: == - is discouraged
    line   94: == - is discouraged
    line   98: == - is discouraged
    line  101: != - is discouraged
    line  104: == - is discouraged
    line  108: == - is discouraged
    line  112: == - is discouraged
    line  116: == - is discouraged
    line  120: == - is discouraged
    line  124: == - is discouraged
    line  130: == - is discouraged
    line  163: OCP\JSON - Static method of deprecated class must not be called
Analysing /var/www/nextcloud/apps/ocdownloader/controller/btdownloader.php
 13 errors
    line   49: == - is discouraged
    line   67: == - is discouraged
    line   76: == - is discouraged
    line   92: == - is discouraged
    line  114: OCP\JSON - Static method of deprecated class must not be called
    line  120: OC_User - Static method of private class must not be called
    line  164: == - is discouraged
    line  169: OCP\DB - Static method of deprecated class must not be called
    line  180: == - is discouraged
    line  236: OCP\JSON - Static method of deprecated class must not be called
    line  239: OC_User - Static method of private class must not be called
    line  264: OCP\JSON - Static method of deprecated class must not be called
    line  266: OC_User - Static method of private class must not be called
Analysing /var/www/nextcloud/apps/ocdownloader/controller/ftpdownloader.php
 13 errors
    line   45: == - is discouraged
    line   63: == - is discouraged
    line   67: == - is discouraged
    line   72: == - is discouraged
    line   91: OCP\JSON - Static method of deprecated class must not be called
    line   96: OC_User - Static method of private class must not be called
    line  109: == - is discouraged
    line  134: == - is discouraged
    line  149: == - is discouraged
    line  157: == - is discouraged
    line  162: OCP\DB - Static method of deprecated class must not be called
    line  174: == - is discouraged
    line  213: == - is discouraged
Analysing /var/www/nextcloud/apps/ocdownloader/controller/httpdownloader.php
 12 errors
    line   45: == - is discouraged
    line   62: == - is discouraged
    line   66: == - is discouraged
    line   71: == - is discouraged
    line   90: OCP\JSON - Static method of deprecated class must not be called
    line   95: OC_User - Static method of private class must not be called
    line  108: == - is discouraged
    line  145: == - is discouraged
    line  153: == - is discouraged
    line  158: OCP\DB - Static method of deprecated class must not be called
    line  170: == - is discouraged
    line  209: == - is discouraged
Analysing /var/www/nextcloud/apps/ocdownloader/controller/index.php
 11 errors
    line   43: == - is discouraged
    line   56: OC_User - Static method of private class must not be called
    line   57: == - is discouraged
    line   60: OC_User - Static method of private class must not be called
    line   61: == - is discouraged
    line   64: OC_User - Static method of private class must not be called
    line   65: == - is discouraged
    line   68: OC_User - Static method of private class must not be called
    line   69: == - is discouraged
    line  151: != - is discouraged
    line  168: != - is discouraged
Analysing /var/www/nextcloud/apps/ocdownloader/controller/lib/api.php
 29 errors
    line   47: == - is discouraged
    line   48: OC_User - Static method of private class must not be called
    line   68: OC_User - Static method of private class must not be called
    line   71: OC_User - Static method of private class must not be called
    line   98: == - is discouraged
    line  107: == - is discouraged
    line  113: OCP\DB - Static method of deprecated class must not be called
    line  118: == - is discouraged
    line  160: == - is discouraged
    line  165: OCP\DB - Static method of deprecated class must not be called
    line  172: == - is discouraged
    line  196: == - is discouraged
    line  200: == - is discouraged
    line  201: != - is discouraged
    line  201: == - is discouraged
    line  203: == - is discouraged
    line  205: == - is discouraged
    line  207: == - is discouraged
    line  211: == - is discouraged
    line  220: != - is discouraged
    line  223: == - is discouraged
    line  230: OCP\DB - Static method of deprecated class must not be called
    line  265: == - is discouraged
    line  305: == - is discouraged
    line  326: == - is discouraged
    line  330: == - is discouraged
    line  333: == - is discouraged
    line  336: == - is discouraged
    line  339: == - is discouraged
Analysing /var/www/nextcloud/apps/ocdownloader/controller/lib/aria2.php
 1 errors
    line   21: == - is discouraged
Analysing /var/www/nextcloud/apps/ocdownloader/controller/lib/curl.php
 2 errors
    line   63: == - is discouraged
    line   85: == - is discouraged
Analysing /var/www/nextcloud/apps/ocdownloader/controller/lib/settings.php
 13 errors
    line   25: == - is discouraged
    line   55: == - is discouraged
    line   59: OCP\DB - Static method of deprecated class must not be called
    line   66: == - is discouraged
    line   76: == - is discouraged
    line   80: OCP\DB - Static method of deprecated class must not be called
    line   88: == - is discouraged
    line   98: == - is discouraged
    line  102: OCP\DB - Static method of deprecated class must not be called
    line  115: == - is discouraged
    line  119: OCP\DB - Static method of deprecated class must not be called
    line  132: == - is discouraged
    line  136: OCP\DB - Static method of deprecated class must not be called
Analysing /var/www/nextcloud/apps/ocdownloader/controller/lib/tools.php
 14 errors
    line   71: == - is discouraged
    line  136: == - is discouraged
    line  144: OCP\DB - Static method of deprecated class must not be called
    line  183: OC_User - Static method of private class must not be called
    line  183: OC_User - Static method of private class must not be called
    line  188: == - is discouraged
    line  198: == - is discouraged
    line  201: OCP\DB - Static method of deprecated class must not be called
    line  207: != - is discouraged
    line  208: != - is discouraged
    line  214: == - is discouraged
    line  216: == - is discouraged
    line  219: OCP\DB - Static method of deprecated class must not be called
    line  226: == - is discouraged
Analysing /var/www/nextcloud/apps/ocdownloader/controller/lib/youtube.php
 1 errors
    line   78: == - is discouraged
Analysing /var/www/nextcloud/apps/ocdownloader/controller/personalsettings.php
 5 errors
    line   48: OCP\JSON - Static method of deprecated class must not be called
    line   62: == - is discouraged
    line   62: == - is discouraged
    line   93: == - is discouraged
    line  104: OCP\JSON - Static method of deprecated class must not be called
Analysing /var/www/nextcloud/apps/ocdownloader/controller/queue.php
 71 errors
    line   39: == - is discouraged
    line   48: == - is discouraged
    line   66: OCP\JSON - Static method of deprecated class must not be called
    line  132: == - is discouraged
    line  136: OCP\DB - Static method of deprecated class must not be called
    line  143: == - is discouraged
    line  168: == - is discouraged
    line  172: == - is discouraged
    line  173: == - is discouraged
    line  173: != - is discouraged
    line  175: == - is discouraged
    line  177: == - is discouraged
    line  179: == - is discouraged
    line  183: == - is discouraged
    line  193: != - is discouraged
    line  196: == - is discouraged
    line  203: OCP\DB - Static method of deprecated class must not be called
    line  229: == - is discouraged
    line  268: OCP\JSON - Static method of deprecated class must not be called
    line  285: OCP\JSON - Static method of deprecated class must not be called
    line  288: == - is discouraged
    line  293: != - is discouraged
    line  294: != - is discouraged
    line  295: == - is discouraged
    line  299: == - is discouraged
    line  301: == - is discouraged
    line  305: OCP\DB - Static method of deprecated class must not be called
    line  338: OCP\JSON - Static method of deprecated class must not be called
    line  341: == - is discouraged
    line  346: != - is discouraged
    line  347: != - is discouraged
    line  348: == - is discouraged
    line  352: == - is discouraged
    line  354: == - is discouraged
    line  358: OCP\DB - Static method of deprecated class must not be called
    line  394: OCP\JSON - Static method of deprecated class must not be called
    line  399: == - is discouraged
    line  403: OCP\DB - Static method of deprecated class must not be called
    line  427: OCP\JSON - Static method of deprecated class must not be called
    line  435: == - is discouraged
    line  439: OCP\DB - Static method of deprecated class must not be called
    line  477: OCP\JSON - Static method of deprecated class must not be called
    line  482: == - is discouraged
    line  488: != - is discouraged
    line  489: != - is discouraged
    line  491: == - is discouraged
    line  495: != - is discouraged
    line  495: == - is discouraged
    line  499: == - is discouraged
    line  502: == - is discouraged
    line  507: OCP\DB - Static method of deprecated class must not be called
    line  542: OCP\JSON - Static method of deprecated class must not be called
    line  549: == - is discouraged
    line  552: != - is discouraged
    line  553: != - is discouraged
    line  554: == - is discouraged
    line  557: == - is discouraged
    line  560: == - is discouraged
    line  565: OCP\DB - Static method of deprecated class must not be called
    line  602: OCP\JSON - Static method of deprecated class must not be called
    line  607: == - is discouraged
    line  612: == - is discouraged
    line  614: == - is discouraged
    line  621: == - is discouraged
    line  625: OCP\DB - Static method of deprecated class must not be called
    line  651: OCP\JSON - Static method of deprecated class must not be called
    line  658: == - is discouraged
    line  660: == - is discouraged
    line  662: == - is discouraged
    line  669: == - is discouraged
    line  673: OCP\DB - Static method of deprecated class must not be called
Analysing /var/www/nextcloud/apps/ocdownloader/controller/updater.php
 1 errors
    line   41: OCP\JSON - Static method of deprecated class must not be called
Analysing /var/www/nextcloud/apps/ocdownloader/controller/ytdownloader.php
 11 errors
    line   47: == - is discouraged
    line   72: == - is discouraged
    line   77: == - is discouraged
    line   96: OCP\JSON - Static method of deprecated class must not be called
    line  101: OC_User - Static method of private class must not be called
    line  111: == - is discouraged
    line  117: == - is discouraged
    line  152: == - is discouraged
    line  172: == - is discouraged
    line  181: == - is discouraged
    line  187: OCP\DB - Static method of deprecated class must not be called
Analysing /var/www/nextcloud/apps/ocdownloader/settings/admin.php
 1 errors
    line   14: OC_Util - Static method of private class must not be called
Analysing /var/www/nextcloud/apps/ocdownloader/settings/personal.php
 4 errors
    line   14: OCP\User - Static method of deprecated class must not be called
    line   14: OCP\User::checkLoggedIn - Method of deprecated class must not be ca                                                                                      lled
    line   25: == - is discouraged
    line   30: OC_User - Static method of private class must not be called
Analysing /var/www/nextcloud/apps/ocdownloader/templates/add.php
 1 errors
    line   46: == - is discouraged
Analysing /var/www/nextcloud/apps/ocdownloader/templates/settings/admin.php
 11 errors
    line   49: == - is discouraged
    line   62: == - is discouraged
    line   72: == - is discouraged
    line   81: == - is discouraged
    line   81: == - is discouraged
    line  104: == - is discouraged
    line  111: == - is discouraged
    line  118: == - is discouraged
    line  123: == - is discouraged
    line  125: == - is discouraged
    line  127: == - is discouraged
Analysing /var/www/nextcloud/apps/ocdownloader/templates/settings/personal.php
 19 errors
    line   17: == - is discouraged
    line   47: == - is discouraged
    line   48: == - is discouraged
    line   49: == - is discouraged
    line   50: == - is discouraged
    line   51: == - is discouraged
    line   52: == - is discouraged
    line   53: == - is discouraged
    line   54: == - is discouraged
    line   55: == - is discouraged
    line   56: == - is discouraged
    line   57: == - is discouraged
    line   66: == - is discouraged
    line   70: == - is discouraged
    line   71: == - is discouraged
    line   72: == - is discouraged
    line   73: == - is discouraged
    line   74: == - is discouraged
    line   75: == - is discouraged
Migrate the app version to appinfo/info.xml (add <version>1.5.6</version> to appinfo/info.xml and remove appinfo/version)
Database schema error: Name of table *dbprefix*ocdownloader_adminsettings is too long (26), max. 27 characters (21 characters for tables with autoincrement) + *dbprefix* allowed
Database schema error: Name of table *dbprefix*ocdownloader_personalsettings is too long (29), max. 27 characters (21 characters for tables with autoincrement) + *dbprefix* allowed
Database schema error: Name of table *dbprefix*ocdownloader_personalsettings is too long (29), max. 27 characters (21 characters for tables with autoincrement) + *dbprefix* allowed
App is not compliant

mysql> show tables;
+----------------------------------+
| Tables_in_nextcloud |
+----------------------------------+
...
| oc_ocdownloader_adminsettings |
| oc_ocdownloader_personalsettings |
| oc_ocdownloader_queue |
...
+----------------------------------+

Maybe the problem with this?

@e-alfred
Copy link
Owner

I know that the app still has a number of problems regarding things that are considered deprecated. I am fixing them piece by piece if you take a look into issue #58. If you like, you can help me with that.

Anyway, using style() is not deprecated and the bug seems to not come up with a default installation and the default theming. Can you share the changes to the theming you made?

@badjware
Copy link

Hello,

I am having the same problem running nextcloud 13 in a docker container. The app itself seems to be working fine but going into the settings throw an internal server error. I have the exact same trace than the one in the riginal report in my nextcloud.log

It was working fine in nextcloud 12.

Thanks

@mozzwald
Copy link

I just migrated from owncloud 9.1.6 to nextcloud 13.0.0 (following proper upgrade path) and I have the same issue. Debian Stretch with apache 2.4.25, php 7.0.27, mariadb 10.1.26. Nextcloud log error:

{"reqId":"gOkxBusiEQuDMD20jp7k","level":3,"time":"2018-02-26T13:40:37+00:00","remoteAddr":"192.168.1.1","user":"mozzwald","app":"index","method":"GET","url":"/index.phpuser","message":"Exception: {"Exception":"Error","Message":"Call to undefined function style()","Code":0,"Trace":"#0 \/media\/thegrid\/cloud\/lib\/private\/legacy\/app.php(706): include()\n#1 \/media\/thegrid\/cloud\/lib\/private\/Settings\/Manager.php(497): OC_App::getForms('personal')\n#2 \/media\/thegrid\/cloud\/settings\/Controller\/CommonSettingsTrait.php(89): OC\\Settings\\Manager->getPersonalSections()\n#3 \/media\/thegrid\/cloud\/settings\/Controller\/CommonSettingsTrait.php(42): OC\\Settings\\Controller\\PersonalSettingsController->formatPersonalSections('personal', 'personal-info')\n#4 \/media\/thegrid\/cloud\/settings\/Controller\/CommonSettingsTrait.php(120): OC\\Settings\\Controller\\PersonalSettingsController->getNavigationParameters('personal', 'personal-info')\n#5 \/media\/thegrid\/cloud\/settings\/Controller\/PersonalSettingsController.php(61): OC\\Settings\\Controller\\PersonalSettingsController->getIndexResponse('personal', 'personal-info')\n#6 [internal function]: OC\\Settings\\Controller\\PersonalSettingsController->index('personal-info')\n#7 \/media\/thegrid\/cloud\/lib\/private\/AppFramework\/Http\/Dispatcher.php(161): call_user_func_array(Array, Array)\n#8 \/media\/thegrid\/cloud\/lib\/private\/AppFramework\/Http\/Dispatcher.php(91): OC\\AppFramework\\Http\\Dispatcher->executeController(Object(OC\\Settings\\Controller\\PersonalSettingsController), 'index')\n#9 \/media\/thegrid\/cloud\/lib\/private\/AppFramework\/App.php(115): OC\\AppFramework\\Http\\Dispatcher->dispatch(Object(OC\\Settings\\Controller\\PersonalSettingsController), 'index')\n#10 \/media\/thegrid\/cloud\/lib\/private\/AppFramework\/Routing\/RouteActionHandler.php(47): OC\\AppFramework\\App::main('OC\\\\Settings\\\\Con...', 'index', Object(OC\\AppFramework\\DependencyInjection\\DIContainer), Array)\n#11 [internal function]: OC\\AppFramework\\Routing\\RouteActionHandler->__invoke(Array)\n#12 \/media\/thegrid\/cloud\/lib\/private\/Route\/Router.php(297): call_user_func(Object(OC\\AppFramework\\Routing\\RouteActionHandler), Array)\n#13 \/media\/thegrid\/cloud\/lib\/base.php(998): OC\\Route\\Router->match('\/settings\/user')\n#14 \/media\/thegrid\/cloud\/index.php(37): OC::handleRequest()\n#15 {main}","File":"\/media\/thegrid\/cloud\/apps\/ocdownloader\/settings\/personal.php","Line":17}","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:56.0) Gecko/20100101 Firefox/56.0","version":"13.0.0.14"}

Commenting out the following in ocdownloader/settings/personal.php allows the settings page to load without error:
style('ocdownloader', 'settings/personal');
script('ocdownloader', 'settings/personal');
The ocdownloader settings appear under "Additional Settings" but changing them does not save (obviously).

It seems that lib/private/legacy/template/functions.php which contains the style() function is not included. Not sure where/which file this would be included from. Interesting that it does not throw an error for ocdownloader/settings/admin.php and only personal.php.

My temporary fix is to require the file (full path) to the functions file in personal.php: require_once '/var/www/cloud/lib/private/legacy/template/functions.php'; and this appears to work fine. Settings are saved when changed.

@ion-lane
Copy link
Author

@mozzwald i commented style and script and was able to enter the settings. But changes are not saved.
I do not know php. You can show the full line of your changes in the file personal.php.

@ion-lane
Copy link
Author

@e-alfred I checked the changes into issue #58. These changes I have.
So it happened that I reinstalled the operating system and I installed the NC13 again, with a new base. And got the same error.
I was helped by the solution @mozzwald

@mozzwald
Copy link

@ion-lane just add this as new line to the personal.php file at the top before the style and script lines:

require_once '/var/www/cloud/lib/private/legacy/template/functions.php'

Be sure to change /var/www/cloud to your actual nextcloud path

@ion-lane
Copy link
Author

@mozzwald No, I get the same error.
In any case, I use the default settings. Therefore, I do not need to change them. Thanks for the help.

@e-alfred
Copy link
Owner

e-alfred commented Mar 5, 2018

It seems like Nextcloud 13 has a number of theming issues that will probably be fixed in 13.0.1. The temporary workaround from @mozzwald usually shouldn't be necessary. Can anyone with these issues try to reset the SCSS cache as described here:

nextcloud/server#8043 (comment)

@ion-lane
Copy link
Author

ion-lane commented Mar 8, 2018

@e-alfred I tried to reset the SCSS cache, it did not help me.

@Sonargucker
Copy link

I was surpised, that I can not enter to user settings with old users. Recently created users were able to see their settings. I added in table Accounts into data column the values of o working user and changed the name in data column to the appropirate user. Now, all users can use their settings.
Does an update did not migrate old data to new database scheme ?

@ion-lane
Copy link
Author

I checked now whether I can go into the settings. Happened. I do not know what changed, possibly after updating PHP to 7.1.15 or Apache to 2.4.29-r1.
After updating to NC 13.0.1 still working.

@e-alfred
Copy link
Owner

@ion-lane I suspect that something was cached probably. Apache sometimes needs a restart after changes were made in PHP files.

@Sonargucker Which DBMS do you use? Do you get the exact same error message?

@My1
Copy link

My1 commented Jun 19, 2018

I still have issues with the thing. just updated to 13.0.4 and pulled ocdownloader right from the store and the settings page dies.

Log:

{"reqId":"Wyjq63O4WL-GxJ40PPlEjgAAABk","level":3,"time":"2018-06-19T11:37:15+00:00","remoteAddr":"IP-CENSORED","user":"My1","app":"index","method":"GET","url":"/index.php/settings/user","message":"Exception: {"Exception":"Error","Message":"Call to undefined function style()","Code":0,


"Trace":"

#0 /home/user/subdomains/nc/lib/private/legacy/app.php(708): include()
#1 /home/user/subdomains/nc/lib/private/Settings/Manager.php(497): OC_App::getForms('personal')
#2 /home/user/subdomains/nc/settings/Controller/CommonSettingsTrait.php(93): OC\Settings\Manager->getPersonalSections()
#3 /home/user/subdomains/nc/settings/Controller/CommonSettingsTrait.php(46): OC\Settings\Controller\PersonalSettingsController->formatPersonalSections('personal', 'personal-info')
#4 /home/user/subdomains/nc/settings/Controller/CommonSettingsTrait.php(125): OC\Settings\Controller\PersonalSettingsController->getNavigationParameters('personal', 'personal-info')
#5 /home/user/subdomains/nc/settings/Controller/PersonalSettingsController.php(57): OC\Settings\Controller\PersonalSettingsController->getIndexResponse('personal', 'personal-info')
#6 [internal function]: OC\Settings\Controller\PersonalSettingsController->index('personal-info')
#7 /home/user/subdomains/nc/lib/private/AppFramework/Http/Dispatcher.php(161): call_user_func_array(Array, Array)
#8 /home/user/subdomains/nc/lib/private/AppFramework/Http/Dispatcher.php(91): OC\AppFramework\Http\Dispatcher->executeController(Object(OC\Settings\Controller\PersonalSettingsController), 'index')
#9 /home/user/subdomains/nc/lib/private/AppFramework/App.php(115): OC\AppFramework\Http\Dispatcher->dispatch(Object(OC\Settings\Controller\PersonalSettingsController), 'index')
#10 /home/user/subdomains/nc/lib/private/AppFramework/Routing/RouteActionHandler.php(47): OC\AppFramework\App::main('OC\Settings\Con...', 'index', Object(OC\AppFramework\DependencyInjection\DIContainer), Array)
#11 [internal function]: OC\AppFramework\Routing\RouteActionHandler->__invoke(Array)
#12 /home/user/subdomains/nc/lib/private/Route/Router.php(297): call_user_func(Object(OC\AppFramework\Routing\RouteActionHandler), Array)
#13 /home/user/subdomains/nc/lib/base.php(999): OC\Route\Router->match('/settings/user')
#14 /home/user/subdomains/nc/index.php(42): OC::handleRequest()
#15 {main}","File":"/home/user/subdomains/nc/apps/ocdownloader/settings/personal.php","Line":17}","userAgent":"Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.79 Safari/537.36 OPR/54.0.2952.23 (Edition beta)","version":"13.0.4.0"}

I took the liberty of making it a bit more readable

@zingmars
Copy link

I have the same issue on a brand new NextCloud 13 installation. Enabling ocdownloader causes the settings page to become inaccessible.

"reqId":"Pv668AmdH8fRj5NbNxZy","level":3,"time":"2018-06-22T12:35:09+00:00","remoteAddr":"","user":"","app":"index","method":"GET","url":"\/settings\/user","message":"Exception: {\"Exception\":\"Error\",\"Message\":\"Call to undefined function style()\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/cloud\\\/lib\\\/private\\\/legacy\\\/app.php(708): include()\\n#1 \\\/var\\\/www\\\/cloud\\\/lib\\\/private\\\/Settings\\\/Manager.php(497): OC_App::getForms('personal')\\n#2 \\\/var\\\/www\\\/cloud\\\/settings\\\/Controller\\\/CommonSettingsTrait.php(93): OC\\\\Settings\\\\Manager->getPersonalSections()\\n#3 \\\/var\\\/www\\\/cloud\\\/settings\\\/Controller\\\/CommonSettingsTrait.php(46): OC\\\\Settings\\\\Controller\\\\PersonalSettingsController->formatPersonalSections('personal', 'personal-info')\\n#4 \\\/var\\\/www\\\/cloud\\\/settings\\\/Controller\\\/CommonSettingsTrait.php(125): OC\\\\Settings\\\\Controller\\\\PersonalSettingsController->getNavigationParameters('personal', 'personal-info')\\n#5 \\\/var\\\/www\\\/cloud\\\/settings\\\/Controller\\\/PersonalSettingsController.php(57): OC\\\\Settings\\\\Controller\\\\PersonalSettingsController->getIndexResponse('personal', 'personal-info')\\n#6 [internal function]: OC\\\\Settings\\\\Controller\\\\PersonalSettingsController->index('personal-info')\\n#7 \\\/var\\\/www\\\/cloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(161): call_user_func_array(Array, Array)\\n#8 \\\/var\\\/www\\\/cloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(91): OC\\\\AppFramework\\\\Http\\\\Dispatcher->executeController(Object(OC\\\\Settings\\\\Controller\\\\PersonalSettingsController), 'index')\\n#9 \\\/var\\\/www\\\/cloud\\\/lib\\\/private\\\/AppFramework\\\/App.php(115): OC\\\\AppFramework\\\\Http\\\\Dispatcher->dispatch(Object(OC\\\\Settings\\\\Controller\\\\PersonalSettingsController), 'index')\\n#10 \\\/var\\\/www\\\/cloud\\\/lib\\\/private\\\/AppFramework\\\/Routing\\\/RouteActionHandler.php(47): OC\\\\AppFramework\\\\App::main('OC\\\\\\\\Settings\\\\\\\\Con...', 'index', Object(OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer), Array)\\n#11 [internal function]: OC\\\\AppFramework\\\\Routing\\\\RouteActionHandler->__invoke(Array)\\n#12 \\\/var\\\/www\\\/cloud\\\/lib\\\/private\\\/Route\\\/Router.php(297): call_user_func(Object(OC\\\\AppFramework\\\\Routing\\\\RouteActionHandler), Array)\\n#13 \\\/var\\\/www\\\/cloud\\\/lib\\\/base.php(999): OC\\\\Route\\\\Router->match('\\\/settings\\\/user')\\n#14 \\\/var\\\/www\\\/cloud\\\/index.php(42): OC::handleRequest()\\n#15 {main}\",\"File\":\"\\\/var\\\/www\\\/cloud\\\/apps\\\/ocdownloader\\\/settings\\\/personal.php\",\"Line\":17}","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/65.0.3325.181 Safari\/537.36","version":"13.0.4.0"}

@e-alfred
Copy link
Owner

@zingmars @My1 Which database type do you use? Can you connect to your databases and show me the contents of the ocdownloader_personalsettings table?

@My1
Copy link

My1 commented Jun 25, 2018

I use MySQL.

there are no contents.

The Structure is ID(int/11, primary/autoincrement), UID (varchar/64, utf8_bin), KEY (varchar/100, utf8_bin), VAL (varchar/255, utf8_bin)

@zingmars
Copy link

I use MariaDB.

Same situation as with @My1.

@blackcrack
Copy link

blackcrack commented Jun 26, 2018

Screenshoot:
https://imgur.com/a/X1RPcGG

Actual Openmandriva 3.X
4.16.13-desktop-1omv SMP Wed May 30 21:45:03 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

apache-mpm-prefork-2.4.29-1-omv2015.0.x86_64

PHP 7.2.3 (cli) (built: Mar 6 2018 23:45:47) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.2.3, Copyright (c) 1999-2018, by Zend Technologies

no problem.. it works, maybe do you not found the config ..

  1. System (Ubuntu/SUSE/Openmandriva or maybe WinNT 1,2,3,4 Microsoft/Reactos !!
  2. Version of the webserver
  3. Version and Name of the DBApp of your System. Mariadb/Mysql/ whatever for a db
  4. Version of PHP

and maybe a screenshoot in Konsole/xterm or in the Shell/Surface

@zingmars
Copy link

zingmars commented Jun 26, 2018

  1. Ubuntu 18.04 LTS (Linux 4.15.0-23-generic Youtube download vs. legal stuff #25-Ubuntu SMP Wed May 23 18:02:16 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux)
  2. nginx version: nginx/1.14.0 (Ubuntu)
  3. mysqld: Ver 10.1.29-MariaDB-6 for debian-linux-gnu on x86_64 (Ubuntu 18.04)
PHP 7.2.5-0ubuntu0.18.04.1 (cli) (built: May  9 2018 17:21:02) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.2.5-0ubuntu0.18.04.1, Copyright (c) 1999-2018, by Zend Technologies

Additionally, here's also the trace log with debug set to true:

Technical details
Remote Address: <removed>
Request ID: IIDBdSDSknviKgYnkG2a
Type: Error
Code: 0
Message: Call to undefined function style()
File: /var/www/cloud/apps/ocdownloader/settings/personal.php
Line: 17

Trace
#0 /var/www/cloud/lib/private/legacy/app.php(708): include()
#1 /var/www/cloud/lib/private/Settings/Manager.php(497): OC_App::getForms('personal')
#2 /var/www/cloud/settings/Controller/CommonSettingsTrait.php(93): OC\Settings\Manager->getPersonalSections()
#3 /var/www/cloud/settings/Controller/CommonSettingsTrait.php(46): OC\Settings\Controller\PersonalSettingsController->formatPersonalSections('personal', 'personal-info')
#4 /var/www/cloud/settings/Controller/CommonSettingsTrait.php(125): OC\Settings\Controller\PersonalSettingsController->getNavigationParameters('personal', 'personal-info')
#5 /var/www/cloud/settings/Controller/PersonalSettingsController.php(57): OC\Settings\Controller\PersonalSettingsController->getIndexResponse('personal', 'personal-info')
#6 [internal function]: OC\Settings\Controller\PersonalSettingsController->index('personal-info')
#7 /var/www/cloud/lib/private/AppFramework/Http/Dispatcher.php(161): call_user_func_array(Array, Array)
#8 /var/www/cloud/lib/private/AppFramework/Http/Dispatcher.php(91): OC\AppFramework\Http\Dispatcher->executeController(Object(OC\Settings\Controller\PersonalSettingsController), 'index')
#9 /var/www/cloud/lib/private/AppFramework/App.php(115): OC\AppFramework\Http\Dispatcher->dispatch(Object(OC\Settings\Controller\PersonalSettingsController), 'index')
#10 /var/www/cloud/lib/private/AppFramework/Routing/RouteActionHandler.php(47): OC\AppFramework\App::main('OC\\Settings\\Con...', 'index', Object(OC\AppFramework\DependencyInjection\DIContainer), Array)
#11 [internal function]: OC\AppFramework\Routing\RouteActionHandler->__invoke(Array)
#12 /var/www/cloud/lib/private/Route/Router.php(297): call_user_func(Object(OC\AppFramework\Routing\RouteActionHandler), Array)
#13 /var/www/cloud/lib/base.php(999): OC\Route\Router->match('/settings/user')
#14 /var/www/cloud/index.php(42): OC::handleRequest()
#15 {main}

It's definitely an odd issue, because I have other addons that add entries to personal settings menu that work just fine.

@e-alfred
Copy link
Owner

e-alfred commented Apr 7, 2019

This probem should be fixed by 374be75.

@e-alfred e-alfred closed this as completed Apr 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

8 participants