Closed nerun closed 1 year ago
thanks for this bug report. Could you please let me know which version of the plugin you are using? (you should see it at https://www.gurpzine.com.br/wiki/doku.php?do=admin&page=extension ; click on the arrow which points at the bottom to reveal the version)
2022-11-24
Thanks.
I think the issue is that PHP8 is stricter than PHP7 and that I'm currently only testing against PHP7...
I think I understand where the first warning you mention comes from. I hope I should be able to fix it in a couple of days. I'll look into the other one afterwards. Meanwhile, if you stumble on other similar warning, please report them as well.
Find this at line 115
if($item['type'] !== 'd') {
Change to this:
if(isset($item) && $item['type'] !== 'd') {
Find at line 139:
$match = optionParser::_removeFromMatch($found[0], $match);
Change to:
if(sizeof($found) > 0) {
$match = optionParser::_removeFromMatch($found[0], $match);
}
It's solved for me, you can close it whenever you want.
Thanks for this heads up!
It turns out that, thanks to your bug report, I noticed other PHP warnings. They are fixed with https://github.com/gturri/nspages/commit/5b8488d9bea5c6cca934c2b1a8b6423cace329a4 . I encourage you to update nspages in order to benefit from all those fixes.
I am receiving this warning:
This is the page in my wiki generating these issues: RPG Livre - Wiki: Projetos.
Here my settings:
Here the code i am using:
My PHP version is 8.1.