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

Undefined variable on first loadup after completed setup #32

Open
Slipehr opened this issue Jun 23, 2022 · 0 comments
Open

Undefined variable on first loadup after completed setup #32

Slipehr opened this issue Jun 23, 2022 · 0 comments

Comments

@Slipehr
Copy link

Slipehr commented Jun 23, 2022

Running TFS 1.5 (12.87) - Ubuntu 22.04 - Docker - PHP FPM 7.4.30 - NGINX 1.22 Stable
Go through the entire setup without an hitch, everything seems to load, but get a warning on the page with the following:

`Warning: Undefined variable $newsTicker in /code/layouts/tibiacom/layout.php on line 387
Warning: Undefined variable $featuredArticle in /code/layouts/tibiacom/layout.php on line 389`

Going through it, seems to be a few more places it fails loading different variables and arrays.. hmm

running nginx latest and php 8.0 fpm with mysql latest database

I enabled debugging for database, but getting no errors on the SQL queries that it does to fetch information, such as players online etc, but still getting things like:

Warning: Undefined variable $account_email_change in /code/pages/accountmanagement.php on line 66
Warning: Undefined variable $player_number_counter in /code/pages/accountmanagement.php on line 75

When I try and create a guild on php 8.0 I get this:

Warning: Undefined array key "guild" in /code/pages/guilds.php on line 949

Warning: Undefined array key "name" in /code/pages/guilds.php on line 950

Warning: Undefined array key "todo" in /code/pages/guilds.php on line 951

Warning: Undefined variable $array_of_player_nig in /code/pages/guilds.php on line 967

Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /code/pages/guilds.php:967 Stack trace: #0 /code/system/load.page.php(7): include() #1 /code/index.php(41): include_once('/code/system/lo...') #2 {main} thrown in /code/pages/guilds.php on line 967

When I try and create a guild on php 7.4 I get this (yes I've changed the base bath of my code thinking it was something like that, that caused issues, thats why path differs from above):

Notice: Undefined index: guild in /var/www/pages/guilds.php on line 949

Notice: Undefined index: name in /var/www/pages/guilds.php on line 950

Notice: Undefined index: todo in /var/www/pages/guilds.php on line 951

Notice: Undefined variable: array_of_player_nig in /var/www/pages/guilds.php on line 967

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/pages/guilds.php on line 967

Notice: Undefined variable: todo in /var/www/pages/guilds.php on line 1019

Notice: Undefined variable: array_of_player_nig in /var/www/pages/guilds.php on line 1052

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/pages/guilds.php on line 1052

I have all the php extensions installed, is there a specific version requirement for the extensions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant