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

clicking on the app-button ends on a blank page #3

Closed
Liwindo opened this issue Feb 24, 2016 · 13 comments
Closed

clicking on the app-button ends on a blank page #3

Liwindo opened this issue Feb 24, 2016 · 13 comments

Comments

@Liwindo
Copy link

Liwindo commented Feb 24, 2016

Steps to reproduce

  1. Have the old polls-app installed
  2. Upgrade to the new polls-app
  3. activate the app
  4. click on the app button

Expected behaviour

The app works fine

Actual behaviour

A blank page appears

Server configuration

Operating system: Ubuntu 14.04.4

Web server: apache with nginx proxy

Database: mysql 5.5.47-0ubuntu0.14.04.1

PHP version: 7.0.3

ownCloud version: 8.2.2

### Logs
#### ownCloud log (data/owncloud.log)

TypeError: Argument 2 passed to OCP\AppFramework\Db\Mapper::findEntities() must be of the type array, null given, called in /var/www/vhosts/domain.tld/owncloud/apps/polls/db/eventmapper.php on line 47 at /var/www/vhosts/domain.tld/owncloud/lib/public/appframework/db/mapper.php#318


Additionally I tried the downloaded source code (V. 0.6.9.1). With it the folder-rights-problem does not occur but the blank page problem still exists. Obviously are the folder rights in the 0.6.9 release not set correct.

@v1r0x
Copy link
Collaborator

v1r0x commented Feb 24, 2016

I don't know if PHP7 is a problem. I'm currently trying to set up a VM with PHP7 to check if I have the same problem. Do you have a oc instance with an older php version? You said you tried it on several systems. Are there any differences between your systems?

Additionally I tried the downloaded source code (V. 0.6.9.1). With it the folder-rights-problem does not occur but the blank page problem still exists. Obviously are the folder rights in the 0.6.9 release not set correct.

You could also try the current master. I made some small fixes (unrelated to you error, but maybe it works).

@Liwindo
Copy link
Author

Liwindo commented Feb 24, 2016

Indeed, PHP 7 is the problem. With 5.6.18 it works fine.

@v1r0x
Copy link
Collaborator

v1r0x commented Feb 24, 2016

Can confirm that. Same problem on PHP7 for me. I'll look into it.

@v1r0x
Copy link
Collaborator

v1r0x commented Feb 25, 2016

@Liwindo Could you please test the PR #4 with your PHP7 instance?

@MarekPikula
Copy link

I had the same situation and it works for me (CentOS 7, PHP-FPM 7.0.3 from remi repo).
UPDATE: I don't see blank page, but after I add new poll I see blank page. Poll is added though. The same is for Vote.

@ghost
Copy link

ghost commented Feb 25, 2016

@Liwindo @MarPiRK Btw. you guys should be aware that oC 8.2.2 is not compatible with PHP 7. Watch out for oC 8.2.3 to get compatibility with that version of PHP.

@v1r0x
Copy link
Collaborator

v1r0x commented Feb 25, 2016

UPDATE: I don't see blank page, but after I add new poll I see blank page. Poll is added though. The same is for Vote.

Sorry, totally forgot about it! There was a bug in core which returned a wrong http status code for the redirect response I use in this case. I'll try to find a workaround or, if this doesn't work add a note to the readme file (#5).
If you want to fix it for your server, see this PR for the lines you have to edit.

@Liwindo @MarPiRK Btw. you guys should be aware that oC 8.2.2 is not compatible with PHP 7. Watch out for oC 8.2.3 to get compatibility with that version of PHP.

I thought 8.2 is already compatible with PHP 7. At least that's what I read while trying to setup a VM with PHP7.

@ghost
Copy link

ghost commented Feb 25, 2016

I thought 8.2 is already compatible with PHP 7. At least that's what I read while trying to setup a VM with PHP7.

Unfurtunately not. The SabreDAV lib shipped with oC 8.2.2 and earlier is not PHP 7 compatible:

owncloud/core#21914, owncloud/core#21938

@MarekPikula
Copy link

@v1r0x Nice, with this fix everything works.
@RealRancor Basing on https://owncloud.org/blog/php-7-is-here-and-owncloud-is-ready/ it looks like core is compatible in general – only Calendar and Contacts apps (which utilize SabreDAV from core) have some issues.

@ghost
Copy link

ghost commented Feb 25, 2016

@MarPiRK Everything what is SabreDAV (WebDAV, CalDAV, CardDAV) might have or has issues with PHP7.

@MarekPikula
Copy link

@RealRancor Good to know

@Liwindo
Copy link
Author

Liwindo commented Feb 26, 2016

I can confirm that it works now. But is it normal that the background of a created polls gets white when I put the mouse curser on it? Have a look: http://www.directupload.net/file/d/4276/veex8tm4_png.htm

@v1r0x v1r0x closed this as completed Feb 26, 2016
@v1r0x
Copy link
Collaborator

v1r0x commented Feb 26, 2016

Yes and no. Didn't know why it has been this way, but found the problem ;)

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

3 participants