Sarjuuk / aowow

Database viewer for TrinityCore based on aowow by @LordJZ, based on the JS-Engine of Wowhead
204 stars 217 forks source link

Error at firstrun: `Exception - syntax error, unexpected '->' (T_OBJECT_OPERATOR)` #342

Closed Winfidonarleyan closed 2 years ago

Winfidonarleyan commented 2 years ago

Describe the bug and how to reproduce it

[root@web aowow]# php aowow --firstrun
Exception - syntax error, unexpected '->' (T_OBJECT_OPERATOR)
   /home/aowow/includes/types/item.class.php(1429)
#0 [internal function]: {closure}('itemlist')
#1 /home/aowow/setup/tools/sqlgen/item_stats.func.php(10): spl_autoload_call('ItemList')
#2 /home/aowow/setup/tools/sqlGen.class.php(39): include_once('/home/aowow/set...')
#3 /home/aowow/setup/tools/clisetup/setup.func.php(19): SqlGen::init(2)
#4 /home/aowow/setup/setup.php(40): setup()
#5 /home/aowow/aowow(10): require('/home/aowow/set...')
#6 {main}

System:

qyh214 commented 2 years ago

can you upgrade to php 8.0 test

Sarjuuk commented 2 years ago

ah great.. 5 instances of the null safe operator ?-> are in use, which is a v8.0 feature.

honestly, i'll probably bump up the requirements, rather then change those. It's already been 1.5yr since release...

Winfidonarleyan commented 2 years ago

Problem resolved. I update php to 8.0. Thanks for information.