Errors/Warnings/Bugs
- Pcmendes
- Posts: 6
- Joined: Sun Dec 27, 2015 10:59 pm
Re: Errors/Warnings/Bugs
Hi all,
This is my very first post and I 'd like to report a small bug. The number of solved problems shown in my .png "badge" (https://projecteuler.net/profile/pcmendes.png) is usually 2-4 problems fewer than I actually solved. The number shown seems to vary a lot too.
Maybe there 's a cache out of whack somewhere. Actually I suspect my own browser caches are confused, but maybe this could be fixed on the server end somehow.
Thanks,
Paulo
PS. This is totally non-urgent as far as I'm concerned because I don't use the badge outside of PE.
This is my very first post and I 'd like to report a small bug. The number of solved problems shown in my .png "badge" (https://projecteuler.net/profile/pcmendes.png) is usually 2-4 problems fewer than I actually solved. The number shown seems to vary a lot too.
Maybe there 's a cache out of whack somewhere. Actually I suspect my own browser caches are confused, but maybe this could be fixed on the server end somehow.
Thanks,
Paulo
PS. This is totally non-urgent as far as I'm concerned because I don't use the badge outside of PE.

- euler
- Administrator
- Posts: 5095
- Joined: Sun Mar 05, 2006 4:49 pm
- Location: Cheshire, England
- Contact:
Re: Errors/Warnings/Bugs
It is quite possibly a bug I am unaware of, but recently I posted this comment.
If the numbers are not matching up after more than one hour then please let me know. However, at the moment your badge shows 49 problems which is exactly how many problems you have currently solved.euler wrote:Your actual profile is updated real time, but each of those profile images require information from the DB. You could imagine the number of transactions required by the server when, say, someone views a thread on this forum which contains several profile images. For that reason each of the images are cached and if it is less than one hour old then it displays the cached image, otherwise it will regenerate the image.

impudens simia et macrologus profundus fabulae
- Pcmendes
- Posts: 6
- Joined: Sun Dec 27, 2015 10:59 pm
Re: Errors/Warnings/Bugs
Indeed the badge in my signature was showing the correct number when I sent my initial message. When I opened the link to the badge (i.e., just the pcmendes.png file in its own window), it was correct as well.
But, at the same time I wrote my earlier message, the badge in my profile page in projecteuler.net showed 47. The error persisted after I refreshed the page. All this was on an iPad.
Now, 4 hours later, I've switched to my desktop and the badge shows 45 (!) both on the forum and on the profile page.
Btw this occurs only on the badge; the other info about my progress is always correct.
But, at the same time I wrote my earlier message, the badge in my profile page in projecteuler.net showed 47. The error persisted after I refreshed the page. All this was on an iPad.
Now, 4 hours later, I've switched to my desktop and the badge shows 45 (!) both on the forum and on the profile page.
Btw this occurs only on the badge; the other info about my progress is always correct.

- euler
- Administrator
- Posts: 5095
- Joined: Sun Mar 05, 2006 4:49 pm
- Location: Cheshire, England
- Contact:
Re: Errors/Warnings/Bugs
Sorry, but I'm at a compete loss!? Your badge is showing 49 problems solved to me.
Is anyone else experiencing this issue? Any ideas why?
Is anyone else experiencing this issue? Any ideas why?

impudens simia et macrologus profundus fabulae
- nicolas.patrois
- Posts: 118
- Joined: Fri Jul 26, 2013 4:54 pm
- Contact:
- Pcmendes
- Posts: 6
- Joined: Sun Dec 27, 2015 10:59 pm
Re: Errors/Warnings/Bugs
I'm using Chrome on a PC and Safari on an iPad. Right now Chrome's showing correctly, but the iPad's stuck at 47 and level 1 instead of 2 (I bagged 2 problems since my previous post).
This time refreshing the page on the iPad worked partially: the badge's showing correctly on my profile, but when I opened the badge in its own window it showed just 50.
I agree with Patrois that there should be a stale cache somewhere—probably on my end. Well, any input is appreciated.
This time refreshing the page on the iPad worked partially: the badge's showing correctly on my profile, but when I opened the badge in its own window it showed just 50.
I agree with Patrois that there should be a stale cache somewhere—probably on my end. Well, any input is appreciated.

- nicolas.patrois
- Posts: 118
- Joined: Fri Jul 26, 2013 4:54 pm
- Contact:
- euler
- Administrator
- Posts: 5095
- Joined: Sun Mar 05, 2006 4:49 pm
- Location: Cheshire, England
- Contact:
Re: Errors/Warnings/Bugs
Curious, nicolas.patrois. When I first viewed this thread it had Pcmendes's badge saying "Solved 49", but when I refreshed the page it changed to 52.
I've made some changes to the image generation script on the server. Could you let me know if it fixes the problem? (or causes some other undesirable effect!?)
I've made some changes to the image generation script on the server. Could you let me know if it fixes the problem? (or causes some other undesirable effect!?)

