htmly icon indicating copy to clipboard operation
htmly copied to clipboard

2.8.2 – view numbers keep resetting after a while

Open thopanX opened this issue 3 years ago • 5 comments

I noticed it twice now that the view numbers in admin reset to very low numbers or even -1 (as if nobody had viewed the post at all). No update inbetween.

What other info do you need?

thopanX avatar Apr 30 '22 20:04 thopanX

It's a problem several users have encountered and was never solved. I proposed a correction a few months ago. On my web site the problem never reappeared. I can't find any trace of my proposal but it involved removing an obsolete section of code which bizarrely should not be called now. HTMLy as many other PHP frameworks involves long files, so it makes understanding them and tracing a bug very difficult. What I did was separating htmly.php in mutiple files, one with only one clear function.

Hjertesvikt avatar May 01 '22 06:05 Hjertesvikt

https://github.com/danpros/htmly/issues/366

Danpros says that it was an issue with JSON.

My web site still uses old HTMLy code (2.7.5) so what I said in this old issue may not be applicable to new versions of HTMLy.

Hjertesvikt avatar May 01 '22 07:05 Hjertesvikt

I would have thought this issue had to do with concurrent for access our something. One thread of htmly writing while another reading. That sort of problem.

bluebirch avatar Jul 04 '22 05:07 bluebirch

@Hjertesvikt Any leads on how to identify these lines of code? Because with the latest version of HTMLy, an user encountered this problem very recently.

gillesMioni avatar Aug 27 '22 18:08 gillesMioni

What I proposed was integrated in 2.7.7.

@danpros said at the time:

If the problems still persist I will change to use the serialize in next version and not using JSON.

I suppose he meant in function add_view($page)

Hjertesvikt avatar Aug 28 '22 12:08 Hjertesvikt

The latest release should fix this problems. I will close this one. Thanks

danpros avatar Dec 07 '23 04:12 danpros