Code: Select all
Parse error: parse error, unexpected T_ELSE in /mounted-storage/home5/sub001/sc12145-YBIV/www/forum/groupcp.php on line 1204
Code: Select all
ALTER TABLE groups ADD group_count INT (4) UNSIGNED DEFAULT '99999999'
ALTER TABLE groups ADD group_count_max INT (4) UNSIGNED DEFAULT '99999999'
ALTER TABLE groups ADD group_count_enable SMALLINT (2) UNSIGNED DEFAULT '0'
Could not update group
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 ' group_count='0', group_count_max='1', group_count_enable='1' = 2 WHERE gr' at line 2
UPDATE phpbb_groups SET group_type = 2, group_name = 'newbies', group_description = '', group_moderator, group_count='0', group_count_max='1', group_count_enable='1' = 2 WHERE group_id = 40
Line : 357
File : /home/admin/admin_groups.php
Azuin wrote: I had a 1054 SQL error. The way to fix this is to go into phpmyadmin (it comes with your web hosting package. I found mine in my web control panel, in SQL databases), then manually check and make sure that you have the following tables:
They are under the phpBB_group table. I only saw group_count there, so obviously easymod didn't add the other two (group_count_max and group_count_enable), so I added them myself.Code: Select all
ALTER TABLE groups ADD group_count INT (4) UNSIGNED DEFAULT '99999999' ALTER TABLE groups ADD group_count_max INT (4) UNSIGNED DEFAULT '99999999' ALTER TABLE groups ADD group_count_enable SMALLINT (2) UNSIGNED DEFAULT '0'
Now everything works.
Good luck.
Code: Select all
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 'ORDER BY u.username' at line 7
SELECT u.username, u.user_id, u.user_viewemail, u.user_posts, u.user_regdate, u.user_from, u.user_website, u.user_email, u.user_icq, u.user_aim, u.user_yim, u.user_msnm, ug.user_pending FROM phpbb_users u, phpbb_user_group ug WHERE ug.group_id = 208 AND u.user_id = ug.user_id AND ug.user_pending = 0 AND ug.user_id <> ORDER BY u.username
Line : 1589
File : groupcp.php
Code: Select all
Warning: main(./includes/functions_calendar.php): failed to open stream: No such file or directory in /var/www/vhosts/snoopfm.co.uk/httpdocs/forum/viewforum.php on line 62
Warning: main(): Failed opening './includes/functions_calendar.php' for inclusion (include_path='./:/usr/share/pear') in /var/www/vhosts/snoopfm.co.uk/httpdocs/forum/viewforum.php on line 62
Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/snoopfm.co.uk/httpdocs/forum/viewforum.php:62) in /var/www/vhosts/snoopfm.co.uk/httpdocs/forum/includes/page_header.php on line 479
Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/snoopfm.co.uk/httpdocs/forum/viewforum.php:62) in /var/www/vhosts/snoopfm.co.uk/httpdocs/forum/includes/page_header.php on line 485
Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/snoopfm.co.uk/httpdocs/forum/viewforum.php:62) in /var/www/vhosts/snoopfm.co.uk/httpdocs/forum/includes/page_header.php on line 486
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/rpmurph/public_html/forums/groupcp.php on line 226
Code: Select all
if ( $row = $db->sql_fetchrow($result) )
//line 225 is blank
$is_autogroup_enable = ($row['group_count'] <= $userdata['user_posts'] & $row['group_count_max'] >$userdata['user_posts']) ? true : false;
if ( $row['group_type'] == GROUP_OPEN || $is_autogroup_enable)
{
TheTallMan wrote: I've added this mod to my forum:
phpbb v2.0.18
php v5.0.4-10.4
mysql v4.1.14-1.FC4.1
Fedora vCore4
The mod works as expected. User reaches a certain post count and is automatically added to a group. However, the language/lang_english/email/group_added.tpl does not fire off an email to the user. If I manually remove the user from the group and re-add them to group the email is fired off correctly.
Any debugging tips or advice to solve this one is appreciated.
TheTallMan wrote:TheTallMan wrote:I've added this mod to my forum:
phpbb v2.0.18
php v5.0.4-10.4
mysql v4.1.14-1.FC4.1
Fedora vCore4
The mod works as expected. User reaches a certain post count and is automatically added to a group. However, the language/lang_english/email/group_added.tpl does not fire off an email to the user. If I manually remove the user from the group and re-add them to group the email is fired off correctly.
Any debugging tips or advice to solve this one is appreciated.
bump