Log in Register FAQ Memberlist Search Welcome to RCF - WHF Forum Index
alt : test.swf
Welcome to RCF - WHF
4fx3.gif 
calendar_open_closeCalendar 
error when viewing forums
Post new topic   Reply to topic View previous topic :: View next topic
Goto page: 1, 2, 3  Next
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support Add To Bookmarks
error when viewing forums
PostPosted: 06/23/2007 4:01 AM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 11:55 PM
Location: Birmingham, UK.
greatbrE.gif
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
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: error when viewing forums
PostPosted: 06/23/2007 4:09 AM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 6:55 PM
Location: St Pete, FL
peace.gif
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...

munky2
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: error when viewing forums
PostPosted: 06/23/2007 4:13 AM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 11:55 PM
Location: Birmingham, UK.
greatbrE.gif
Phew! I was getting worried for a bit then.

Thanks again Nightrider Smile
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: error when viewing forums
PostPosted: 06/23/2007 4:25 AM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 11:55 PM
Location: Birmingham, UK.
greatbrE.gif
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
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: error when viewing forums
PostPosted: 06/23/2007 4:27 AM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 11:55 PM
Location: Birmingham, UK.
greatbrE.gif
btw i tried reversing the order ^

normally works  Crying or Very sad
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: error when viewing forums
PostPosted: 06/23/2007 4:46 AM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 6:55 PM
Location: St Pete, FL
peace.gif
Did you create backups of all files that you modified before overwriting them?  If so, restore your backups...

dontknow
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: error when viewing forums
PostPosted: 06/23/2007 4:56 AM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 11:55 PM
Location: Birmingham, UK.
greatbrE.gif
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

Crying or Very sad
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: error when viewing forums
PostPosted: 06/23/2007 4:59 AM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 11:55 PM
Location: Birmingham, UK.
greatbrE.gif
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  Shocked
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: error when viewing forums
PostPosted: 06/23/2007 5:11 AM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 11:55 PM
Location: Birmingham, UK.
greatbrE.gif
oh flippin el lol its all going pete tong now im just going to do a full restore  Brick wall
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: error when viewing forums
PostPosted: 06/23/2007 5:36 AM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 6:55 PM
Location: St Pete, FL
peace.gif
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...

munky2
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
 Post new topic  Reply to topic
Information
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
All times are GMT - 5 Hours
Goto page: 1, 2, 3  Next
Page 1 of 3


Add To Bookmarks

 
  
  


  Google

Powered by phpBB © 2001, 2005 phpBB Group

Page generation time: 0.0885s (PHP: 60% - SQL: 40%) - SQL queries: 57 - GZIP disabled - Debug on