Swizec wrote:djdadevil wrote:Swizec wrote:DOn't know, but I guess it wouldn't hurt to try![]()
Yes it does, wanted to know first, but installed with easymod, almost no errors, but all went fine... thanks anyway and nevermind!
Glad to hear that ^^
Code: Select all
Error in posting
DEBUG MODE
SQL Error : 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 '0, 0, 0, , 0)' at line 1
INSERT INTO phpBB_topics (topic_title, topic_noguest, topic_noguest_level, topic_password, topic_pass_level, topic_poster, topic_time, forum_id, topic_adminedit, topic_status, topic_type, topic_calendar_time, topic_calendar_duration, topic_vote) VALUES ('1','', '', '', '', 2, 1147013118, 1, ,0, 0, 0, , 0)
Line : 312
File : functions_post.php
Code: Select all
#-----[ OPEN ]------------------------------------------
#
includes/functions_post.php
#
#-----[ FIND ]------------------------------------------
#
submit_post(
#
#-----[ IN-LINE FIND ]------------------------------------------
#
&$bbcode_on,
#
#-----[ IN-LINE BEFORE, ADD ]------------------------------------------
#
&$noguest, &$adminedit, &$password,
#
#-----[ FIND ]------------------------------------------
#
$sql = ( ($mode != "editpost") || ($was_a_draft &&
[color=red](My edit!)[/color]
#
#-----[ BEFORE, ADD ]------------------------------------------
#
//mod topic mod add
$lockedit = $adminedit[1];
$pass = $password[1];
$pass_lvl = $password[2];
$noguest_lvl = $noguest[2];
$noguest = $noguest[1];
// mod topic mod: add to sql query
#
#-----[ IN-LINE FIND ]------------------------------------------
#
topic_title,
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
topic_noguest, topic_noguest_level, topic_password, topic_pass_level,
[color=red]guess that this is the problem since all other tags are beginning with an $-mark... did post that already into it, but still having the same problem[/color]
#
#-----[ IN-LINE FIND ]------------------------------------------
#
topic_status,
[color=red]same here I presume[/color]
#
#-----[ IN-LINE BEFORE, ADD ]------------------------------------------
#
(...) etc...
Code: Select all
: "UPDATE " . TOPICS_TABLE . "
SET topic_status = " . TOPIC_LOCKED . "
WHERE topic_id IN ($topic_id_sql)
AND topic_adminedit = '0'
AND forum_id = $forum_id
AND topic_moved_id = 0";
Swizec wrote: Uhm dude, the php file you linked to doesn't seem to have this mod even applied.
You're missing something in the sql query where the error occurs though... undefined variable or something.
Ah no wait, just the variables in the header of the "submit_post" function appear to be missing so that's probably what's wrong.
Code: Select all
Warning: Missing argument 8 for user_notification() in /var/www/html/phpBB2/includes/functions_post.php on line 761
Warning: Missing argument 9 for user_notification() in /var/www/html/phpBB2/includes/functions_post.php on line 761
Warning: Missing argument 10 for user_notification() in /var/www/html/phpBB2/includes/functions_post.php on line 761
Warning: Missing argument 11 for user_notification() in /var/www/html/phpBB2/includes/functions_post.php on line 761
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/phpBB2/includes/functions_post.php:761) in /var/www/html/phpBB2/includes/page_header.php on line 652
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/phpBB2/includes/functions_post.php:761) in /var/www/html/phpBB2/includes/page_header.php on line 654
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/phpBB2/includes/functions_post.php:761) in /var/www/html/phpBB2/includes/page_header.php on line 655
Code: Select all
Could not obtain topic watch information
DEBUG MODE
SQL Error : 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 'AND user_id = 2' at line 4
SELECT topic_id FROM phpBB_topics_watch WHERE topic_id = AND user_id = 2
Line : 918
File : functions_post.php
Swizec wrote: Ah no wait, just the variables in the header of the "submit_post" function appear to be missing so that's probably what's wrong.
Code: Select all
#
#-----[ FIND ]------------------------------------------
#
" . TOPIC_MOVED . ",
#
#-----[ IN-LINE FIND ]------------------------------------------
#
",
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
$make_admin,
Code: Select all
VALUES ($old_forum_id, '" . addslashes(str_replace("\'", "''", $row[$i]['topic_title'])) . "', '" . str_replace("\'", "''", $row[$i]['topic_poster']) . "', " . $row[$i]['topic_time'] . ", " . TOPIC_MOVED . ", $make_admin, " . POST_NORMAL . ", " . $row[$i]['topic_vote'] . ", " . $row[$i]['topic_views'] . ", " . $row[$i]['topic_replies'] . ", " . $row[$i]['topic_first_post_id'] . ", " . $row[$i]['topic_last_post_id'] . ", $topic_id)";
Code: Select all
VALUES ($old_forum_id, '" . addslashes(str_replace("\'",$make_admin, "''", $row[$i]['topic_title'])) . "', '" . str_replace("\'", "''", $row[$i]['topic_poster']) . "', " . $row[$i]['topic_time'] . ", " . TOPIC_MOVED . ", " . POST_NORMAL . ", " . $row[$i]['topic_vote'] . ", " . $row[$i]['topic_views'] . ", " . $row[$i]['topic_replies'] . ", " . $row[$i]['topic_first_post_id'] . ", " . $row[$i]['topic_last_post_id'] . ", $topic_id)";