steeven-th / pterodactyl-status-server-wordpress

Plugin for wordpress to display the status of the servers
10 stars 0 forks source link

Settings Issue #1

Closed shaikhnedab closed 2 years ago

shaikhnedab commented 2 years ago

I am getting following error while settings up API credentials in wordpress.

/var/www/html/wp-content/plugins/pteroq-server-status/admin/templates/api_setup.php.
Error message: Uncaught Error: Call to undefined function
display_errors() in
/var/www/html/wp-content/plugins/pteroq-server-status/admin/templates/api_setup.php:114
Stack trace:
#0 /var/www/html/wp-content/plugins/pteroq-server-status/includes/settings.php(28):
include()
#1 /var/www/html/wp-includes/class-wp-hook.php(303): sthomas_pteroq_settings()
#2 /var/www/html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
#3 /var/www/html/wp-includes/plugin.php(470): WP_Hook->do_action()
#4 /var/www/html/wp-admin/admin.php(259): do_action()
#5 {main}
  thrown
WordPress version 5.8.2
Current theme: Hestia Pro (version 3.0.8)
Current plugin: Pterodactyl games servers status (version 1.0.1)
PHP version 7.4.26
steeven-th commented 2 years ago

Hello, I fixed the problem in the version 1.0.2 that I just put on Github. You can download it and replace your files, you should not have this error anymore.

shaikhnedab commented 2 years ago

hello, just update no longer getting that error still goto next step. image my panel runs on port 80 therefore I left last column empty. fyi I am running my panel on subdomain if it helps.

steeven-th commented 2 years ago

Ok, can you test with the 1.0.3 update pls ?

shaikhnedab commented 2 years ago

settings section was successful. but after adding game server getting following error. image checked multiple times server id is correct. My panel and game server(above id is for teamspeak3 server) running on same machine.

Edit: if you want I can give you temp access to my panel.

steeven-th commented 2 years ago

Your UUID is not correct. Look the README, take juste the first party of your UUID 606f2568

https://github.com/steeven-th/pterodactyl-status-server-wordpress/blob/master/images/uuid.png

shaikhnedab commented 2 years ago

still same. image

steeven-th commented 2 years ago

Check your API key

shaikhnedab commented 2 years ago

well just recreated both API and still same error.

steeven-th commented 2 years ago

You have created two API keys (one in the back office and one in the front office) and assigned all permissions to READ on the back office API key?

shaikhnedab commented 2 years ago

yes one is server API key and other one is client API and gave all read permissions to server API key.

steeven-th commented 2 years ago

Can you give me your API KEY SERVER pls ? In private message You found me on Discord Pterodactyl https://discord.com/invite/pterodactyl

steeven-th commented 2 years ago

Problem solved by replacing the IP with the domain name