 | error when viewing forums |  |
Posted: 06/23/2007 4:01 AM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 11:55 PM
Location: Birmingham, UK.
|

|
|
|
|
 |
I uninstalled the descriptions mod because it isn't needed but now when going to view a forum i get this
| Code:
|
Could not obtain topic 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 'FROM (phpbb_topics t, phpbb_users u, phpbb_posts p, phpbb_users u2 LEFT JOIN ph' at line 2
SELECT t.*, u.username, u.user_id, u2.username as user2, u2.user_id as id2, p.post_time, p.post_username, p3.poster_id AS my_reply_id, FROM (phpbb_topics t, phpbb_users u, phpbb_posts p, phpbb_users u2 LEFT JOIN phpbb_posts p3 ON p3.topic_id = t.topic_id AND p3.poster_id = 2) WHERE t.forum_id = 10 AND t.topic_poster = u.user_id AND p.post_id = t.topic_last_post_id AND p.poster_id = u2.user_id AND (t.topic_type = 2 OR t.topic_type = 1) GROUP BY p.post_id ORDER BY t.topic_priority DESC, t.topic_last_post_id DESC
Line : 339
File : viewforum.php
|
here's the download link to the mod http://www.djpassions.com/topic_desc_1.15.2b.zip
?? |
|
|
 |
 |
| Back to Top |
|
|
 | Re: error when viewing forums |  |
Posted: 06/23/2007 4:09 AM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 6:55 PM
Location: St Pete, FL
|

|
|
|
|
 |
You left the comma just before the FROM when you removed the description field in your viewforum.php file. So go into viewforum.php and around line 339, search for my_reply_id, and remove the comma at the end...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: error when viewing forums |  |
Posted: 06/23/2007 4:13 AM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 11:55 PM
Location: Birmingham, UK.
|

|
|
|
|
 |
Phew! I was getting worried for a bit then.
Thanks again Nightrider  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: error when viewing forums |  |
Posted: 06/23/2007 4:25 AM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 11:55 PM
Location: Birmingham, UK.
|

|
|
|
|
 |
another thing i uninstalled the moved topic message notify mod too get rid of the extra options in the profile etc. the mod didnt work as it should have done anyway so thought sod it ill get rid but now after removing the mod and go to test moving a topic i just get a blank page.
i remeber being a bit stuck on this section
| Code:
|
#
#-----[ OPEN ]------------------------------------------
#
admin/admin_forumauth.php
#
#-----[ FIND ]------------------------------------------
#
// View Read Post Reply Edit Delete Sticky Announce Vote Poll
#
#-----[ IN-LINE FIND ]------------------------------------------
#
Poll
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
Desc ModDesc Tooltip
// mod topic description mod add to array
#
#-----[ FIND ]------------------------------------------
#
0 => array(
#
#-----[ IN-LINE FIND ]------------------------------------------
#
),
#
#-----[ IN-LINE BEFORE, ADD ]------------------------------------------
#
, AUTH_ALL, AUTH_ALL, AUTH_ALL
#
#-----[ FIND ]------------------------------------------
#
1 => array(
#
#-----[ IN-LINE FIND ]------------------------------------------
#
),
#
#-----[ IN-LINE BEFORE, ADD ]------------------------------------------
#
, AUTH_REG, AUTH_REG, AUTH_ALL
#
#-----[ FIND ]------------------------------------------
#
2 => array(
#
#-----[ IN-LINE FIND ]------------------------------------------
#
),
#
#-----[ IN-LINE BEFORE, ADD ]------------------------------------------
#
, AUTH_REG, AUTH_REG, AUTH_REG
#
#-----[ FIND ]------------------------------------------
#
3 => array(
#
#-----[ IN-LINE FIND ]------------------------------------------
#
),
#
#-----[ IN-LINE BEFORE, ADD ]------------------------------------------
#
, AUTH_ACL, AUTH_ACL, AUTH_ALL
#
#-----[ FIND ]------------------------------------------
#
4 => array(
#
#-----[ IN-LINE FIND ]------------------------------------------
#
),
#
#-----[ IN-LINE BEFORE, ADD ]------------------------------------------
#
, AUTH_ACL, AUTH_ACL, AUTH_ACL
#
#-----[ FIND ]------------------------------------------
#
5 => array(
#
#-----[ IN-LINE FIND ]------------------------------------------
#
),
#
#-----[ IN-LINE BEFORE, ADD ]------------------------------------------
#
, AUTH_MOD, AUTH_MOD, AUTH_ALL
#
#-----[ FIND ]------------------------------------------
#
6 => array(
#
#-----[ IN-LINE FIND ]------------------------------------------
#
),
#
#-----[ IN-LINE BEFORE, ADD ]------------------------------------------
#
, AUTH_MOD, AUTH_MOD, AUTH_MOD
#
#-----[ FIND ]------------------------------------------
#
$forum_auth_fields
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// mod topic description mod add to array
#
#-----[ IN-LINE FIND ]------------------------------------------
#
);
#
#-----[ IN-LINE BEFORE, ADD ]------------------------------------------
#
, 'auth_desc', 'auth_moddesc', 'auth_tooltip'
#
#-----[ FIND ]------------------------------------------
#
$field_names
#
#-----[ FIND ]------------------------------------------
#
);
#
#-----[ IN-LINE FIND ]------------------------------------------
#
);
#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
#
,
#
#-----[ AFTER, ADD ]------------------------------------------
#
// mod topic description mod add
'auth_desc' => $lang['desc'],
'auth_moddesc' => $lang['moddesc'],
'auth_tooltip' => $lang['tooltip']);
// mod topic description mod end
#
#-----[ OPEN ]------------------------------------------
#
admin/admin_ug_auth.php
#
#-----[ FIND ]------------------------------------------
#
$forum_auth_fields
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// mod topic description add to array
#
#-----[ IN-LINE FIND ]------------------------------------------
#
);
#
#-----[ IN-LINE BEFORE, ADD ]------------------------------------------
#
, 'auth_desc', 'auth_moddesc', 'auth_tooltip'
#
#-----[ FIND ]------------------------------------------
#
$auth_field_match
#
#-----[ FIND ]------------------------------------------
#
);
#
#-----[ IN-LINE FIND ]------------------------------------------
#
);
#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
#
,
#
#-----[ AFTER, ADD ]------------------------------------------
#
// mod topic description add
'auth_desc' => AUTH_DESC,
'auth_moddesc' => AUTH_MODDESC,
'auth_tooltip' => AUTH_TOOLTIP);
// mod topic description end
#
#-----[ FIND ]------------------------------------------
#
$field_names
#
#-----[ FIND ]------------------------------------------
#
);
#
#-----[ IN-LINE FIND ]------------------------------------------
#
);
#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
#
,
#
#-----[ AFTER, ADD ]------------------------------------------
#
// mod topic description mod add
'auth_desc' => $lang['desc'],
'auth_moddesc' => $lang['moddesc'],
'auth_tooltip' => $lang['tooltip']);
// mod topic description mod end
|
i may have messed something up small or big time i dont know |
|
|
 |
 |
