Count file reset #11
Comments
I just now created a brand new install. I installed the plugin, and then visited the two built-in pages. Both appeared in my data file. And my demo site has almost 300 entries. The problem does not appear to be in the plugin itself. |
I just created fresh install from package grav-skeleton-open-blog-space.zip. The behavior is the same as described in my first post. |
I'm sorry, but I can't replicate. I just did the same thing, and here's my /: 2
/standardpage: 1
/modular-page-inject: 1
/readme: 1 |
Closing due to inactivity. Reopen if you have more information. |
having the same problem with a fresh install of grav and plugin, the file just resets itself every time you visit a page or refresh the current one |
I don't know what to say. @ondrejvysek , are you also on Windows? |
Sorry for late response I was oof - yes my original result was on my dev machine Windows 10 with WAMP, php 7.1 |
Please point me to the dev environment(s) you're using (there are lots of different stacks out there) and I will see if I can replicate. |
Here's what I'm using. I hope it helps! Windows 10 - 64 bits - version1803 |
Well the good news is that I can replicate the issue. But the bad news is that I have no idea why it's happening. Asking around... |
Just try mentioned solution in my fist post. I do not why but it works
Ondrej
Sent from mobile device
20. 8. 2018 v 0:14, Aaron Dalton <notifications@github.com<mailto:notifications@github.com>>:
Well the good news is that I can replicate the issue. But the bad news is that I have no idea why it's happening. Asking around...
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#11 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/Acc7YmYcXzNH6hVMmW0aNxZltrFu6U7jks5uSeNJgaJpZM4Vvd-i>.
|
Please post the code block you're using. Are you replacing the |
Here is the modded code of the section //Open Data File, originally line 86 to 92. just added $cnt = (array)$datafh->content(); It doesn't do any modification to the data, just reads array from the file. |
All you're doing is bypassing the existing code. I assume you've made other adjustments to use I've submitted an issue against the file handling library, and hopefully we'll have a permanent solution soon. |
Hi, I have the same problem. When I visit a different page, the file is completely deleted, specifically its content is replaced by only the current page but always with the set number of 1. In other words, when I visit Home, Test, and Home again, it is not finally content
but (step by step)
and finally
Tested on the latest version of Grav and Count Views Plugin. |
The previous issue is really in Win10/XAMPP environment only. In UX environment working this plugin correctly. THX. |
same issue on Windows WAMP environment after fresh install |
after installing a plugin, configured as docummented, file data/count-views.yaml always stores just one rticle with count 1.
The problem is that $data variable at row 89 always return array 0 thus file is recreated.
just addedd $cnt = (array)$datafh->content(); to row 88 and work well (articles are addedd and views are increased)
The text was updated successfully, but these errors were encountered: