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

Content & Player Pages - Map Not displaying for sub-folder installs #52

Closed
stive101 opened this issue Dec 26, 2024 · 6 comments
Closed

Comments

@stive101
Copy link

Hello,

im not sure if i did somthing wrong ?
Maps Overview are blank.

Did i miss a php module or somthing like that ?

Screenshot 2024-12-26 084309

EDIT:
there a issue with our paths.
the map search for the config.php in "www" but my basedir is www/stats/
can u change the dir so that it searche in homedir instead of www ?

thanks

i got this PHP error :


PHP Fatal error:  Uncaught Error: Failed opening required '/home/container/www/config.php' (include_path='.:/usr/share/php') in /home/container/www/stats/includes/amcharts/display_map.php:5
Stack trace:
#0 {main}
  thrown in /home/container/www/stats/includes/amcharts/display_map.php on line 5
[26-Dec-2024 07:47:20 UTC] PHP Warning:  require(/home/container/www/config.php): Failed to open stream: No such file or directory in /home/container/www/stats/includes/amcharts/display_map.php on line 5
@DNA-styx DNA-styx changed the title Map wont show up Content & Player Pages - Map Not displaying for sub-domain installs Dec 26, 2024
@DNA-styx DNA-styx self-assigned this Dec 26, 2024
@DNA-styx
Copy link
Owner

Sorry about this, it's not been the first time this has caught me out. :( I'll get it fixed and also build a test environment that uses a sub-folder install so hopefully I'll catch these.

@DNA-styx DNA-styx changed the title Content & Player Pages - Map Not displaying for sub-domain installs Content & Player Pages - Map Not displaying for sub-folder installs Dec 26, 2024
@stive101
Copy link
Author

no hurry, i fixed it for me by now, im define the subfolder, :=) just information for you g

@DNA-styx
Copy link
Owner

Does using require('../../config.php'); on this line fixed it for you?

@stive101
Copy link
Author

stive101 commented Dec 26, 2024

yes

but i find more issues.
when u klick on the map for a player. It also not does use the subdomain.

@DNA-styx
Copy link
Owner

Thanks for reproting.

Try 'url' => '../../hlstats.php?mode=playerinfo&player=' . $row['playerId'] , on this file.

@stive101
Copy link
Author

stive101 commented Dec 26, 2024

and yes, worked again.

pls also see my answer to this post :=)

https://github.com/DNA-styx/HLStatsX-Windmill-Theme/issues/45

@DNA-styx DNA-styx closed this as completed Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants