Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Explicitly declare pData fields as arrays #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

fix: Explicitly declare pData fields as arrays #2

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented Nov 8, 2020

This solves the following error that was preventing DokuWiki pages that used the plugin to load:

[08-Nov-2020 19:58:08 Europe/Lisbon] PHP Warning:  Illegal string offset 'Format' in /home4/diffrac3/public_html/wiki/lib/plugins/charter/lib/pchart/pData.class.php on line 58
[08-Nov-2020 19:58:08 Europe/Lisbon] PHP Fatal error:  Uncaught Error: Cannot use string offset as an array in /home4/diffrac3/public_html/wiki/lib/plugins/charter/lib/pchart/pData.class.php:58
Stack trace:
#0 /home4/diffrac3/public_html/wiki/lib/plugins/charter/helper.php(360): pData->pData()
#1 /home4/diffrac3/public_html/wiki/lib/plugins/charter/helper.php(319): helper_plugin_charter->_createGraphData(Array)
#2 /home4/diffrac3/public_html/wiki/lib/plugins/charter/syntax.php(82): helper_plugin_charter->render('/home4/diffrac3...')
#3 /home4/diffrac3/public_html/wiki/inc/parser/handler.php(279): syntax_plugin_charter->handle('<charter>\ntype ...', 5, 1749, Object(Doku_Handler))
#4 /home4/diffrac3/public_html/wiki/inc/Parsing/Lexer/Lexer.php(270): Doku_Handler->plugin('<charter>\ntype ...', 5, 1749, 'charter')
#5 /home4/diffrac3/public_html/wiki/inc/Parsing/Lexer/Lexer.php(197): dokuwiki\Parsing\Lexer\Lexer->invokeHandler('<charter>\ntype ...', 5, 1749)
#6 /home4/diffrac3/public_html/wiki/inc/Parsing/Lexer/Lexer.php(147): dokuwiki\Parsing\Lexer\Lexer->dispatchTok in /home4/diffrac3/public_html/wiki/lib/plugins/charter/lib/pchart/pData.class.php on line 58

@ghost ghost mentioned this pull request Nov 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant