1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Fixed Gallery Statistics - all zero

Discussion in 'Media Gallery Resolved Bugs' started by Puntocom, Dec 2, 2014.

  1. Puntocom

    Puntocom Well-Known Member

    I have activated the Gallery Statistics and it shows all values as 0. I have tried to rebuild counts but it continues giving zero. How can I solve this?

    Nice addon! it's really great for my community.
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    It is updated via routine cron.

    How long ago did you install and add media?
     
  3. Puntocom

    Puntocom Well-Known Member

    2 hours ago. Content was added with statistics blocks disabled.

    Update View Counters Next Run: 2 de Diciembre de 2014 a las 15:30
    Update XenForo Media Gallery View Counters Next Run: 2 de Diciembre de 2014 a las 15:30
    Update XenForo Media Gallery Statistics Next Run: 2 de Diciembre de 2014 a las 15:30


    I have just run these cron entries but it's still all zero.
     
  4. Chris D

    Chris D XenForo Developer Staff Member

    I've just spotted a bug here. Seems as though there was a typo.

    If you're comfortable editing a PHP file, then the fix is to find the file; library/XenGallery/CronEntry/Statistics.php

    Find:
    PHP:
    if (empty($options->xengalleryShowStatisticsBlock['enable']))
    Replace:
    PHP:
    if (empty($options->xengalleryShowStatisticsBlock['enabled']))
    (change the word enable to enabled)

    [Edit: Package updated with fix as over 14:48 GMT.]
     
    Puntocom likes this.
  5. Puntocom

    Puntocom Well-Known Member

    Thank you, it works :)
     
  6. imthebest

    imthebest Formerly Super120

    I have this same problem in XFMG 1.0.4

    What should I do?
     
  7. Chris D

    Chris D XenForo Developer Staff Member

    The bug as described here is definitely fixed, so you have some other issue that would be more suited to a new thread in the Support forum.

    Some things to try first:

    Are the cron entries running? There's a specific cron related to rebuilding Xen Media Gallery statistics. What if you run it manually?
     

Share This Page