Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Exception - [] operator not supported for strings" #349

Closed
wodim opened this issue Jun 18, 2022 · 11 comments
Closed

"Exception - [] operator not supported for strings" #349

wodim opened this issue Jun 18, 2022 · 11 comments
Labels
Bug i broke something TrinityCore issues related to the instance maintained by TrinityCore (https://aowow.trinitycore.info)

Comments

@wodim
Copy link
Contributor

wodim commented Jun 18, 2022

The following spell exists but generates an error page: https://tcubuntu.northeurope.cloudapp.azure.com/aowow/?spell=34437

@wodim
Copy link
Contributor Author

wodim commented Jun 18, 2022

@Sarjuuk Sarjuuk added Bug i broke something TrinityCore issues related to the instance maintained by TrinityCore (https://aowow.trinitycore.info) labels Jun 19, 2022
@Sarjuuk
Copy link
Owner

Sarjuuk commented Jun 19, 2022

No line number, so I can only guess.
But it's probably just not up to date.

@wodim
Copy link
Contributor Author

wodim commented Jun 19, 2022

The same thing happens in rising-gods.

https://db.rising-gods.de/?spell=17547

Even though I am not an admin there and thus I can't see the traceback, you can see that the error that you get is different from the error that you would get from any other spell ID that does not exist.

https://db.rising-gods.de/?spell=123123

@Ikatzuki
Copy link

Ikatzuki commented Jun 19, 2022

Here is the full error that I get when going spell ID: 34437

Please note that I'm working with custom spell data so some of the errors might be unrelated but this one should be unchanged and I get the same issue as Wodim of not being able to view the page for this spell.

One or more errors occured, while generating this page.
Exception - [] operator not supported for strings @ C:\xampp\htdocs\includes\smartAI.class.php:173
#0 C:\xampp\htdocs\includes\smartAI.class.php(81): SmartAI::getActionOwner(Array, 0)
#1 C:\xampp\htdocs\pages\spell.php(328): SmartAI::getOwnerOfSpellCast(34437)
#2 C:\xampp\htdocs\pages\genericPage.class.php(361): SpellPage->generateContent()
#3 C:\xampp\htdocs\pages\genericPage.class.php(676): GenericPage->prepareContent()
#4 C:\xampp\htdocs\index.php(120): GenericPage->display()
#5 {main}

@Sarjuuk
Copy link
Owner

Sarjuuk commented Jun 20, 2022

Yes rising gods is currently outdated.
Yes this error should be gone with the latest version. c0e9159#diff-b16f5dd57c428a3b56f1c98b6367db74a50e7c1cba30670056c7501417def466 (Thanks @Ikatzuki)

If not, @jackpoz, say something.

@Jinnaix
Copy link

Jinnaix commented Jun 20, 2022

Works on c0e9159

@wodim
Copy link
Contributor Author

wodim commented Jun 21, 2022

Not sure if related:

https://tcubuntu.northeurope.cloudapp.azure.com/aowow/?npc=14469

Exception - The arguments array must contain 8 items, 1 given @ /var/www/tcubuntu.northeurope.cloudapp.azure.com/html/aowow/localization/lang.class.php:511
#0 /var/www/tcubuntu.northeurope.cloudapp.azure.com/html/aowow/localization/lang.class.php(511): vsprintf()
#1 /var/www/tcubuntu.northeurope.cloudapp.azure.com/html/aowow/localization/lang.class.php(108): Lang::vspf()
#2 /var/www/tcubuntu.northeurope.cloudapp.azure.com/html/aowow/includes/smartAI.class.php(1610): Lang::__callStatic()
#3 /var/www/tcubuntu.northeurope.cloudapp.azure.com/html/aowow/includes/smartAI.class.php(369): SmartAI->action()
#4 /var/www/tcubuntu.northeurope.cloudapp.azure.com/html/aowow/includes/smartAI.class.php(1349): SmartAI->prepare()
#5 /var/www/tcubuntu.northeurope.cloudapp.azure.com/html/aowow/includes/smartAI.class.php(369): SmartAI->action()
#6 /var/www/tcubuntu.northeurope.cloudapp.azure.com/html/aowow/pages/npc.php(372): SmartAI->prepare()
#7 /var/www/tcubuntu.northeurope.cloudapp.azure.com/html/aowow/pages/genericPage.class.php(367): NpcPage->generateContent()
#8 /var/www/tcubuntu.northeurope.cloudapp.azure.com/html/aowow/pages/genericPage.class.php(701): GenericPage->prepareContent()
#9 /var/www/tcubuntu.northeurope.cloudapp.azure.com/html/aowow/index.php(127): GenericPage->display()
#10 {main}

@wodim
Copy link
Contributor Author

wodim commented Sep 3, 2022

https://tcubuntu.northeurope.cloudapp.azure.com/aowow/?spell=4986

E_USER_WARNING - Lang - undefined property Lang::$spell['invisibilityType']['0'], called in spell.php:1888 @ /trinity/var/www/tcubuntu.northeurope.cloudapp.azure.com/html/aowow/localization/lang.class.php:92

@Sarjuuk Sarjuuk closed this as not planned Won't fix, can't repro, duplicate, stale Mar 6, 2024
@wodim
Copy link
Contributor Author

wodim commented Mar 6, 2024

https://aowow.trinitycore.info/?npc=14469 still doesn't work.

@Sarjuuk
Copy link
Owner

Sarjuuk commented Mar 11, 2024

probably gone with f00cced

@Sarjuuk Sarjuuk closed this as completed Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug i broke something TrinityCore issues related to the instance maintained by TrinityCore (https://aowow.trinitycore.info)
Projects
None yet
Development

No branches or pull requests

5 participants