Page 1 of 1
[SOLVED] HitCounter causing page to end after upgrading
Posted: Wed Aug 13, 2014 10:51 am
by forextrader36
I haver recently upgraded a site from an old version up to 1.10.3. Everything appeared to be working fine except I have just noticed the footer is not displayed.
The problem seems to being caused by the hitcounter, it was working fine in previous version.
The code I have in the template is:
Code: Select all
{* Start Hitcounter *}
<div id="hitcounter">
<p>This page has been viewed {cms_module module=HitCounter} times</p>
</div>
{* End Hitcounter *}
At the bottom of the page it just displays:
This page has been viewed
and then the page ends.
If I remove this code from the template then the footer displays correctly.
Any help on how to fix this issue will be greatly appreciated.
Re: HitCounter causing page to end after upgrading
Posted: Wed Aug 13, 2014 11:06 am
by Jo Morg
forextrader36 wrote:At the bottom of the page it just displays:
This page has been viewed
and then the page ends.
It looks like a PHP error.
We need to know:
- HitCounter Version (there are differences between versions and how you use the tag IIRC: see module help page);
- PHP version (preferably post all system info);
- eventually what error message it displays or logs (see:
http://docs.cmsmadesimple.org/troubleshooting/tips);
Re: HitCounter causing page to end after upgrading
Posted: Wed Aug 13, 2014 2:23 pm
by forextrader36
Ok thanks.
Well the hitcounter version is 1.0.4 and I have checked out the module help page. The tag I am using is exactly as it is displayed on the module help page.
From cpanel: Current PHP version native (5.3)
From Admin Logs:
HitCounter Module is not properly cleaning input params 08/13/14 10:20:58
ERROR ERROR DETECTED: Call to a member function DBTimeStamp() on a non-object at /home/prospero/public_html/poetryversesprose/modules/HitCounter/HitCounter.module.php:514 08/13/14 10:20:58
Re: HitCounter causing page to end after upgrading
Posted: Wed Aug 13, 2014 2:32 pm
by Jo Morg
forextrader36 wrote:Well the hitcounter version is 1.0.4 and I have checked out the module help page. The tag I am using is exactly as it is displayed on the module help page.
Latest HitCounter version is 1.1 and as you have PHP 5.3 it should be pretty straightforward to update. I believe there may be a few changes on the way the tag is called on that particular version, but should also be a simple change.
It is always recommended to use the latest versions of CMSMS and 3rd party modules and plugins, unless otherwise stated.
Just as a reminder: before any upgrade, or major change backup everything (files and database).
HTH
Re: HitCounter causing page to end after upgrading
Posted: Wed Aug 13, 2014 2:39 pm
by forextrader36
Thank you.
I did check that first before posting and it doesn't give me the option to upgrade hitcounter in the module manager. Also I attempted to uninstall hitcounter with the view of re-installing but the uninstall also would not work and just goes to a blank page in the admin panel.
The admin logs display:
ERROR DETECTED: Class 'ADODB2_' not found at /home/prospero/public_html/poetryversesprose/lib/adodb_lite/adodb.inc.php:161
Can you advise how I should go about upgrading hitcounter to the latest version?
Re: HitCounter causing page to end after upgrading
Posted: Wed Aug 13, 2014 3:17 pm
by Jo Morg
Typically we recommend to upgrade the modules 1st and CMSMS core after, and doing it by steps:
http://docs.cmsmadesimple.org/upgrading/old-versions
The option I see now if to get the HitCounter-1.1.tar.gz archive and upload it and expand it on the server, overwriting the HitCounter original files, then go to the modules list and upgrade it from there, clear CMSMS cache, and see if it works.
Re: HitCounter causing page to end after upgrading
Posted: Wed Aug 13, 2014 7:02 pm
by forextrader36
Great thanks
The problem I had was that the module manager was not working correctly until the most recent upgrade, so I couldn't upgrade the modules first.
I did upgrade in steps though.
I did what you said and got hitcounter working correctly again and the page displays correctly again. The only problem is that all stats for number of page views have obviously reset to 0.
Thanks so much for all your help Jo Morg

Re: HitCounter causing page to end after upgrading
Posted: Wed Aug 13, 2014 7:25 pm
by Jo Morg
Cool, glad I could help.
Please prepend [solved] to the Subject of the topic, thanks!
