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

Internal Server Error after Updating Theming App to 1.4.4 #9595

Closed
nickian opened this issue May 25, 2018 · 17 comments
Closed

Internal Server Error after Updating Theming App to 1.4.4 #9595

nickian opened this issue May 25, 2018 · 17 comments

Comments

@nickian
Copy link

nickian commented May 25, 2018

Steps to reproduce

  1. Update "Theming" app to 1.4.4
  2. Go to Theming settings in Administration

Expected behaviour

Be able to go to admin, theme settings and modify them.

Actual behaviour

Internal Server Error

The server was unable to complete your request. If this happens again, please send the technical details below to the server administrator. More details can be found in the server log.

Server configuration

Operating system: Ubuntu 16.04

Web server: Apache

Database: MySQL

PHP version: 7.0

Nextcloud version: (see Nextcloud admin page) 13.0.2

Logs

Web server error log

No errors in Apache log.

Nextcloud log (data/nextcloud.log)

Error: Call to undefined method OCA\Theming\ThemingDefaults::getImprintUrl()

/www/settings/Controller/CommonSettingsTrait.php - line 115: OCA\Theming\Settings\Admin->getForm()

/www/settings/Controller/AdminSettingsController.php - line 74: OC\Settings\Controller\AdminSettingsController->formatSettings(Array)

/www/settings/Controller/CommonSettingsTrait.php - line 126: OC\Settings\Controller\AdminSettingsController->getSettings('theming')

/www/settings/Controller/AdminSettingsController.php - line 65: OC\Settings\Controller\AdminSettingsController->getIndexResponse('admin', 'theming')
[internal function] OC\Settings\Controller\AdminSettingsController->index('theming')

/www/lib/private/AppFramework/Http/Dispatcher.php - line 161: call_user_func_array(Array, Array)

/www/lib/private/AppFramework/Http/Dispatcher.php - line 91: OC\AppFramework\Http\Dispatcher->executeController(Object(OC\Settings\Controller\AdminSettingsController), 'index')

/www/lib/private/AppFramework/App.php - line 115: OC\AppFramework\Http\Dispatcher->dispatch(Object(OC\Settings\Controller\AdminSettingsController), 'index')

/www/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)

/www/lib/private/Route/Router.php - line 297: call_user_func(Object(OC\AppFramework\Routing\RouteActionHandler), Array)

/www/lib/base.php - line 999: OC\Route\Router->match('/settings/admin...')

/www/index.php - line 37: OC handleRequest()

{main}
@MorrisJobke
Copy link
Member

cc @blizzz @juliushaertl

@juliusknorr
Copy link
Member

I cannot reproduce that error. @nickian Can you try to install the app again by downloading the app store release and replacing the files manually? Maybe there was an issue when replacing the files.

@blizzz
Copy link
Member

blizzz commented May 25, 2018

Cannot reproduce it either. How do you run Nextcloud? Using the docker appliance, or different app paths? Is opcache configured and configured correctly (i.e. no warnings on admin page)?

@Moimemeici
Copy link

I have this problem,

I'am using Docker

@blizzz
Copy link
Member

blizzz commented May 25, 2018

Docker: it might be related to nextcloud/docker#288 in that case it should work with next maintenance release.

@nickian
Copy link
Author

nickian commented May 25, 2018

I'm not using Docker. I just installed normally by downloading the files. I'll see if I can reinstall the plugin.

@nickian
Copy link
Author

nickian commented May 25, 2018

Yes, must have been an issue that occurred during the update process. When I replaced the Theming files manually it fixed the issue. However, this did happen on 3 different NextCloud installations for me (granted they are on the same server).

@nickian
Copy link
Author

nickian commented May 25, 2018

Perhaps it was a caching issue of some sort. Now the Theming app is working on all installs today (I only replaced the files on one, but they're actually all working now).

@osos
Copy link

osos commented May 25, 2018

I have the same internal error. Same setup as @nickian

Not sure I understand the fix. Please advise!

@osos
Copy link

osos commented May 25, 2018

Sorry for the ignorance.

Steps to fix:

  1. Goto https://apps.nextcloud.com/apps/theming
  2. Download latest (https://github.com/nextcloud/server/files/2037121/theming.tar.gz)
  3. untar into /path/to/nextcloud/apps/theming

@blizzz
Copy link
Member

blizzz commented May 25, 2018

See my questions from #9595 (comment) ...abd yes, it sounds like an (op)cache issue.

Out of curiosity, why didn't you upgrade from within the apps management?

@nickian
Copy link
Author

nickian commented May 25, 2018

@blizzz I did upgrade within apps management.

Actually, my admin/basic settings page did say "No memory cache has been configured." I have since added those lines for APCu and Redis to my config.

That shouldn't matter though. The documentation says: "A memcache is not required and you may safely ignore the warning if you prefer."

@blizzz
Copy link
Member

blizzz commented May 25, 2018

@nickian rather misconfigured opcache, but then you'd also see warnings on the admin page.

@mr-bolle
Copy link

The reason is, that the default app path are not writeable.
I change 'writable' => false, to 'writable' => true,
into my config/config.php. And try the Update of the app again.

Yes this is the same issue like nextcloud/docker#288

'apps_paths' =>
array (
0 =>
array (
'path' => '/var/www/html/apps',
'url' => '/apps',
'writable' => false,
),

@michaelarnauts
Copy link

I tried this and changed the writable to true on the config, and after a restart, the app still doesn't update. The files in app are owned by www-data:root.

There don't seem to be any log entry produced by this.

@mr-bolle
Copy link

mr-bolle commented Jun 1, 2018

A log entry you don't get, only after refresh the application page the update appears again. If your app path permission into your config.php is set to 'writable' => true, it should works.

@nextcloud-bot nextcloud-bot added the stale Ticket or PR with no recent activity label Jul 2, 2018
@juliusknorr
Copy link
Member

Closing this in favour of #8929

@nextcloud-bot nextcloud-bot removed the stale Ticket or PR with no recent activity label Oct 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants