Tóth Attila
2017-02-15 21:13:10 UTC
I've just tried to upgrade from php-7.0 to php-7.1.
Using php-7.0 tiki shows up fine.
Switching to php-7.1 results in a blank page. I migrated my changes to the
php configuration from 7.0 to 7.1. Other php pages render fine, like for
example squirrelmail or dadabik. So there's something specific with Tiki.
All I can see in the logs is a PHP Notice in the logs:
"
PHP Notice: A non well formed numeric value encountered in
/var/www/localhost/htdocs/tiki/lib/core/Tiki/MemoryLimit.php on line 50
"
Making this change to the source code solves the error message:
"
diff -urNp orig/lib/core/Tiki/MemoryLimit.php
dwok/lib/core/Tiki/MemoryLimit.php
--- orig/lib/core/Tiki/MemoryLimit.php 2017-02-15 21:59:58.901925668 +0100
+++ dwok/lib/core/Tiki/MemoryLimit.php 2017-02-15 21:59:17.000000000 +0100
@@ -43,7 +43,7 @@ class Tiki_MemoryLimit
private function getRaw($memory_limit)
{
- $s = trim($memory_limit);
+ $s = (int) trim($memory_limit);
$last = strtolower($s{strlen($s)-1});
switch ( $last ) {
case 'g': $s *= 1024;
"
However tiki still shows a blank page and returns HTTP status 500. I can
see no particular entries in any log files - either apache or system
related.
"
[15/Feb/2017:22:03:57 +0100] "GET /tiki/tiki-view_blog.php?blogId=4
HTTP/1.1" 500 -
"
I'm not sure here whether tiki-16.2 ment to work with php-7.1?
Are there any ideas how I can squeeze out some error messages apart from
status code 500?
Thanks:
Dw.
Using php-7.0 tiki shows up fine.
Switching to php-7.1 results in a blank page. I migrated my changes to the
php configuration from 7.0 to 7.1. Other php pages render fine, like for
example squirrelmail or dadabik. So there's something specific with Tiki.
All I can see in the logs is a PHP Notice in the logs:
"
PHP Notice: A non well formed numeric value encountered in
/var/www/localhost/htdocs/tiki/lib/core/Tiki/MemoryLimit.php on line 50
"
Making this change to the source code solves the error message:
"
diff -urNp orig/lib/core/Tiki/MemoryLimit.php
dwok/lib/core/Tiki/MemoryLimit.php
--- orig/lib/core/Tiki/MemoryLimit.php 2017-02-15 21:59:58.901925668 +0100
+++ dwok/lib/core/Tiki/MemoryLimit.php 2017-02-15 21:59:17.000000000 +0100
@@ -43,7 +43,7 @@ class Tiki_MemoryLimit
private function getRaw($memory_limit)
{
- $s = trim($memory_limit);
+ $s = (int) trim($memory_limit);
$last = strtolower($s{strlen($s)-1});
switch ( $last ) {
case 'g': $s *= 1024;
"
However tiki still shows a blank page and returns HTTP status 500. I can
see no particular entries in any log files - either apache or system
related.
"
[15/Feb/2017:22:03:57 +0100] "GET /tiki/tiki-view_blog.php?blogId=4
HTTP/1.1" 500 -
"
I'm not sure here whether tiki-16.2 ment to work with php-7.1?
Are there any ideas how I can squeeze out some error messages apart from
status code 500?
Thanks:
Dw.
--
dr Tóth Attila, Radiológus, 06-20-825-8057
Attila Toth MD, Radiologist, +36-20-825-8057
dr Tóth Attila, Radiológus, 06-20-825-8057
Attila Toth MD, Radiologist, +36-20-825-8057