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

Memory size #13

Closed
szogi1910 opened this issue Aug 13, 2017 · 14 comments
Closed

Memory size #13

szogi1910 opened this issue Aug 13, 2017 · 14 comments

Comments

@szogi1910
Copy link

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 8192 bytes) in /home/pggames/domains/project/public_html/statystyki/dd2mirage/control/queryFunctions.php on line 47

@kennyLtv
Copy link
Collaborator

How many players are in your database?

@szogi1910
Copy link
Author

12797 Total Users!

@APet74
Copy link
Collaborator

APet74 commented Aug 13, 2017

Kenny or I can send you a fix. Or Kenny so you wanna give him the old version of queryfunctions and the leaderboard pages as well the players class. I can write a fix tomorrow.

@szogi1910
Copy link
Author

Ok, I'll wait for the fix

@szogi1910
Copy link
Author

And how will it with this?

@APet74
Copy link
Collaborator

APet74 commented Aug 21, 2017

Sorry, been busy with school starting. I am looking into server-side pagination and that will hopefully speed things up AND fix your error. Sorry for the delay.

@APet74
Copy link
Collaborator

APet74 commented Aug 25, 2017

@szogi1910 Please download a new ZIP of the project. I have added a new file in /control/leaderboard named leaderboardGrabLarge.php, please replace your leaderboardGrab.php with that file making sure to rename it to "leaderboardGrab.php". I have added the necessary functions to queryFunctions.php so that will need to be moved too. As always I suggest a full replacement of the file system followed by you deleting the install directory. Overwriting all your files will cause no harm. Please let me know if there is more.

Thanks.

@szogi1910
Copy link
Author

It now shows all players
Only now is the problem of retrieving data for the score column
Example player via www max pkt 1012 - http://imgur.com/a/NUW7x

Top players via www
http://project-games.eu/statystyki/dd2mirage/leaderboards.php - http://i.imgur.com/aNnMxH0.png
To players rekords pma - https://i.imgur.com/Ppkhro4.png

@APet74
Copy link
Collaborator

APet74 commented Aug 25, 2017 via email

@kennyLtv
Copy link
Collaborator

Is it possible that you are pulling from an incorrect database now? https://puu.sh/xjy2p/58d0818185.png as it shows the same thing on the profile page.

@APet74
Copy link
Collaborator

APet74 commented Aug 25, 2017 via email

@szogi1910
Copy link
Author

@APet74 There, I have several rankme tables each have a separate prefix
@kennyLtv I checked twice and the data I have in config and are correct

Here you can see the version that works without the last fix and gets the data correctly
http://project-games.eu/statystyki/dd2/leaderboards.php

@APet74
Copy link
Collaborator

APet74 commented Aug 26, 2017 via email

@szogi1910
Copy link
Author

Gets data correctly.
Thanks for taking the time and adding a fix.

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

3 participants