turnermm / ckgedit

CKEditor integrated into Dokuwiki
https://www.dokuwiki.org/plugin:ckgedit
GNU General Public License v2.0
59 stars 50 forks source link

A warning above the editor and settings page and a problem when saving the settings #674

Closed FunctionSir closed 2 years ago

FunctionSir commented 2 years ago

There is a warning above the editor:

Warning: Declaration of renderer_plugin_ckgedit::header($text, $level, $pos) should be compatible with Doku_Renderer_xhtml::header($text, $level, $pos, $returnonly = false) in D:\DokuWikiStick\dokuwiki\lib\plugins\ckgedit\renderer.php on line 68

There is some warning lines above the settings page:

Warning: Declaration of renderer_plugin_ckgedit::header($text, $level, $pos) should be compatible with Doku_Renderer_xhtml::header($text, $level, $pos, $returnonly = false) in D:\DokuWikiStick\dokuwiki\lib\plugins\ckgedit\renderer.php on line 68
Warning: Cannot modify header information - headers already sent by (output started at D:\DokuWikiStick\dokuwiki\lib\plugins\ckgedit\renderer.php:17) in D:\DokuWikiStick\dokuwiki\inc\actions.php on line 38
Warning: Cannot modify header information - headers already sent by (output started at D:\DokuWikiStick\dokuwiki\lib\plugins\ckgedit\renderer.php:17) in D:\DokuWikiStick\dokuwiki\lib\tpl\mindthedark\main.php on line 12

When I pressed the save botton of the settings page, there is a page that only some text on it:

Warning: Declaration of renderer_plugin_ckgedit::header($text, $level, $pos) should be compatible with Doku_Renderer_xhtml::header($text, $level, $pos, $returnonly = false) in D:\DokuWikiStick\dokuwiki\lib\plugins\ckgedit\renderer.php on line 68
设置更新成功。
Warning: Cannot modify header information - headers already sent by (output started at D:\DokuWikiStick\dokuwiki\lib\plugins\ckgedit\renderer.php:17) in D:\DokuWikiStick\dokuwiki\inc\common.php on line 1817

When I press F5 to refresh, it's still not disappear. When I press the "Back" button of the browser, it can returned to the settings page. The information below may can help you:

anon_id f7083a03a9cdc5e80fb5b71703484ea4
version Release rc2022-06-26 "Igor" RC2
popversion  2015-07-15
language    zh
now 1657375926
popauto 0
conf_useacl 1
conf_authtype   authplain
conf_template   mindthedark
page_count  15
page_size   29007
page_biggest    22666
page_smallest   1
page_nscount    4
page_nsnest 1
page_avg    1933.8
page_oldest 1656254334
media_count 2
media_size  37212
media_biggest   27895
media_smallest  9317
media_nscount   1
media_nsnest    1
media_avg   18606
cache_count 435
cache_size  5203727
cache_biggest   503435
cache_smallest  0
cache_avg   11962.590804598
index_count 33
index_size  3586
index_biggest   1156
index_smallest  4
index_avg   108.66666666667
meta_count  35
meta_size   12061
meta_biggest    1855
meta_smallest   1
meta_avg    344.6
attic_count 10
attic_size  1055
attic_biggest   411
attic_smallest  27
attic_avg   105.5
attic_oldest    1657119169
user_count  2
edits_per_day   3.3989653612384
plugin  acl
plugin  authplain
plugin  captcha
plugin  ckgedit
plugin  config
plugin  extension
plugin  gallery
plugin  info
plugin  logviewer
plugin  popularity
plugin  revert
plugin  safefnrecode
plugin  styling
plugin  translation
plugin  upgrade
plugin  userhomepage
plugin  usermanager
plugin  vshare
plugin  wrap
pcre_version    10.35 2020-05-09
pcre_backtrack  20971520
pcre_recursion  100000
os  WINNT
webserver   Apache/2.4.46 (Win32) PHP/7.4.12
php_version 7.4.12
php_sapi    apache2handler
php_memory  134217728
php_exectime    120
php_extension   Core
php_extension   bcmath
php_extension   calendar
php_extension   ctype
php_extension   date
php_extension   filter
php_extension   hash
php_extension   iconv
php_extension   json
php_extension   SPL
php_extension   pcre
php_extension   readline
php_extension   Reflection
php_extension   session
php_extension   standard
php_extension   mysqlnd
php_extension   tokenizer
php_extension   zip
php_extension   zlib
php_extension   libxml
php_extension   dom
php_extension   PDO
php_extension   bz2
php_extension   SimpleXML
php_extension   xml
php_extension   xmlreader
php_extension   xmlwriter
php_extension   apache2handler
php_extension   openssl
php_extension   gd
php_extension   ldap
php_extension   mbstring
php_extension   Phar
php_extension   pdo_sqlite
php_extension   Zend OPcache

Thank you for reading this issue.

turnermm commented 2 years ago

This is a known problem with PHP 8. See #673 for link to fix

FunctionSir commented 2 years ago

Emm, but the information show that I'm using PHP7. I am using a version with a apache embeded, downloaded from the offical dokuwiki site.

webserver   Apache/2.4.46 (Win32) PHP/7.4.12
php_version 7.4.12
php_sapi    apache2handler
FunctionSir commented 2 years ago

https://github.com/turnermm/ckgedit/archive/refs/heads/php8.zip from #673 is worked, thanks!