After upgrading from Ponder Stibbons to Hrun, I found that pages containing:
~~DIR~~
do not render.
If you use ~~DIR~~ in your sidebar.txt like I do, your whole site will not render.
I'm running php 5.5.9
I found the following error in the apache error log:
PHP Fatal error: Cannot access protected property Doku_Renderer_xhtml::$_counter in /var/www/wiki/lib/plugins/dir/syntax.php on line 1061 ...
I traced the problem to the inc/parser/xhtml.php file.
In Ponder Stibbons, $_counter was declared like this:
var $_counter = array();
In Hrun, like this:
protected $_counter = array();
If I change it back to
var, the pages render and it seems to fix the problem.
This is obviously not a good solution. You don't want to be hacking Dokuwiki core files.
So here is Plan B:
I changed the inc/parser/xhtml.php file back to original.
Next, I edited the lib/plugins/dir/syntax.php file,
at around line 59 I added this:
var $_counter = Array();
at around line 1061 I did this:
//$rdr->_counter['row_counter'] = 0;
$_counter['row_counter'] = 0;
This works too, at least for me it does.
I only use a very limited subset of what the Dir Plugin can do.
Your mileage may vary. I can't guarantee anything.
I'm not a php programmer. I can use grep and diff and perform crude hacks, that's about it.
I have a feeling the "real" solution has to do with how the Dir Plugin extends the core Dokuwiki classes, or something, but I get lost in all the "this class extends that class" stuff.
Hopefully, the maintainer of the Dir plugin will get a chance to fix the code for real.
In the meantime you can try this hack and see if it works for you.
Regards,
Mike D.