[SOLVED] HitCounter causing page to end after upgrading

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Locked
forextrader36
Forum Members
Forum Members
Posts: 82
Joined: Mon Jul 09, 2007 6:17 pm

[SOLVED] HitCounter causing page to end after upgrading

Post 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.
Last edited by forextrader36 on Wed Aug 13, 2014 7:37 pm, edited 1 time in total.
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1968
Joined: Mon Jan 29, 2007 4:47 pm

Re: HitCounter causing page to end after upgrading

Post 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);
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
forextrader36
Forum Members
Forum Members
Posts: 82
Joined: Mon Jul 09, 2007 6:17 pm

Re: HitCounter causing page to end after upgrading

Post 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
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1968
Joined: Mon Jan 29, 2007 4:47 pm

Re: HitCounter causing page to end after upgrading

Post 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
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
forextrader36
Forum Members
Forum Members
Posts: 82
Joined: Mon Jul 09, 2007 6:17 pm

Re: HitCounter causing page to end after upgrading

Post 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?
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1968
Joined: Mon Jan 29, 2007 4:47 pm

Re: HitCounter causing page to end after upgrading

Post 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.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
forextrader36
Forum Members
Forum Members
Posts: 82
Joined: Mon Jul 09, 2007 6:17 pm

Re: HitCounter causing page to end after upgrading

Post 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 ;D
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1968
Joined: Mon Jan 29, 2007 4:47 pm

Re: HitCounter causing page to end after upgrading

Post by Jo Morg »

Cool, glad I could help.
Please prepend [solved] to the Subject of the topic, thanks! ;)
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
Locked

Return to “The Lounge”