farvardin / lionwiki-t2t

3 stars 0 forks source link

upgrade to PHP 8.2 #3

Open farvardin opened 4 months ago

farvardin commented 4 months ago

there is a problem linked to headers with php 8.2:

Warning: Cannot modify header information - headers already sent by (output started at /mnt/ERICDATA/_mesdocs/mes_vcs/lionwiki-t2t/lionwiki-t2t/index.php:154) in /mnt/ERICDATA/_mesdocs/mes_vcs/lionwiki-t2t/lionwiki-t2t/index.php on line 184

https://stackoverflow.com/questions/8028957/how-to-fix-headers-already-sent-error-in-php

farvardin commented 4 months ago

it's a plugin located into plugins which causes the error

farvardin commented 4 months ago

all those plugins seems to be problematic:

wkp_Admin.php wkp_Captcha.php wkp_IndexBlog.php wkp_SelectTemplate.php wkp_AjaxEditing.php wkp_Footnotes.php wkp_Index.php wkp_Upload.php wkp_BetterEditor.php wkp_ImageExt.php wkp_InlineDiff.php

farvardin commented 4 months ago

that's not correct: it looks like more than 11 plugins in the plugins folder will cause the problem (and some plugins are indeed problematic)

farvardin commented 4 months ago

only wkp_BetterEditor.php and wkp_Upload.php are still problematic at the moment, I've fixed a few others

farvardin commented 3 months ago

If your wiki is blank after an upgrade, it might be because of php 8.2

use php 7.4 if possible, or otherwise you can do this: