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

PHP 7.0 / 7.1 support, install wizard shows blank screen and warnings ? #242

Closed
sapcode opened this Issue Apr 2, 2017 · 15 comments

Comments

Projects
None yet
7 participants
@sapcode

sapcode commented Apr 2, 2017

Dear owa team,
i tried installing owa on PHP 7.0 / 7.1 but it was not possible to overcome the install wizard, just a blank screen. Furthermore minor warnings were shown on the top of the install wizard.
Best regards

@padams

This comment has been minimized.

Show comment
Hide comment
@padams

padams Apr 2, 2017

Owner
Owner

padams commented Apr 2, 2017

@n2bh

This comment has been minimized.

Show comment
Hide comment
@n2bh

n2bh Apr 20, 2017

Same Issue here on CentOS 6.9, both with tarball and master.

After filling in DB details, I get a blank page at

.php?install.php?owa_action=base.installCheckEnv

If I create the config file from command line, I get the follwoing errors

$ touch owa-config.php
$ chmod 0777 owa-config.php
$ chown root.root owa-config.php
$ php cli.php cmd=install

PHP Fatal error: Uncaught Error: Class 'owa_db_' not found in /usr/share/owa/owa_coreAPI.php:102
Stack trace:
#0 /usr/share/owa/owa_coreAPI.php(86): owa_coreAPI::dbFactory()
#1 /usr/share/owa/owa_entity.php(370): owa_coreAPI::dbSingleton()
#2 /usr/share/owa/owa_entity.php(340): owa_entity->getByColumn('id', '1')
#3 /usr/share/owa/modules/base/classes/settings.php(271): owa_entity->getByPk('id', '1')
#4 /usr/share/owa/owa_caller.php(100): owa_settings->load('1')
#5 /usr/share/owa/cli.php(60): owa_caller->__construct()
#6 {main}
thrown in /usr/share/owa/owa_coreAPI.php on line 102

Running on a development server with with PHP 7.1.4

n2bh commented Apr 20, 2017

Same Issue here on CentOS 6.9, both with tarball and master.

After filling in DB details, I get a blank page at

.php?install.php?owa_action=base.installCheckEnv

If I create the config file from command line, I get the follwoing errors

$ touch owa-config.php
$ chmod 0777 owa-config.php
$ chown root.root owa-config.php
$ php cli.php cmd=install

PHP Fatal error: Uncaught Error: Class 'owa_db_' not found in /usr/share/owa/owa_coreAPI.php:102
Stack trace:
#0 /usr/share/owa/owa_coreAPI.php(86): owa_coreAPI::dbFactory()
#1 /usr/share/owa/owa_entity.php(370): owa_coreAPI::dbSingleton()
#2 /usr/share/owa/owa_entity.php(340): owa_entity->getByColumn('id', '1')
#3 /usr/share/owa/modules/base/classes/settings.php(271): owa_entity->getByPk('id', '1')
#4 /usr/share/owa/owa_caller.php(100): owa_settings->load('1')
#5 /usr/share/owa/cli.php(60): owa_caller->__construct()
#6 {main}
thrown in /usr/share/owa/owa_coreAPI.php on line 102

Running on a development server with with PHP 7.1.4

@padams

This comment has been minimized.

Show comment
Hide comment
@padams

padams Apr 26, 2017

Owner

can you turn on debugging on see what errors are throw when you get hat blank page?

The Fatal error you mention above is due to not defining the db_type constant as 'mysql' in the config file.

Owner

padams commented Apr 26, 2017

can you turn on debugging on see what errors are throw when you get hat blank page?

The Fatal error you mention above is due to not defining the db_type constant as 'mysql' in the config file.

@dannycoulombe

This comment has been minimized.

Show comment
Hide comment
@dannycoulombe

dannycoulombe May 18, 2017

I had the same issue. The problem is that /plugins/db/owa_db_mysql.php is using deprecated mysql functions that was removed in PHP7. I'm too lazy to create a patch, but here's my partially working version of 1.60 (rename to .php):

owa_db_mysql.php.txt

dannycoulombe commented May 18, 2017

I had the same issue. The problem is that /plugins/db/owa_db_mysql.php is using deprecated mysql functions that was removed in PHP7. I'm too lazy to create a patch, but here's my partially working version of 1.60 (rename to .php):

owa_db_mysql.php.txt

@dannycoulombe

This comment has been minimized.

Show comment
Hide comment
@dannycoulombe

dannycoulombe May 18, 2017

There are other issues in other pages. I may try to fix it soon.


Notice: Array to string conversion in /**********/modules/base/classes/paginatedResultSet.php on line 237

dannycoulombe commented May 18, 2017

There are other issues in other pages. I may try to fix it soon.


Notice: Array to string conversion in /**********/modules/base/classes/paginatedResultSet.php on line 237

