Statistics mod

Installatie lukt niet? Plotseling een foutmelding. Of weet je niet hoe iets werkt. Problemen met phpBB2 kun je in dit archief opzoeken.
Forumregels

Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.
phpBB2.0.x
Gesloten
Gebruikersavatar
michaa113
Berichten: 1376
Lid geworden op: 29 mar 2003, 23:27
Locatie: Game Ville
Contacteer:

Statistics mod

Bericht door michaa113 » 30 nov 2003, 14:47

Ik krijg de volgende fout:

Could not query statistics config table

DEBUG MODE

SQL Error : 1146 Table 'digitaly_nl_-_digital.STATS_CONFIG_TABLE' doesn't exist

SELECT * FROM STATS_CONFIG_TABLE

Line : 36
File : /home/virtual/site193/fst/var/www/html/forum/statistics.php

Terwijl ik wel de database update file heb gedaan.
Tijd weg geweest!
Maar ik BEN terug!

Gebruikersavatar
Stef
Berichten: 9080
Lid geworden op: 04 jun 2003, 20:47

Bericht door Stef » 30 nov 2003, 14:57

Je kreeg geen foutmelding toen je je Database geen update?

Gebruikersavatar
michaa113
Berichten: 1376
Lid geworden op: 29 mar 2003, 23:27
Locatie: Game Ville
Contacteer:

Bericht door michaa113 » 30 nov 2003, 15:11

Nee...
achter alles stond: completed
Tijd weg geweest!
Maar ik BEN terug!

Gebruikersavatar
Stef
Berichten: 9080
Lid geworden op: 04 jun 2003, 20:47

Bericht door Stef » 30 nov 2003, 16:26

En je ziet ook in je database dat hij er werkelijk staat?

Gebruikersavatar
michaa113
Berichten: 1376
Lid geworden op: 29 mar 2003, 23:27
Locatie: Game Ville
Contacteer:

Bericht door michaa113 » 30 nov 2003, 20:58

jep
Tijd weg geweest!
Maar ik BEN terug!

Inspiration
Berichten: 279
Lid geworden op: 27 jun 2003, 16:27

Bericht door Inspiration » 21 mar 2004, 23:22

Heb nu hetzelfde probleem...

Al een antwoord hierop gevonden? :roll:

Inspiration
Berichten: 279
Lid geworden op: 27 jun 2003, 16:27

Bericht door Inspiration » 22 mar 2004, 00:20

Ik heb de oorzaak. Maar weet nog niet hoe dit op te lossen:

De tables worden inderdaad niet aangemaakt.
De code hiervoor blijkt fout te zijn.

Met MySQL 4.0.18 althans.

Het uitvoeren van:

Code: Selecteer alles

CREATE TABLE phpbb_stats_config (
  config_name varchar(50) NOT NULL default \'\',
  config_value varchar(255) NOT NULL default \'\',
  PRIMARY KEY (config_name)
);

CREATE TABLE phpbb_stats_modules (
  module_id tinyint(8) NOT NULL default \'0\',
  name varchar(150) NOT NULL default \'\',
  active tinyint(1) NOT NULL default \'0\',
  installed tinyint(1) NOT NULL default \'0\',
  display_order mediumint(8) unsigned NOT NULL default \'0\',
  update_time mediumint(8) unsigned NOT NULL default \'0\',
  auth_value tinyint(2) NOT NULL default \'0\',
  module_info_cache blob,
  module_db_cache blob,
  module_result_cache blob,
  module_info_time int(10) unsigned NOT NULL default \'0\',
  module_cache_time int(10) unsigned NOT NULL default \'0\',
  PRIMARY KEY (module_id)
);

INSERT INTO phpbb_stats_config (config_name, config_value) VALUES (\'install_date\', \'' . time() . '\');
INSERT INTO phpbb_stats_config (config_name, config_value) VALUES (\'return_limit\', \'10\');
INSERT INTO phpbb_stats_config (config_name, config_value) VALUES (\'version\', \'2.1.5\');
INSERT INTO phpbb_stats_config (config_name, config_value) VALUES (\'modules_dir\', \'stat_modules\');
INSERT INTO phpbb_stats_config (config_name, config_value) VALUES (\'page_views\', \'0\');
';
Geeft de volgende foutmelding:

Code: Selecteer alles

Fout

SQL-query :  

CREATE TABLE phpbb_stats_config(

config_name varchar( 50 ) NOT NULL default \ '\',
  config_value varchar(255) NOT NULL default \'\',
  PRIMARY KEY (config_name)
);

CREATE TABLE phpbb_stats_modules (
  module_id tinyint(8) NOT NULL default \'0\',
  name varchar(150) NOT NULL default \'\',
  active tinyint(1) NOT NULL default \'0\',
  installed tinyint(1) NOT NULL default \'0\',
  display_order mediumint(8) unsigned NOT NULL default \'0\',
  update_time mediumint(8) unsigned NOT NULL default \'0\',
  auth_value tinyint(2) NOT NULL default \'0\',
  module_info_cache blob,
  module_db_cache blob,
  module_result_cache blob,
  module_info_time int(10) unsigned NOT NULL default \'0\',
  module_cache_time int(10) unsigned NOT NULL default \'0\',
  PRIMARY KEY (module_id)
);

INSERT INTO phpbb_stats_config (config_name, config_value) VALUES (\'install_date\', \''.time(
). '\');
INSERT INTO phpbb_stats_config (config_name, config_value) VALUES (\'return_limit\', \'10\');
INSERT INTO phpbb_stats_config (config_name, config_value) VALUES (\'version\', \'2.1.5\');
INSERT INTO phpbb_stats_config (config_name, config_value) VALUES (\'modules_dir\', \'stat_modules\');
INSERT INTO phpbb_stats_config (config_name, config_value) VALUES (\'page_views\', \'0\');
' 

MySQL retourneerde: 


#1064 - You have an error in your SQL syntax.  Check the manual that corresponds to your MySQL server version for the right syntax to use near '\  '\',
  config_value varchar(255) NOT NULL default \'\',
  PR 
Wie heeft hier verstand van en kan mij (en anderen) hiermee helpen?

Bedankt!

Gebruikersavatar
WebSiteNet
Berichten: 6524
Lid geworden op: 20 okt 2003, 16:56
Locatie: Wieringerwerf
Contacteer:

Bericht door WebSiteNet » 22 mar 2004, 12:16

Simpel, vervang \' steeds met '. Dit staat wel zo in het php beatand om daar fouten te voorkomen.

Gesloten