owncloud-archive / news

:newspaper: News app for ownCloud
GNU Affero General Public License v3.0
290 stars 106 forks source link

Cannot enable: `Unable to parse malformed url: http://` #953

Closed kuba-orlik closed 8 years ago

kuba-orlik commented 8 years ago

I cannot enable the News app. An error message saying Unable to parse malformed url: http:// shows up.

Steps to Reproduce

Explain what you did to encounter the issue

  1. Log in as admin
  2. Go to /settings/apps?category=multimedia
  3. Find "News" and click "Enable"
  4. An error message show up:
Unable to parse malformed url: http://

System Information

I'm using OwnCloud's Docker container, version 9.0.0

{"reqId":"n1lklqi7gSS8oG9ovZh3","remoteAddr":"188.146.134.121","app":"PHP","message":"Undefined index: extension at \/var\/www\/html\/lib\/private\/installer.php#272","level":3,"time":"2016-03-28T09:38:31+00:00"}
{"reqId":"n1lklqi7gSS8oG9ovZh3","remoteAddr":"188.146.134.121","app":"core","message":"Unable to parse malformed url: http:\/\/","level":3,"time":"2016-03-28T09:38:31+00:00"}

Contents of Browser Error Console

No errors

BernhardPosselt commented 8 years ago

See this issue https://github.com/owncloud/appstore-issues/issues/55

For now, download the package from the github releases page (news.tar.gz) https://github.com/owncloud/news/releases/tag/8.0.0

kuba-orlik commented 8 years ago

Thank you for your response. I've downloaded the news.tar.gz file into the docker container and unpacked it into /var/www/html/apps, so there's a news directory owned by the www-data user, but I still cannot enable the application - the same error appears:

Unable to parse malformed url: http://

What am I missing?

BernhardPosselt commented 8 years ago

Can you try to extract it to /var/www/html/owncloud/apps ? I'm unsure if a separarte apps directory is supported. Works for me when using a fresh install btw.

benediktg commented 8 years ago

For me the workaround with manually download the app and activating it with

sudo -u www-data php /var/www/owncloud/occ app:enable news

did the job. It seems to work with the news folder owned by root – or is it better if I give the ownership to www-data?

BernhardPosselt commented 8 years ago

www-data otherwise core can't update/delete the app

BernhardPosselt commented 8 years ago

It seems that the correct download is now online, can you check? Probably caching issues on the appstore's side

kuba-orlik commented 8 years ago

I tried enabling it now and it shows another error:

App can't be installed because the version in info.xml/version is not the same as the version reported from the app store
BernhardPosselt commented 8 years ago

OK, this happens because the uploaded archive does not overwrite the old one, nothing I can do

kuba-orlik commented 8 years ago

Ok, I managed to enable the app via the terminal command. Thanks! :)

BernhardPosselt commented 8 years ago

Closing this on favor of #958 which has a better description