| Back to Top |
|
|
 | Re: error when viewing forums |  |
Posted: 06/23/2007 4:27 AM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 11:55 PM
Location: Birmingham, UK.
|

|
|
|
|
 |
btw i tried reversing the order ^
normally works  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: error when viewing forums |  |
Posted: 06/23/2007 4:46 AM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 6:55 PM
Location: St Pete, FL
|

|
|
|
|
 |
Did you create backups of all files that you modified before overwriting them? If so, restore your backups...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: error when viewing forums |  |
Posted: 06/23/2007 4:56 AM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 11:55 PM
Location: Birmingham, UK.
|

|
|
|
|
 |
i have backups on my pc but i've removed about 3 mods since
quick reply, moved topic message and the descriptions mod
I could restore the whole lot and go through it all again with you whenever youve got time
i pretty went through them all ok though. I just got something wrong with the moved message topic mod. I think i messed up when it come to revsering the commands in the admin/admin_forumauth.php and admin/admin_ug_auth.php
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: error when viewing forums |  |
Posted: 06/23/2007 4:59 AM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 11:55 PM
Location: Birmingham, UK.
|

|
|
|
|
 |
all these were modifed with topic description mod
| Code:
|
Processed Languages: english
Files Edited: 26
admin/admin_forumauth.php
admin/admin_ug_auth.php
admin/admin_users.php
common.php
includes/constants.php
includes/functions_post.php
includes/functions_search.php
includes/page_header.php
includes/usercp_avatar.php
includes/usercp_register.php
language/lang_english/lang_admin.php
language/lang_english/lang_main.php
posting.php
search.php
templates/subSilver/admin/user_edit_body.tpl
templates/subSilver/overall_footer.tpl
templates/subSilver/overall_header.tpl
templates/subSilver/posting_body.tpl
templates/subSilver/posting_preview.tpl
templates/subSilver/profile_add_body.tpl
templates/subSilver/search_results_posts.tpl
templates/subSilver/search_results_topics.tpl
templates/subSilver/viewforum_body.tpl
templates/subSilver/viewtopic_body.tpl
viewforum.php
viewtopic.php
|
if i restore the backs up of hdd then it will affect files that may have been modifed recently = i'd bugger it all up even more  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: error when viewing forums |  |
Posted: 06/23/2007 5:11 AM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 11:55 PM
Location: Birmingham, UK.
|

|
|
|
|
 |
oh flippin el lol its all going pete tong now im just going to do a full restore  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: error when viewing forums |  |
Posted: 06/23/2007 5:36 AM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 6:55 PM
Location: St Pete, FL
|

|
|
|
|
 |
You really need to get in the habit of keeping good backups of your modified files if you plan to manually add and remove MODs. EM does that without question, so it is so much easier to use EM to add and remove MODs than to try to do it manually. If you have to restore EM backups for 5 MODs to get rid of the one you want to lose, that is faster than doing it manually then possibly making a mistake. It would only take a few minutes to reinstall the MODs that you actually wanted to keep using EM again. And that would be a whole lot faster than having to restore the entire board code...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Information |  |
|