WebsiteBaker Community Forum

General Community => Global WebsiteBaker 2.8.x discussion => Topic started by: jsn on October 31, 2009, 08:46:29 PM

Title: chCounter Error message
Post by: jsn on October 31, 2009, 08:46:29 PM
After copy/pasting this code

Code: [Select]
<?php
if(file_exists(WB_PATH.&#39;/modules/expcount/counter.php&#39;)){
include(WB_PATH.&#39;/modules/expcount/counter.php&#39;); }
?>





from this module http://www.websitebakers.com/pages/modules/listings/counter/expcount.php I get the following error message:


chCounter: MySQL error!
SQL query:

    * SELECT setting, value FROM `#####`.`exp_config`


Error number: 1146
Table '#####.exp_config' doesn't exist
Script stopped.
Title: Re: chCounter Error message
Post by: Luisehahne on October 31, 2009, 09:43:24 PM
There is missing a Database Tabel exp_config. A new install is not possible withou deleting all database table with prefix exp_

You can do it with phpadmin and then do to a new install. If you have any problems pls post it.

Another questions, how do you install it? Because you wrote
Quote
After copy/pasting

Dietmar
Title: Re: chCounter Error message
Post by: jsn on November 01, 2009, 12:42:06 AM
Sorry could you explain how to fix the problem?

Do I have to create the table or Do I have to delete the whole database?
Title: Re: chCounter Error message
Post by: Luisehahne on November 01, 2009, 01:16:58 AM
You have only to delete the tables in database with the prefix exp_, not the whole database. Be carefull, for your safty create a backup from your database.

Dietmar
Title: Re: chCounter Error message
Post by: jsn on November 01, 2009, 03:18:19 AM
I missed the whole installation that is indicated in the file: install_en.txt.

After doing the installation I am trying to remove the folder"Install"l and it does not remove. I do not have an error message but the folder stays there after clicking on the trash can.

Also when it displays the counter, it shows:
Total visitors:      1
Visitors today:     1
Visitors yesterday:     0
Max. visitors per day:     1
Currently online:     1
Max. online:     0
Total page views:     1
Page views of this page:     1

I only want to see the Total Visitors.

Title: Re: chCounter Error message
Post by: LordDarkman on November 01, 2009, 03:50:43 AM
Than you have to edit your counter template file to do this. If you don't know how, read the readme. If you done this and don't know what to do read the readme in docs. If you don't know what to do than, Explain your problem again.

Try removing the folder with ftp.

CU Moritz
Title: Re: chCounter Error message
Post by: maverik on November 01, 2009, 04:33:10 AM
or try this to generate the template for your need

http://www.expblog.net/expcounter/templategenerator/