
funfair97 wrote: Hi
I get an error when running the log_actions_db_update.php file-
Warning: mysql_connect(): Access denied for user: 'newfair_phpbb1@localhost' (Using password: NO) in /home/newfair/public_html/forum/db/mysql4.php on line 48
Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /home/newfair/public_html/forum/db/mysql4.php on line 330
Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in /home/newfair/public_html/forum/db/mysql4.php on line 331
phpBB : Critical Error
Could not connect to the database
Any suggestions please?????
Cheers
Code: Select all
CREATE TABLE phpbb_logs (
log_id mediumint(10) NOT NULL auto_increment,
mode VARCHAR(50) DEFAULT '',
topic_id mediumint(10) DEFAULT '0',
user_id mediumint(8) DEFAULT '0',
username VARCHAR(25) DEFAULT NULL,
user_ip VARCHAR(8) NOT NULL DEFAULT '0',
time int(11) DEFAULT '0',
post_title VARCHAR(60) NOT NULL DEFAULT '',
bbcode_uid VARCHAR(10) NOT NULL DEFAULT '',
post_text text,
PRIMARY KEY (log_id));
CREATE TABLE phpbb_logs_config (
config_name VARCHAR(255) NOT NULL,
config_value VARCHAR(255) NOT NULL,
PRIMARY KEY (config_name));
INSERT INTO phpbb_logs_config (
config_name, config_value)
VALUES ('all_admin', 0);
ALTER TABLE phpbb_users
ADD user_view_log TINYINT NOT NULL DEFAULT '0';
Code: Select all
Warning: Missing argument 14 for prepare_post() in /usr/home/dan10842/public_html/forumdk/includes/functions_post.php on line 124
Warning: Missing argument 21 for submit_post() in /usr/home/dan10842/public_html/forumdk/includes/functions_post.php on line 221
Warning: Missing argument 22 for submit_post() in /usr/home/dan10842/public_html/forumdk/includes/functions_post.php on line 221
Warning: Missing argument 23 for submit_post() in /usr/home/dan10842/public_html/forumdk/includes/functions_post.php on line 221
Warning: Missing argument 24 for submit_post() in /usr/home/dan10842/public_html/forumdk/includes/functions_post.php on line 221
Warning: Cannot modify header information - headers already sent by (output started at /usr/home/dan10842/public_html/forumdk/includes/functions_post.php:124) in /usr/home/dan10842/public_html/forumdk/includes/page_header.php on line 506
Warning: Cannot modify header information - headers already sent by (output started at /usr/home/dan10842/public_html/forumdk/includes/functions_post.php:124) in /usr/home/dan10842/public_html/forumdk/includes/page_header.php on line 508
Warning: Cannot modify header information - headers already sent by (output started at /usr/home/dan10842/public_html/forumdk/includes/functions_post.php:124) in /usr/home/dan10842/public_html/forumdk/includes/page_header.php on line 509
Code: Select all
Warning: Missing argument 14 for prepare_post() in /usr/home/dan10842/public_html/forumdk/includes/functions_post.php on line 124
Warning: Missing argument 21 for submit_post() in /usr/home/dan10842/public_html/forumdk/includes/functions_post.php on line 221
Warning: Missing argument 22 for submit_post() in /usr/home/dan10842/public_html/forumdk/includes/functions_post.php on line 221
Warning: Missing argument 23 for submit_post() in /usr/home/dan10842/public_html/forumdk/includes/functions_post.php on line 221
Warning: Missing argument 24 for submit_post() in /usr/home/dan10842/public_html/forumdk/includes/functions_post.php on line 221
Fatal error: Cannot redeclare clean_words() (previously declared in /usr/home/dan10842/public_html/forumdk/includes/functions_search.php:22) in /usr/home/dan10842/public_html/forumdk/includes/functions_search.php on line 22
balkanst wrote:funfair97 wrote:Hi
I get an error when running the log_actions_db_update.php file-
Warning: mysql_connect(): Access denied for user: 'newfair_phpbb1@localhost' (Using password: NO) in /home/newfair/public_html/forum/db/mysql4.php on line 48
Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /home/newfair/public_html/forum/db/mysql4.php on line 330
Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in /home/newfair/public_html/forum/db/mysql4.php on line 331
phpBB : Critical Error
Could not connect to the database
Any suggestions please?????
Cheers
I had the same problem when I upgraded to 2.19.
Here is what you do, go to phpmyadmin, find the database for your forum, click on SQL and run this code.
Make sure you delete the log_actions_db_update.php because you manually did it.Code: Select all
CREATE TABLE phpbb_logs ( log_id mediumint(10) NOT NULL auto_increment, mode VARCHAR(50) DEFAULT '', topic_id mediumint(10) DEFAULT '0', user_id mediumint(8) DEFAULT '0', username VARCHAR(25) DEFAULT NULL, user_ip VARCHAR(8) NOT NULL DEFAULT '0', time int(11) DEFAULT '0', post_title VARCHAR(60) NOT NULL DEFAULT '', bbcode_uid VARCHAR(10) NOT NULL DEFAULT '', post_text text, PRIMARY KEY (log_id)); CREATE TABLE phpbb_logs_config ( config_name VARCHAR(255) NOT NULL, config_value VARCHAR(255) NOT NULL, PRIMARY KEY (config_name)); INSERT INTO phpbb_logs_config ( config_name, config_value) VALUES ('all_admin', 0); ALTER TABLE phpbb_users ADD user_view_log TINYINT NOT NULL DEFAULT '0';
good luck