WebSite X5Help Center

 
Chris D.
Chris D.
User

Download Button object not incrementing  en

Autore: Chris D.
Visite 1084, 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
19 RISPOSTE
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.
Leggi di più
Postato il da Aleksej H.
Axel  
Axel  
User
Utente del mese FR

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

Leggi di più
Postato il da Axel  
Chris D.
Chris D.
User
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.

Leggi di più
Postato il da Chris D.
Chris D.
Chris D.
User
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

Leggi di più
Postato il da Chris D.
Axel  
Axel  
User
Utente del mese FR

For me your link works fine

Leggi di più
Postato il da Axel  
Chris D.
Chris D.
User
Autore

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

Leggi di più
Postato il da Chris D.
Axel  
Axel  
User
Utente del mese 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

Leggi di più
Postato il da Axel  
Chris D.
Chris D.
User
Autore

I found a different numbered object folder for it:

The file contain '6'

Leggi di più
Postato il da Chris D.
Axel  
Axel  
User
Utente del mese FR

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

The txt file is always at 6 ?

Leggi di più
Postato il da Axel  
Chris D.
Chris D.
User
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.

Leggi di più
Postato il da Chris D.
Axel  
Axel  
User
Utente del mese FR

No more idea.foot-in-mouth

Pls wait an Incomedia technician !

Leggi di più
Postato il da Axel  
Chris D.
Chris D.
User
Autore

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

Leggi di più
Postato il da 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

Leggi di più
Postato il da Stefano G.
Chris D.
Chris D.
User
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?

Leggi di più
Postato il da Chris D.
Chris D.
Chris D.
User
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

Leggi di più
Postato il da Chris D.
Axel  
Axel  
User
Utente del mese 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

Leggi di più
Postato il da Axel  
Chris D.
Chris D.
User
Autore

This right?

Leggi di più
Postato il da Chris D.
Chris D.
Chris D.
User
Autore

Leggi di più
Postato il da Chris D.
Axel  
Axel  
User
Utente del mese FR

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

Leggi di più
Postato il da Axel