Ok, I have fixed most of my errors I have run into:
Warning: imagecreatefromstring(): gd-png: libpng warning: iCCP: known incorrect sRGB profile in /var/www/html/lib/plugins/dw2pdf/vendor/mpdf/mpdf/src/Image/ImageProcessor.php on line 581
This error came from a warning, that should normally just be ignored, and are ignored automatically by PHP already.
I changed line 581 from:
$img = imagecreatefrompng($file);
to:
$img = @imagecreatefrompng($file);
The @ means that it ignores warnings.
I ran into a problem with plugin pagenav that kept complaining about it in the handle function trying to explode [<>] into an array, and that caused an error in some cases. I could avoid it by using [<> firstwordinpages.*] since all my pages in that namespace had the same name followed by a number.
It should be relatively simple to fix:
public function handle($match, $state, $pos, Doku_Handler $handler)
{
//split the match in it's parts
$match = substr($match, 1, -1);
list($mode, $glob) = explode(' ', $match, 2);
$mode = (int)substr($mode, 1, -1);
if (!$mode) $mode = 2 + 4 + 8;
return array(strtolower(trim($glob)), $mode);
}
Source: https://github.com/cosmocode/pagenav/syntax.php#L41
It's the list($mode, $glob) = explode(' ', $match, 2):
line that fails with the error:
E_WARNING: Undefined array key 1/var/www/html/lib/plugins/pagenav/syntax.php(44)
#0 /var/www/html/lib/plugins/pagenav/syntax.php(44): dokuwiki\ErrorHandler::errorHandler(2, 'Undefined array...', '/var/www/html/l...', 44)
#1 /var/www/html/inc/parser/handler.php(298): syntax_plugin_pagenav->handle('<>', 5, 13, Object(Doku_Handler))
#2 /var/www/html/inc/Parsing/Lexer/Lexer.php(269): Doku_Handler->plugin('[<>]', 5, 13, 'pagenav')
#3 /var/www/html/inc/Parsing/Lexer/Lexer.php(196): dokuwiki\Parsing\Lexer\Lexer->invokeHandler('[<>]', 5, 13)
#4 /var/www/html/inc/Parsing/Lexer/Lexer.php(146): dokuwiki\Parsing\Lexer\Lexer->dispatchTokens('', '[<>]', '_plugin_pagenav', 13, 13)
#5 /var/www/html/inc/Parsing/Parser.php(113): dokuwiki\Parsing\Lexer\Lexer->parse('\n<WRAP onlyprin...')
#6 /var/www/html/inc/parserutils.php(234): dokuwiki\Parsing\Parser->parse('\n~~NOCACHE~~\n[<...')
#7 /var/www/html/lib/plugins/templater/syntax.php(180): p_get_instructions('~~NOCACHE~~\n[<>...')
#8 /var/www/html/inc/parser/renderer.php(126): syntax_plugin_templater->render('xhtml', Object(Doku_Renderer_xhtml), Array)
#9 /var/www/html/inc/parserutils.php(691): Doku_Renderer->plugin('templater', Array, 5, '{{template>case...')
#10 /var/www/html/inc/parserutils.php(158): p_render('xhtml', Array, NULL)
#11 /var/www/html/inc/parserutils.php(97): p_cached_output('/var/www/html/d...', 'xhtml', 'case:redacted-2402')
#12 /var/www/html/inc/Ui/PageView.php(67): p_wiki_xhtml('case:redacted-2402', 0, true, '')
#13 /var/www/html/inc/Action/Show.php(40): dokuwiki\Ui\PageView->show()
#14 /var/www/html/inc/template.php(120): dokuwiki\Action\Show->tplContent()
#15 [internal function]: tpl_content_core('show')
#16 /var/www/html/inc/Extension/Event.php(134): call_user_func_array('tpl_content_cor...', Array)
#17 /var/www/html/inc/Extension/Event.php(200): dokuwiki\Extension\Event->trigger('tpl_content_cor...', true)
#18 /var/www/html/inc/template.php(102): dokuwiki\Extension\Event::createAndTrigger('TPL_ACT_RENDER', 'show', 'tpl_content_cor...')
#19 /var/www/html/lib/tpl/mindthedark/main.php(97): tpl_content()
#20 /var/www/html/inc/actions.php(30): include('/var/www/html/l...')
#21 /var/www/html/doku.php(131): act_dispatch()
#22 {main}
EDIT:
Scratch that, I found that I could use the same solution for PAGENAV as I did for dw2pdf:
Add an @ in front of the List function in syntax.php.
Before:
list($mode, $glob) = explode(' ', $match, 2);
After:
@list($mode, $glob) = explode(' ', $match, 2);
This suppresses the error message, but it doesn't seem to effect the functionality.
I guess it would be more correct to fix it by changing the function.. but this is good enough for me, for now.