WebSite X5Help Center

 
Chris D.
Chris D.
User

Download Button object not incrementing  en

Author: Chris D.
Visited 1090, Followers 1, Shared 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.

Posted on the
19 ANSWERS
Aleksej H.
Aleksej H.
Moderator

Hello.

  1. Please provide a link to the site.
  2. What version of PHP do you have? I recommend 7.2-7.4.
  3. Delete all site files from the hosting and upload the site again.
  4. Clear your browser cache and check.
Read more
Posted on the from Aleksej H.
Axel  
Axel  
User
Best User of the month FR

Before export, re-create all the project by CTRL + Preview 

Read more
Posted on the from Axel  
Chris D.
Chris D.
User
Author

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.

Read more
Posted on the from Chris D.
Chris D.
Chris D.
User
Author

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

Read more
Posted on the from Chris D.
Axel  
Axel  
User
Best User of the month FR

For me your link works fine

Read more
Posted on the from Axel  
Chris D.
Chris D.
User
Author

But, if you refresh the page, or come back later, or use a different browser, it will go back.

Read more
Posted on the from Chris D.
Axel  
Axel  
User
Best User of the month FR

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

Read more
Posted on the from Axel  
Chris D.
Chris D.
User
Author

I found a different numbered object folder for it:

The file contain '6'

Read more
Posted on the from Chris D.
Axel  
Axel  
User
Best User of the month FR

Click several time to download (with x browsers) your file.

The txt file is always at 6 ?

Read more
Posted on the from Axel  
Chris D.
Chris D.
User
Author

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.

Read more
Posted on the from Chris D.
Axel  
Axel  
User
Best User of the month FR

No more idea.foot-in-mouth

Pls wait an Incomedia technician !

Read more
Posted on the from Axel  
Chris D.
Chris D.
User
Author

OK. Will do. Thank you for your time Axel.

Read more
Posted on the from Chris D.
Incomedia
Stefano G.
Incomedia

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

Read more
Posted on the from Stefano G.
Chris D.
Chris D.
User
Author

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?

Read more
Posted on the from Chris D.
Chris D.
Chris D.
User
Author

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

Read more
Posted on the from Chris D.
Axel  
Axel  
User
Best User of the month FR

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

Read more
Posted on the from Axel  
Chris D.
Chris D.
User
Author

This right?

Read more
Posted on the from Chris D.
Chris D.
Chris D.
User
Author

Read more
Posted on the from Chris D.
Axel  
Axel  
User
Best User of the month FR

My suggestion is to delete your actual download button object and to recreate a new one to check if same error.

Read more
Posted on the from Axel