impudens simia et macrologus profundus fabulae
-
TripleM
- Posts: 384
- Joined: Fri Sep 12, 2008 3:31 am
Re: Errors/Warnings/Bugs
I've always found Apple browsers to be a bit finicky when it comes to caching.. it can sometimes take multiple refreshes to clear a cached asset, unlike a single hard refresh on a PC.
The new method (sending no-cache headers entirely, meaning every badge on a page needs re-downloading every time the page is visited, even if just flicking through pages of a forum thread) will definitely prevent that, but I'm not sure it's ideal - a huge majority of times each badge will now be downloaded unnecessarily, since they change rarely. A soft load of this forum page (where most of it is cached assets) has increased in bandwidth by about 40%.
If you're storing the last time a problem was solved, then the ideal solution would be using the Last-Modified and If-Modified-Since header/request method, so the image is only redownloaded when necessary (or is that what you were doing already?)
The new method (sending no-cache headers entirely, meaning every badge on a page needs re-downloading every time the page is visited, even if just flicking through pages of a forum thread) will definitely prevent that, but I'm not sure it's ideal - a huge majority of times each badge will now be downloaded unnecessarily, since they change rarely. A soft load of this forum page (where most of it is cached assets) has increased in bandwidth by about 40%.
If you're storing the last time a problem was solved, then the ideal solution would be using the Last-Modified and If-Modified-Since header/request method, so the image is only redownloaded when necessary (or is that what you were doing already?)
- euler
- Administrator
- Posts: 5095
- Joined: Sun Mar 05, 2006 4:49 pm
- Location: Cheshire, England
- Contact:
Re: Errors/Warnings/Bugs
Thanks for the feedback, TripleM. You make a very good point and server load is certainly a concern. I've removed the multiple "no-cache" settings and added Last-Modified to the header. Let us see if that fixes the problem.

impudens simia et macrologus profundus fabulae
-
user202729
- Posts: 18
- Joined: Tue Dec 29, 2015 2:58 pm
Re: Errors/Warnings/Bugs
One small error of the new forum:
The links in the pink box ("Don't post any spoilers" and "Comments, questions and clarifications about PE problems.") are wrong. It link to the old forum.
The links in the pink box ("Don't post any spoilers" and "Comments, questions and clarifications about PE problems.") are wrong. It link to the old forum.
- hk
- Administrator
- Posts: 12832
- Joined: Sun Mar 26, 2006 10:34 am
- Location: Haren, Netherlands
Re: Errors/Warnings/Bugs
Thanks. Fixed (I hope).

War ruins the life and health of untold numbers of innocent children.
- Georg
- Posts: 157
- Joined: Mon Jan 21, 2008 7:00 am
- Location: Mannheim, Germany
- Contact:
Re: Errors/Warnings/Bugs
When there are new (unread) posts in an old thread I can jump to the first unread post using a link ending with "...&view=unread#unread". When there are no unread posts this link will go to the first (oldest) post on that page. It should go to the last (newest) post instead.
Last edited by Georg on Sat Feb 13, 2016 11:56 am, edited 1 time in total.
- euler
- Administrator
- Posts: 5095
- Joined: Sun Mar 05, 2006 4:49 pm
- Location: Cheshire, England
- Contact:
Re: Errors/Warnings/Bugs
Where are you talking about? On this forum or on the main website?

impudens simia et macrologus profundus fabulae
- Georg
- Posts: 157
- Joined: Mon Jan 21, 2008 7:00 am
- Location: Mannheim, Germany
- Contact:
- euler
- Administrator
- Posts: 5095
- Joined: Sun Mar 05, 2006 4:49 pm
- Location: Cheshire, England
- Contact:
Re: Errors/Warnings/Bugs
It took me a long time to find where you were talking about as you didn't really give me much to work with, and as it turns out it was certainly new to me. For those who are curious, or wish to laugh at the fact that I didn't even know about this, he is referring to the icons in each forum area next to each topic that are red (to indicate unread posts) as opposed to blue (indicating no unread posts).I can jump to the first unread post using a link ending with "...&view=unread#unread"
After all that, I am sorry to say that this forum software (phpBB) is not written by me, so I have no control over bugs here. As I continue to ensure that we are running the latest versions, and assuming you feel strongly about it, you could report it to the phpBB developers: https://www.phpbb.com/community/viewforum.php?f=466

impudens simia et macrologus profundus fabulae
-
asgerix
- Posts: 11
- Joined: Tue Jul 16, 2013 10:51 am
- Location: Copenhagen, Denmark
- Contact:
Re: Errors/Warnings/Bugs
The Project Euler web site seems to be down.
The front page works, but most of the sub pages return an http error code 500.
/asgerix
The front page works, but most of the sub pages return an http error code 500.
/asgerix
- hk
- Administrator
- Posts: 12832
- Joined: Sun Mar 26, 2006 10:34 am
- Location: Haren, Netherlands
Re: Errors/Warnings/Bugs
Thanks asgerix.
Only the about page and the newpage seem to be working.
For the time being: people can use http://static.projecteuler.net/
This site contains the problems up to 522 with the possibility of answer checking.
Edit:
site is working again.
static pages have been updated to #547
Only the about page and the newpage seem to be working.
For the time being: people can use http://static.projecteuler.net/
This site contains the problems up to 522 with the possibility of answer checking.
Edit:
site is working again.
static pages have been updated to #547

War ruins the life and health of untold numbers of innocent children.
- Valentyn_Shtronda
- Posts: 27
- Joined: Tue Sep 11, 2012 9:18 pm
- Location: Ukraine
- mpiotte
- Administrator
- Posts: 1961
- Joined: Tue May 08, 2012 5:40 pm
- Location: Montréal, Canada
Re: Errors/Warnings/Bugs
Fixed. Thanks.FourLegsDriveCat wrote:Typo in problem 547: choosen -> chosen (twice).


