Log in Register FAQ Memberlist Search Welcome to RCF - WHF Forum Index
alt : test.swf
Welcome to RCF - WHF
4fx3.gif 
calendar_open_closeCalendar 
Classified Ads MOD problem
Post new topic   Reply to topic View previous topic :: View next topic
Goto page: 1, 2  Next
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support Add To Bookmarks
Classified Ads MOD problem
PostPosted: 05/19/2007 1:55 PM Reply with quote
Citation
abdulbasit
Citation
Posts 1017
Word Cnt. 64,643
BDay Apr 18
Sign Aries
Sex Sex:Male
Joined: Apr 01, 2007
Local time: 12:27 PM
Location: UNITED ARAB EMIRATES
unitedACa.gif
Hi Nightrider,

I have installed Classified Ads MOD past 1 week on live as well as Test board and after that installed many other MODs so cannot delete this now. I didn't test it deeply and one of my user told me the bug which I am confused on how to fix that. I need to fix at live board and you may tell me how to fix so I will myself fix at test board also later.

When we create any post in classified and try to look at our any ad like this http://www.funwadi.com/forum/ads_item.php?id=2 so it says

Code:
General Error
 
Error reading category table

DEBUG MODE

SELECT * FROM phpbb_ads_categories WHERE cat_category = 'Business & Commercial' AND cat_sub_category = 'Product for Sale'

Line : 115
File : ads_item.php


The download link is
Code:
http://www.phpca.net/phpCA-0.5.6.zip


crybaby  dontknow
Back to Top
View user's profile Find all posts by abdulbasit Send private message [ Hidden ] Visit poster's website Yahoo Messenger MSN Messenger
Re: Classified Ads MOD problem
PostPosted: 05/19/2007 6:44 PM 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: 4:27 AM
Location: St Pete, FL
peace.gif
You don't have any Category named Business & Commercial.  What's stored in your phpbb_ads_categories table is Business & Commercials, so your query would return an empty set, which is probably what is being reported here even though it isn't clear about it...

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: Classified Ads MOD problem
PostPosted: 05/20/2007 2:15 AM Reply with quote
Citation
abdulbasit
Citation
Posts 1017
Word Cnt. 64,643
BDay Apr 18
Sign Aries
Sex Sex:Male
Joined: Apr 01, 2007
Local time: 12:27 PM
Location: UNITED ARAB EMIRATES
unitedACa.gif
Ohh! So what i have to do now  dontknow
Back to Top
View user's profile Find all posts by abdulbasit Send private message [ Hidden ] Visit poster's website Yahoo Messenger MSN Messenger
Re: Classified Ads MOD problem
PostPosted: 05/20/2007 2:43 AM Reply with quote
Citation
abdulbasit
Citation
Posts 1017
Word Cnt. 64,643
BDay Apr 18
Sign Aries
Sex Sex:Male
Joined: Apr 01, 2007
Local time: 12:27 PM
Location: UNITED ARAB EMIRATES
unitedACa.gif
I renamed 1st Business & Commercials to Business & Commercials through phpMyAdmin. Do you want me to edit all such categories or there is any easy way to edit/fix all  dontknow
Back to Top
View user's profile Find all posts by abdulbasit Send private message [ Hidden ] Visit poster's website Yahoo Messenger MSN Messenger
Re: Classified Ads MOD problem
PostPosted: 05/20/2007 2:44 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: 4:27 AM
Location: St Pete, FL
peace.gif
Where do you create these records?  You need to correct the Category name so that it matches what is being requested.  Since I can't get into your ACP, I can't really see what you do with these...

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: Classified Ads MOD problem
PostPosted: 05/20/2007 2:47 AM Reply with quote
Citation
abdulbasit
Citation
Posts 1017
Word Cnt. 64,643
BDay Apr 18
Sign Aries
Sex Sex:Male
Joined: Apr 01, 2007
Local time: 12:27 PM
Location: UNITED ARAB EMIRATES
unitedACa.gif
Ohh Sorry. I forgot to tell you this also !!! I am so dumb. The password to enter ACP is same what is for FTP password and username is ab
Back to Top
View user's profile Find all posts by abdulbasit Send private message [ Hidden ] Visit poster's website Yahoo Messenger MSN Messenger
Re: Classified Ads MOD problem
PostPosted: 05/20/2007 2:52 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: 4:27 AM
Location: St Pete, FL
peace.gif
abdulbasit wrote:
I renamed 1st Business & Commercials to Business & Commercials through phpMyAdmin. Do you want me to edit all such categories or there is any easy way to edit/fix all  dontknow

I can edit them directly in your database easy enough.  My concern is whether the code is converting & to & and will continue causing problems unless you avoid the ampersand.  Also, there was an extra s at the end of Commercial.  I didn't know whether you wanted it to say Commercials or Commercial...

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: Classified Ads MOD problem
PostPosted: 05/20/2007 2:59 AM Reply with quote
Citation
abdulbasit
Citation
Posts 1017
Word Cnt. 64,643
BDay Apr 18
Sign Aries
Sex Sex:Male
Joined: Apr 01, 2007
Local time: 12:27 PM
Location: UNITED ARAB EMIRATES
unitedACa.gif
Ah, that will be easy than. Yeah, i don't know how it is making & to &
I think that "s" was from before because in other categories like Vehicles for Sale, Vehicles Wanted don't have automatic "s" at the end so I think only the problem is of & &
Back to Top
View user's profile Find all posts by abdulbasit Send private message [ Hidden ] Visit poster's website Yahoo Messenger MSN Messenger
Re: Classified Ads MOD problem
PostPosted: 05/20/2007 3: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: 4:27 AM
Location: St Pete, FL
peace.gif
Ok, I corrected the problem in the code, like this:

OPEN
admin/admin_ads_categories.php

FIND
Code:
$category = str_replace("\'", "''", $category);
$sub_category = str_replace("\'", "''", $sub_category);

AFTER, ADD
Code:
$category = str_replace("&'", "&", $category);
$sub_category = str_replace("&'", "&", $sub_category);

This will convert the ampersand back to & before it runs the query.  It works now...

headbang
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: Classified Ads MOD problem
PostPosted: 05/20/2007 3:12 AM Reply with quote
Citation
abdulbasit
Citation
Posts 1017
Word Cnt. 64,643
BDay Apr 18
Sign Aries
Sex Sex:Male
Joined: Apr 01, 2007
Local time: 12:27 PM
Location: UNITED ARAB EMIRATES
unitedACa.gif
But brother when I go to http://www.funwadi.com/forum/ads_item.php?id=2 it still shows the same type of error  dontknow
Back to Top
View user's profile Find all posts by abdulbasit Send private message [ Hidden ] Visit poster's website Yahoo Messenger MSN Messenger
 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  Next
Page 1 of 2


Add To Bookmarks

 
  
  


  Google

Powered by phpBB © 2001, 2005 phpBB Group

Page generation time: 0.0939s (PHP: 52% - SQL: 48%) - SQL queries: 57 - GZIP disabled - Debug on