Download Button object not incrementing
Autore: Chris D.
Visite 1384,
Followers 1,
Condiviso 0
Hello.
I recently bought WebSiteX5 Evo 2021.
I imported a project into it from V12.
I made a new page with the 'Download Button' object.
When I'm live on the internet and I download, I see the counter increment.
But, if I referesh the page, it goes back to the 'Starting number'.
It seems that the counter is not being saved at server side.
My older pages with the same download button increment and stay, no problem.
Can anyone shed any light on this for me please?
Many thanks.
Postato il
Hello.
Before export, re-create all the project by CTRL + Preview
Autore
Hello.
I did CTRL + Preview
I uploaded ALL files.
The counter for this one page does not save at server side.
Here is the page > https://niftytools.co.uk/alarm-manage.html
The page is currently hidden - Not ready for public yet
Thank you in advance for you time looking.
Autore
I found this error in my server log files:
[17-Mar-2021 22:46:19 UTC] PHP Warning: fread() expects parameter 1 to be resource, boolean given in /home/niftytoolsco/public_html/pluginAppObj/pluginAppObj_31_09/download.php on line 50
[17-Mar-2021 22:46:19 UTC] PHP Warning: feof() expects parameter 1 to be resource, boolean given in /home/niftytoolsco/public_html/pluginAppObj/pluginAppObj_31_09/download.php on line 49
PHP Version = 7.2.34
For me your link works fine
Autore
But, if you refresh the page, or come back later, or use a different browser, it will go back.
Try to find your object name: here pluginAppObj_62_05 (Chrome inspect) and after on your website go to the object directory.
Similary displaying will be
The .txt file is the file where the count is increased .. This file changes after each download.
Check from your side if true !
Hope this helps
Enjoy !
Axel
Autore
I found a different numbered object folder for it:
The file contain '6'
Click several time to download (with x browsers) your file.
The txt file is always at 6 ?
Autore
I just clciked over and over. The page showed 11. When I refresh the page, it goes back to 6.
But, it started at 3, so it's kind of working, but not every time for some reason.
It's odd.
No more idea.
Pls wait an Incomedia technician !
Autore
OK. Will do. Thank you for your time Axel.
Hello Chris
The Object simply writes a new number into the file whenever a download is started. It seems really weird that if it works once, it doesn't twice.
I've tested this on your website from a couple of devices and browsers, and it worked
Can you test this again and see if the issue persists?
Thank you
Stefano
Autore
Hello. I clciked the download button three time and I see this:
Then, I refresh the page and see this:
I'm somewhat confused, as you can imagine.
Could it be my fault?
Autore
I don't know if this is of any help/clue, but my server PHP Error log grows from 0 to 2G in less than a week, filled with these:
[22-Mar-2021 14:21:08 UTC] PHP Warning: fread() expects parameter 1 to be resource, boolean given in /home/niftytoolsco/public_html/pluginAppObj/pluginAppObj_31_09/download.php on line 50
[22-Mar-2021 14:21:08 UTC] PHP Warning: feof() expects parameter 1 to be resource, boolean given in /home/niftytoolsco/public_html/pluginAppObj/pluginAppObj_31_09/download.php on line 49
[22-Mar-2021 14:21:08 UTC] PHP Warning: fread() expects parameter 1 to be resource, boolean given in /home/niftytoolsco/public_html/pluginAppObj/pluginAppObj_31_09/download.php on line 50
[22-Mar-2021 14:21:08 UTC] PHP Warning: feof() expects parameter 1 to be resource, boolean given in /home/niftytoolsco/public_html/pluginAppObj/pluginAppObj_31_09/download.php on line 49
[22-Mar-2021 14:21:08 UTC] PHP Warning: fread() expects parameter 1 to be resource, boolean given in /home/niftytoolsco/public_html/pluginAppObj/pluginAppObj_31_09/download.php on line 50
[22-Mar-2021 14:21:08 UTC] PHP Warning: feof() expects parameter 1 to be resource, boolean given in /home/niftytoolsco/public_html/pluginAppObj/pluginAppObj_31_09/download.php on line 49
[22-Mar-2021 14:21:08 UTC] PHP Warning: fread() expects parameter 1 to be resource, boolean given in /home/niftytoolsco/public_html/pluginAppObj/pluginAppObj_31_09/download.php on line 50
[22-Mar-2021 14:21:08 UTC] PHP Warning: feof() expects parameter 1 to be resource, boolean given in /home/niftytoolsco/public_html/pluginAppObj/pluginAppObj_31_09/download.php on line 49
[22-Mar-2021 14:21:08 UTC] PHP Warning: fread() expects parameter 1 to be resource, boolean given in /home/niftytoolsco/public_html/pluginAppObj/pluginAppObj_31_09/download.php on line 50
[22-Mar-2021 14:21:08 UTC] PHP Warning: feof() expects parameter 1 to be resource, boolean given in /home/niftytoolsco/public_html/pluginAppObj/pluginAppObj_31_09/download.php on line 49
[22-Mar-2021 14:21:08 UTC] PHP Warning: fread() expects parameter 1 to be resource, boolean given in /home/niftytoolsco/public_html/pluginAppObj/pluginAppObj_31_09/download.php on line 50
[22-Mar-2021 14:21:08 UTC] PHP Warning: feof() expects parameter 1 to be resource, boolean given in /home/niftytoolsco/public_html/pluginAppObj/pluginAppObj_31_09/download.php on line 49
[22-Mar-2021 14:21:08 UTC] PHP Warning: fread() expects parameter 1 to be resource, boolean given in /home/niftytoolsco/public_html/pluginAppObj/pluginAppObj_31_09/download.php on line 50
[22-Mar-2021 14:21:08 UTC] PHP Warning: feof() expects parameter 1 to be resource, boolean given in /home/niftytoolsco/public_html/pluginAppObj/pluginAppObj_31_09/download.php on line 49
[22-Mar-2021 14:21:08 UTC] PHP Warning: fread() expects parameter 1 to be resource, boolean given in /home/niftytoolsco/public_html/pluginAppObj/pluginAppObj_31_09/download.php on line 50
[22-Mar-2021 14:21:08 UTC] PHP Warning: feof() expects parameter 1 to be resource, boolean given in /home/niftytoolsco/public_html/pluginAppObj/pluginAppObj_31_09/download.php on line 49
[22-Mar-2021 14:21:08 UTC] PHP Warning: fread() expects parameter 1 to be resource, boolean given in /home/niftytoolsco/public_html/pluginAppObj/pluginAppObj_31_09/download.php on line 50
[22-Mar-2021 14:21:08 UTC] PHP Warning: feof() expects parameter 1 to be resource, boolean given in /home/niftytoolsco/public_html/pluginAppObj/pluginAppObj_31_09/download.php on line 49
[22-Mar-2021 14:21:08 UTC] PHP Warning: fread() expects parameter 1 to be resource, boolean given in /home/niftytoolsco/public_html/pluginAppObj/pluginAppObj_31_09/download.php on line 50
[22-Mar-2021 14:21:08 UTC] PHP Warning: feof() expects parameter 1 to be resource, boolean given in /home/niftytoolsco/public_html/pluginAppObj/pluginAppObj_31_09/download.php on line 49
Hello Chris,
Are you sure to have the "read / write" rights on this ???? home/niftytoolsco/public_html/pluginAppObj/pluginAppObj_31_09/download.php
Please check with your provider !
Enjoy!
Axel
Autore
This right?
Autore
My suggestion is to delete your actual download button object and to recreate a new one to check if same error.