@padams

This comment has been minimized.

Show comment
Hide comment
@padams

padams May 18, 2017

Owner
Owner

padams commented May 18, 2017

@dannycoulombe

This comment has been minimized.

Show comment
Hide comment
@dannycoulombe

dannycoulombe May 18, 2017

This is fixed in master I believe.

Indeed, well... that'll teach me! ^^

dannycoulombe commented May 18, 2017

This is fixed in master I believe.

Indeed, well... that'll teach me! ^^

@dlotton

This comment has been minimized.

Show comment
Hide comment
@dlotton

dlotton Sep 20, 2017

Downloading the master branch fixed the problem with the installer screen going to a blank screen. Now having problems when trying to create a new tracked site profile. When saving settings it renders a blank screen (similar to how the install page behaved).

Apache error.log shows a complaint about an undefined index in Log.php. If I remember correctly, this is similar to the error that was being thrown by the installer page before I downloaded the master branch to fix the php7 problem.

Lingering PHP7 issue in the master branch?

dlotton commented Sep 20, 2017

Downloading the master branch fixed the problem with the installer screen going to a blank screen. Now having problems when trying to create a new tracked site profile. When saving settings it renders a blank screen (similar to how the install page behaved).

Apache error.log shows a complaint about an undefined index in Log.php. If I remember correctly, this is similar to the error that was being thrown by the installer page before I downloaded the master branch to fix the php7 problem.

Lingering PHP7 issue in the master branch?

@padams

This comment has been minimized.

Show comment
Hide comment
@padams

padams Sep 21, 2017

Owner
Owner

padams commented Sep 21, 2017

@dlotton

This comment has been minimized.

Show comment
Hide comment
@dlotton

dlotton Sep 21, 2017

Here's what's showing up in the apache error.log.

[Wed Sep 20 10:07:23.545843 2017] [:error] [pid 2836] [client 10.129.4.161:53164] PHP Notice: Undefined index: in /var/www/owa/includes/Log-1.13.1/Log.php on line 593, referer: http://xxx.yyy.zzz.com/owa/index.php?owa_do=base.sitesProfile

I'm pretty certain this is the same error that was posting when I couldn't get the installer to work. I then downloaded the master branch and thing seemed to be going fine until I tried to create a new tracked site.

dlotton commented Sep 21, 2017

Here's what's showing up in the apache error.log.

[Wed Sep 20 10:07:23.545843 2017] [:error] [pid 2836] [client 10.129.4.161:53164] PHP Notice: Undefined index: in /var/www/owa/includes/Log-1.13.1/Log.php on line 593, referer: http://xxx.yyy.zzz.com/owa/index.php?owa_do=base.sitesProfile

I'm pretty certain this is the same error that was posting when I couldn't get the installer to work. I then downloaded the master branch and thing seemed to be going fine until I tried to create a new tracked site.

@padams

This comment has been minimized.

Show comment
Hide comment
@padams

padams Oct 25, 2017

Owner

Let me know if this doesn't fix your issue.

Owner

padams commented Oct 25, 2017

Let me know if this doesn't fix your issue.

@eboisen

This comment has been minimized.

Show comment
Hide comment
@eboisen

eboisen Oct 25, 2017

eboisen commented Oct 25, 2017

@eboisen

This comment has been minimized.

Show comment
Hide comment
@eboisen

eboisen Oct 25, 2017

eboisen commented Oct 25, 2017

@padams

This comment has been minimized.

Show comment
Hide comment
@padams

padams Oct 26, 2017

Owner

Admin is the default username but the password is not pulled from anywhere. It has to be entered by the user during install.

Owner

padams commented Oct 26, 2017

Admin is the default username but the password is not pulled from anywhere. It has to be entered by the user during install.

@rosnaib11

This comment has been minimized.

Show comment
Hide comment
@rosnaib11

rosnaib11 Aug 13, 2018

Hi can someone help me with my OWA? I am new here.. I have a web server running in centos7, i followed everything found in documentation.. I entered all the correct details in owa-config.php When in the login page, I'd just enetered admin as user and leave the password blank as I didn't remember I assigned any password in my installation. When I hit enter, it became HTTP 500 Internal server error. ANd until now, it's still error.

I'm receiving install.php?owa_action=base.installCheckEnv then blank page.

Please. help.

rosnaib11 commented Aug 13, 2018

Hi can someone help me with my OWA? I am new here.. I have a web server running in centos7, i followed everything found in documentation.. I entered all the correct details in owa-config.php When in the login page, I'd just enetered admin as user and leave the password blank as I didn't remember I assigned any password in my installation. When I hit enter, it became HTTP 500 Internal server error. ANd until now, it's still error.

I'm receiving install.php?owa_action=base.installCheckEnv then blank page.

Please. help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment