So, I'm shooting to get the Maia port updated for FreeBSD in order to
work with PHP7 (as almost all PHP applications have migrated to). The
install goes fine, configtest.pl/configtest.php both look good.
Everything installs as expected and looks good after a few minor changes
to the port. However, I'm getting a blank login page which I haven't
been able to figure out (yet) and was curious if anyone else has run
into this yet (forgive me if this has already been covered but I
couldn't find any info on the mailing lists or Github page...). Below
is snippet from the log which has some warnings and finally the fatal
error. Any help would be greatly appreciated!
If the below doesn't come out very readable, it can also be found at
http://paste.purplehat.org/view/26532b5f
[Sat Sep 15 10:54:10.922180 2018] [php7:notice] [pid 91494] [client
172.28.35.18:20952] PHP Notice:Â Only variables should be assigned by
reference in /usr/local/www/maia/maia_log.php on line 87
[Sat Sep 15 10:54:10.922389 2018] [php7:notice] [pid 91494] [client
172.28.35.18:20952] PHP Notice:Â Only variables should be assigned by
reference in /usr/local/www/maia/maia_log.php on line 92
[Sat Sep 15 10:54:11.019177 2018] [php7:notice] [pid 91494] [client
172.28.35.18:20952] PHP Notice:Â Only variables should be assigned by
reference in /usr/local/www/maia/maia_log.php on line 87
[Sat Sep 15 10:54:11.019308 2018] [php7:notice] [pid 91494] [client
172.28.35.18:20952] PHP Notice:Â Only variables should be assigned by
reference in /usr/local/www/maia/maia_log.php on line 92
[Sat Sep 15 10:54:11.019874 2018] [php7:warn] [pid 91494] [client
172.28.35.18:20952] PHP Warning:Â count(): Parameter must be an array or
an object that implements Countable in /usr/local/share/pear/MDB2.php on
line 826
[Sat Sep 15 10:54:11.021245 2018] [php7:notice] [pid 91494] [client
172.28.35.18:20952] PHP Notice:Â A non well formed numeric value
encountered in /usr/local/share/pear/MDB2/Driver/mysqli.php on line 1154
[Sat Sep 15 10:54:11.079592 2018] [php7:notice] [pid 91494] [client
172.28.35.18:20952] PHP Notice:Â A non well formed numeric value
encountered in /usr/local/share/pear/MDB2/Driver/mysqli.php on line 1154
[Sat Sep 15 10:54:11.102862 2018] [php7:notice] [pid 91494] [client
172.28.35.18:20952] PHP Notice:Â A non well formed numeric value
encountered in /usr/local/share/pear/MDB2/Driver/mysqli.php on line 1154
[Sat Sep 15 10:54:11.103505 2018] [php7:notice] [pid 91494] [client
172.28.35.18:20952] PHP Notice:Â A non well formed numeric value
encountered in /usr/local/share/pear/MDB2/Driver/mysqli.php on line 1154
[Sat Sep 15 10:54:11.103983 2018] [php7:notice] [pid 91494] [client
172.28.35.18:20952] PHP Notice:Â A non well formed numeric value
encountered in /usr/local/share/pear/MDB2/Driver/mysqli.php on line 1154
[Sat Sep 15 10:54:11.104440 2018] [php7:notice] [pid 91494] [client
172.28.35.18:20952] PHP Notice:Â A non well formed numeric value
encountered in /usr/local/share/pear/MDB2/Driver/mysqli.php on line 1154
[Sat Sep 15 10:54:11.104933 2018] [php7:notice] [pid 91494] [client
172.28.35.18:20952] PHP Notice:Â A non well formed numeric value
encountered in /usr/local/share/pear/MDB2/Driver/mysqli.php on line 1154
[Sat Sep 15 10:54:11.120424 2018] [php7:notice] [pid 91494] [client
172.28.35.18:20952] PHP Notice:Â A non well formed numeric value
encountered in /usr/local/share/pear/MDB2/Driver/mysqli.php on line 1154
[Sat Sep 15 10:54:11.120929 2018] [php7:notice] [pid 91494] [client
172.28.35.18:20952] PHP Notice:Â A non well formed numeric value
encountered in /usr/local/share/pear/MDB2/Driver/mysqli.php on line 1154
[Sat Sep 15 10:54:11.133056 2018] [php7:error] [pid 91494] [client
172.28.35.18:20952] PHP Fatal error:Â Uncaught Error: Call to undefined
method ThemeSmarty::addPluginsDir() in
/usr/local/www/maia/smarty.php:99\nStack trace:\n#0
/usr/local/www/maia/smarty.php(189):
ThemeSmarty->ThemeSmarty('desert_sand')\n#1
/usr/local/www/maia/login.php(122):
require_once('/usr/local/www/...')\n#2 {main}\n thrown in
/usr/local/www/maia/smarty.php on line 99
Post by Derek AtkinsPost by Ian R. JustmanAnd as far as I know, the PHP side of the house has yet to be updated
to support PHP7. Given what little I know of PHP in general (and how
much the whole notion of PHP scares me when it comes to security*1,
I'm scared to death of even thinking of trying.
I've been led to believe (although I have not yet tested it) that maia
does support PHP7. There were certainly some updates to the config
tester for PHP7.
I'm in the process of testing (on a Fedora system) so I'll let you all
know what I find once I get that far.
-derek