WordPress 2.5 & Problem mit dem Visitcounter -> Visitcounter 0.62

Ich habe grade mal ein Update auf neue Version von WordPress gemacht. Dabei ist mir aufgefallen, dass es damit beim Aktivieren des Visitcounters ein Problem gibt. Der Counter läuft allerdings problemlos, wenn man ihn zum Starten zwingt :mrgreen:
Natürlich ist das sehr blöd und ich werde mich mal hinsetzen und versuchen rauszufinden, wo das Problem liegt. Sobald ich es gefunden und gelöst habe, gibt es ein Update!

Update:
So, wie angekündigt habe ich das Problem gelöst und eine neue Version (0.62) online gestellt.

Changelog
* fixed activation bug for WordPress 2.5
* added showPeak() function

24 comments

  • Hallo,

    habe mir ein kleines Script gebastelt um die Einträge aus der visitcounter.txt in die Tabellen (wp_visitcounter & wp_onlinecounter) zu übernehmen.
    Falls jemand Interesse hat kann er das Script hier (http://svn99.de/download/upgrade-visitcounter.zip) downloaden.

  • Hi,
    I’ve a problem with Visitcounter 0.62 and WordPress 2.5.
    In my dashboard I see: “D’oh something is wrong …” with: today, yesterday, last 10 and ø last 10.
    Currently online is always blank.
    The number of total visit it’s ok.
    And highest is always equal to total visits (?)

    Bye
    Marco

  • Hey!

    Did you make an upgrade or did you install the counter for the first time? It sounds like you installed it for the first time. Then it is normal, that the peak equals the visits on the first day. Even the average and yesterday stuff cannot work, because there is only one entry in the database.

    Moritz

  • Hi,
    no it isn’t a new installation.
    I’m using it since… more than a year.
    Recently I’ve updated WP from 2.3 to 2.5 and yourvisitcounter to 0.62 (but I don’t remember the previous version.. I’m sorry :( )
    I’m looking at the db but… there’s only one entry, for the total visits. It’s ok?

    Bye!
    Marco

  • Hi!

    That sounds like the upgrade didn’t work. You can just delete the two tables in your database and go to the admin panel for the counter (the new tables should be created then). Afterwards you just go to your db-admin again and increase the first entry by the total visit amount you had before.
    If that doesn’t work, plesase let me know!

    Moritz

  • Ok, now the table has: id, date, counter.
    I added to “counter” the previous value.

    Allright! :D

    Thankyou Moritz ;-)

  • hi,

    irgend wie kann der Counter bei mir im WordPress nicht installiert werden ich habe das ding hochgeladen und aktiviert doch es kommt kein plugin menü etc.. und dort wo ich counter dann eingefügt habe steht. There is now table in your database or you didn’t install the plugin correctly!. Nur ka was ich noch machen kann.

  • Geh mal im Admin auf das Dashboard und dann auf den Visitcounter. Dann sollten die Tables erstellt werden!

  • Can you make generate this file in a zip format?

  • You can get a software to unpack a rar-archive for free. E.g. on rarlab.com.

  • define(‘last_days’, 10);
    should be: define(‘last_days’, 7);
    …then you would have “last week:” instead of “last 10 days:” and
    “week average:” instead of “ø last 10 days:”
    — makes more sense :-)

    very, very good plugin, my five! clean, simple and very usefull! but I have one problem with wordpress 2.7 I’ll try to explain it next time…

  • in wordpress 2.7 in Admin Panel all functions work as expected and I have all stats… but when I call them in my “sidebar” some fail, like “showToday()” — I don’t know what is wrong but it looks like when you query $wpdb with the same string few times only the first query gets successful!? sounds crazy, I know, but it may be something about wordpress? any idea?

  • Well, 10 days is just sthg out of my mind in it so it doesn’t really matter ;)

    I’ll try to reproduce your second problem but I need some more details for that. What exactly are you trying to do and how?

  • Hallo,

    ich habe ein Update auf WordPress 2.7.1 (von 2.6.x) und jetzt zählt
    Visitcounter nicht mehr. Der Onlinezähler geht, der Gesamtzähler steht.
    Hier das, was Visitcounter (V 0.62) anzeigt:

    Visitcounter Stats
    Visits: 9568
    Today: D’oh! Something is wrong with the daily stats! (showToday)
    Yesterday: D’oh! Something is wrong with the daily stats! (showYesterday)
    currently online: 1
    last 10 days: D’oh! Something is wrong with the visitcounter! (showLastDates)
    ø last 10 days: D’oh! Something is wrong with the visitcounter! (showLastDates)
    Highest:

    Thank you for using the Visitcounter! For critics, questions, comments etc. visit my website.

  • Hi Joerg!

    Da geht aus irgendeinem Grund die MySQL Abfrage schief. Ich werde das mal austesten und schauen, ob ich das reproduzieren kann!

    Gruß

    Moritz

  • Hallo Moritz,
    wenn ich da irgendwie unterstützen kann (Debug-Code einbauen, wie auch immer :-), mail mich gerne an.
    Gruß,
    Jörg

  • Darauf komme ich zurück ;)

  • Problem gelöst. Danke Moritz!

    Die Ursache war aus der Kategorie “Admin Too Blöd”.
    Kurzfassung: Bei meinem WP-Uograde ging was schief und die “Reparatur” war nicht so recht durchgängig. Jetzt geht wieder alles. Es lag also definitiv nicht an Visitcounter, sondern an mir :-)
    Gruß,
    Jörg

  • hi
    after an update for the today and yesterday stat i have the msg:
    D’oh! Something is wrong with the daily stats! (showToday)
    D’oh! Something is wrong with the daily stats! (showYesterday)

    where in de Data base i can set this number manualy
    thks for your help ;)

  • hi
    I have a problem with your plugin. The plugin was install sinc 6 month ago and working fine. But yesterday the Today counter and Yesterday counter didn’t works… And i receved the message
    Today: D’oh! Something is wrong with the daily stats! (showToday)
    Yesterday: D’oh! Something is wrong with the daily stats! (showYesterday)

    i reinstalled the plugin but same problem… did you have a solution ? thks for your help

  • Mm not for real b/c that msg is generated for basically every error. Does it still not work or was it just for this one day?

  • hi
    thks for your help
    it’s doesn’t work since this day. All is ok but not for the counter for Today and Yesterday.
    it’s very strange :

    Visits: 62033
    Today: D’oh! Something is wrong with the daily stats! (showToday)
    Yesterday: D’oh! Something is wrong with the daily stats! (showYesterday)
    currently online: 1
    last 10 days: 291, 614, 620, 888, 606, 1048, 1143, 767, 700, 645
    ø last 10 days: 732.2
    Highest: 1469

    thks ;)

  • Mm sorry, but I have no idea what could go wrong in there. Did you try to reinstall it completely with deleting the tables in the database etc?

Leave a Reply