Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Warning: A non-numeric value encountered in wiki/inc/common.php on line 1675 #2756
I have set to the current version (2018-04-22b "Greebo", download 14.4.2019) with PHP 7.2, the data taken from the old installation (data / pages, data / media) and get erroneous error message instead of images.
I have changed the line and it works again:
Ok, who doesn't want, doesn't want.
But so that others are not put on the wrong track, here is some background information:
DokuWiki definitely can not calculate images under these conditions:
The root cause is that DokuWiki can not interpret the value of "-1" correctly.
As already stated, here are the solutions that will eliminate the root cause (and not the aftereffects of this incompatibility).
BTW: I guess it would be a good idea to offer a corresponding hotfix. This problem is always in demand, again and again. 1&1 is one of the largest mass providers in Germany. There are now only the PHP versions offered, with which (in connection with Greebo) the malfunction occurs. That is, almost all DokuWiki users at 1&1 are affected.
HTH - Michael Sy.
Thanks for the background information.
I wonder why you work with
With the change in the function everything works. View upload - the images are displayed correctly.
As you wrote, the next one will stumble over it, too. I think the small change in the function is also the better solution - everything else is too complicated.
This refactors the php_to_byte() method to properly return integers always. A bug when reading byte sizes under 10 bytes was fixed. Infinity (signaled by a -1 in php.ini) is now returned as -1. According to  PHP supports size shortcuts for (K)ilobytes, (M)egabytes and (G)igagbytes only. The support for Tera- and Petabytes has been removed.  https://www.php.net/manual/en/faq.using.php#faq.using.shorthandbytes
* master: (34 commits) fix color for noninstalled extensions show disabled extensions in gray warn about inaccessible repo api bugfix: access check was never cached First go on a CLI component for the extension manager use strict type comparison translation update translation update fix #dokuwiki__sitetools current item not in highlight due to Greebo change authplain: Add tests for group retrieval authplain: Add a simple method for retrieving user groups translation update Negative string offsets are allowed in PHP 7.1+ only improve memory check output fix and test php_to_byte() related to #2756 #2556 translation update translation update translation update translation update translation update ...