phpbb-seo / usu

Ultimate phpBB SEO Friendly URL extension
GNU General Public License v2.0
17 stars 12 forks source link

Errors with php 8.0 in ACP -> phpbb seo tab #38

Closed zetrader closed 3 years ago

zetrader commented 3 years ago

Hi, using php 7.4 it works fine but with php 8.0 i got those error with Ultimate phpBB SEO Friendly URL :

[phpBB Debug] PHP Warning: in file [ROOT]/ext/phpbbseo/usu/acp/usu.php on line 1679: Undefined array key "modrlinks_fr"
[phpBB Debug] PHP Warning: in file [ROOT]/ext/phpbbseo/usu/acp/usu.php on line 1679: Trying to access array offset on value of type null
[phpBB Debug] PHP Warning: in file [ROOT]/ext/phpbbseo/usu/acp/usu.php on line 1680: Undefined array key "modrforumlinks_fr"
[phpBB Debug] PHP Warning: in file [ROOT]/ext/phpbbseo/usu/acp/usu.php on line 1680: Trying to access array offset on value of type null
[phpBB Debug] PHP Warning: in file [ROOT]/ext/phpbbseo/usu/acp/usu.php on line 1681: Undefined array key "modrlinks_fr"
[phpBB Debug] PHP Warning: in file [ROOT]/ext/phpbbseo/usu/acp/usu.php on line 1681: Trying to access array offset on value of type null
[phpBB Debug] PHP Warning: in file [ROOT]/ext/phpbbseo/usu/acp/usu.php on line 1682: Undefined array key "modrforumlinks_fr"
[phpBB Debug] PHP Warning: in file [ROOT]/ext/phpbbseo/usu/acp/usu.php on line 1682: Trying to access array offset on value of type null
Fatal error: Uncaught TypeError: Illegal offset type in /zeforums.com/ext/phpbbseo/usu/acp/usu.php:152 Stack trace: #0 /zeforums.com/includes/functions_module.php(676): phpbbseo\usu\acp\usu->main('\\phpbbseo\\usu\\a...', 'settings') #1 /zeforums.com/adm/index.php(81): p_master->load_active() #2 {main} thrown in 
/zeforums.com/ext/phpbbseo/usu/acp/usu.php on line 152

Any way to fix this?

Thanks,

Pierre

meis2m commented 3 years ago

Hmmmm.... i am working on it.

zetrader commented 3 years ago

Thank you ;) I only got error in ACP with php 8.0, when i click on "phpbb seo" tab, in the forum, topics and forums seem to work fine, i didn't see any error.

meis2m commented 3 years ago

it will be easy to fix it, i can not test on 8.0 yet. please wait

zetrader commented 3 years ago

Good news, cool that we still can use php 7.4 until nov 2022, we have time before switching to php 8.0, no hurry, just good to know it :)

meis2m commented 3 years ago

yes... fixing that issue is easy im waiting for my server to go on php 8