{hitcounter} don`t count

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
pWorker
Forum Members
Forum Members
Posts: 48
Joined: Wed Aug 31, 2016 1:30 pm

{hitcounter} don`t count

Post by pWorker »

Hi all,

i`m using Hitcounter, cause i want to populate most read news.

So i`was initializing {HitCounter key1="news" key2=$entry->id} in a news detail-template , but all i got to see is a 0. No matter with which ip and how often i clicked on that item. So I set debug to true:

Debug code (news_detail):

Code: Select all

Debug: (0,100455) - (usage: 12572672) - (peak: 13500328)

(mysqli): SELECT COUNT(id) as total FROM cms_module_hitcounter WHERE key1 = 'news' AND key2 = '111' LIMIT  1
All i understand, is that hitcounter gets the right keys, but gives me the wrong output.

Has anyone an idea how to solve it?/ What am I doing wrong?

MfG


Code: Select all

----------------------------------------------

Cms Version: 2.1.4

Installed Modules:

    AdminSearch: 1.0.1
    CGExtensions: 1.53.13
    CGGoogleMaps2: 1.1.1
    CGSimpleSmarty: 2.1.4
    CGSmartImage: 1.21.5
    CGUserDirectory: 1.5
    CMSContentManager: 1.1
    CMSMailer: 6.2.14
    CustomContent: 1.10
    CustomGS: 3.0
    DesignManager: 1.1.1
    FileManager: 1.5.2
    FormBuilder: 0.8.1.4
    FrontEndUsers: 2.1.1
    Gallery: 2.1.6
    HitCounter: 2.0
    MicroTiny: 2.0.3
    ModuleManager: 2.0.2
    MultiDomains: 2.2.3
    Navigator: 1.0.3
    News: 2.50.5
    Search: 1.50.2
    SelfRegistration: 1.9.7


Config Information:

    php_memory_limit:
    max_upload_size: 256000000
    url_rewriting: mod_rewrite
    page_extension:
    query_var: page
    auto_alias_content: true
    locale:
    set_names: true
    timezone: Europe/Berlin
    permissive_smarty: false


Php Information:

    phpversion: 7.0.12
    md5_function: An (Ja)
    json_function: An (Ja)
    gd_version: 2
    tempnam_function: An (Ja)
    magic_quotes_runtime: Aus (Nein)
    E_ALL: 32767
    E_STRICT: 2048
    E_DEPRECATED: 8192
    test_file_timedifference: No time difference found
    test_db_timedifference: No time difference found
    create_dir_and_file: 1
    memory_limit: 128M
    max_execution_time: 192
    register_globals: Aus (Nein)
    output_buffering: 4096
    disable_functions: exec, system, shell_exec, popen, pclose, proc_open, proc_close, proc_get_status, proc_nice, proc_terminate, show_source, escapeshellcmd, escapeshellarg
    open_basedir: /home/xxx/home/xxx/.fpp/xxx/tmp:/home/xxx/.fpp/xxx/upload:/home/vnlwvdnu/.fpp/xxx/session:/home/xxx/phpinclude:/usr/share/php7.0/lib/php:/dev/urandom:/home/logdateien/stats
    test_remote_url: Erfolgreich abgeschlossen
    file_uploads: An (Ja)
    post_max_size: 260M
    upload_max_filesize: 256M
    session_save_path: Keine Prüfung, da eine „open basedir“-Beschränkung aktiviert ist
    session_use_cookies: An (Ja)
    xml_function: An (Ja)
    xmlreader_class: An (Ja)
    check_ini_set: An (Ja)
    curl: An


Performance Information:

    allow_browser_cache: Aus (Nein)
    browser_cache_expiry: 60
    php_opcache: Aus (Nein)
    smarty_cache: Aus (Nein)
    smarty_compilecheck: Aus (Nein)
    smarty_cache_udt: Aus (Nein)
    auto_clear_cache_age: An (Ja)

Server Information:

    Server Software: Apache/2.4.10
    Server Api: cgi-fcgi
    Server Os: Linux 3.16.0-4-amd64 An x86_64
    Server Db Type: MySQL (mysqli)
    Server Db Version: 5.5.53
    Server Db Grants: Es konnte keine „GRANT ALL“-Berechtigung gefunden werden. Dies kann bedeuten, dass Sie bei der Installation oder beim Entfernen von Modulen, oder sogar beim Hinzufügen und Löschen von Elementen, einschließlich Seiten, Probleme haben könnten.


Permission Information:

    tmp: /home/xxx/tmp (0775)
    tmp_cache: /home/xxx/tmp/cache (0775)
    templates_c: /home/xxx/tmp/templates_c (0775)
    modules: /home/xxx/modules (0775)
    uploads: /home/xxx/uploads (0775)
    Maske zum Erstellen von Dateien (umask): /home/xxx/tmp/cache (0775)
    config_file: 0664

----------------------------------------------
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3484
Joined: Mon Nov 28, 2011 9:29 am
Location: The Netherlands

Re: {hitcounter} don`t count

Post by velden »

All i understand, is that hitcounter gets the right keys, but gives me the wrong output.
Depends on the data in the cms_module_hitcounter database table.

There should happen an insert somewhere too.
pWorker
Forum Members
Forum Members
Posts: 48
Joined: Wed Aug 31, 2016 1:30 pm

Re: {hitcounter} don`t count

Post by pWorker »

Hey,

looked up via php my admin:

Code: Select all

SELECT * FROM `cms_module_hitcounter` 
= 0 entries.
pWorker
Forum Members
Forum Members
Posts: 48
Joined: Wed Aug 31, 2016 1:30 pm

Re: {hitcounter} don`t count

Post by pWorker »

Hey velden,

i`ve now installed the version 1,1 and everything is working fine.

Thx for your help,
MfG
Locked

Return to “Modules/Add-Ons”