Partial Trades Not Showing - MystFell.com

Forum
Last Post
Threads / Messages

NobodysHero

Co-Owner of MystFell
Member
Joined
Nov 6, 2013
Messages
144
Points
0
Mysidian Dollar
12,988
I've received several complaints from my users (And have tested this out myself) that they're not able to view their partial trades. They get a notification that they have a trade from a user, but when they go to the page it's blank. Is there somewhere else they should be going?
 
Don't mean to bump an old thread but I'm having sorta the same problem. Whenever users send trades to each other they get the PM in their inboxes but when they go to their My Trades it doesn't show anything. Anyone found a solution?
 
Well does this only apply for partial trades, or is it not working for any kinds of trades(private and public too)?
 
I tested it out and it seems as though if a user selects partial trade, without specifying a creature, it gets sent to the Partial Trades page instead of My Trades page.

Whereas if partial trade ISN'T selected, it gets sent to My Trades like it's supposed to.

When I accepted a trade from My Trades page, it threw up an error page saying "an item wasn't selected" but when I went to check my adopts, the trade did in fact go through.

Public trades also aren't working. They show up in the public trades list, but when I tried offering a trade to one of the public ones, it gives me an error saying something like "You cannot specify a trade recipient in a public trade!" even though the recipient is automatically already specified. :x


So all in all the system is kind of working like it's supposed to aside from the public trades, though it's kind of confusing.
 
I see, I will take a look into this. Its very strange, I tested the script before and never had the same problem. I will see what I can come out with.
 
You are right, this does appear to be a bug. Its very strange since the public trade used to be working, and it was introduced in Mys v1.3.4 so nothing should've broken it. I will test the script again later today and let you know the fix I find.

Edit:
Found the fix, it was a glitch. Just one line of code will fix the public trade issue. To do this, go to script file trade.php in your root directory, and locate line 71:

PHP:
$validator = $this->trade->getValidator("public");
Change to:

PHP:
$validator = $this->trade->getValidator("private");
This should make your public trades work again. As you can see from the code above, when you reply to a public trade offer, you are in fact sending a private trade to the original poster(although your options may be limited, as the poster may specify exactly what he/she wants from a certain adoptable/item type). For this reason, the validator should validate the trade as a private trade, rather than another public trade. Hope this makes sense to you.

Also I've attached trade.php file in this post, you may just download it and replace your own trade.php file through ftp.
 

Attachments

  • trade.php
    5.7 KB · Views: 0
Ahh thanks so much HoF! That was quick! <3
I'll add this to my site and test it out!

EDIT: Yikes, so I'm not sure if it's working because I'm getting other errors now for some reason.

Whenever I try to make a public trade, it says "Fatal error occured, that species doesn't seem to exist in database"

Also, when I try to revise one of my own public trades, it gives me an error saying "That user doesn't seem to exist"
 
Last edited:
You are very welcome. ^^ Note the solution fixes public trades, I havent looked into partial trades since your last post was a bit confusing on whether there was a bug or not with partial trade. If there is, I will fix that too.
 
Oh I edited my reply above. For some reason public trades aren't working at all now. :x Haven't tested the others
 
I see, thats very strange. Did you change something in your database, are you sure the adoptables species exists? I tried on my demo site, and didnt have your problem.

And btw, I think at this moment only private trade can be edited.
 
The only thing I can recall that I changed recently is in adopts.php I changed the adopts' default trade status to notfortrade instead of fortrade. Other than that I'm not sure, but I can check around and see if I changed anything else.

Ohh and that makes sense then, because I was trying to edit one of my public trades.
 
I see, anyway it doesnt make sense that an adoptable's trade status will lead to an adoptable species not found. Do you recall any other changes you made to the script? Did you change anything in the table adopts_adoptables?
 

Similar threads

Users who are viewing this thread

  • Forum Contains New Posts
  • Forum Contains No New Posts

Forum statistics

Threads
4,277
Messages
33,121
Members
1,602
Latest member
BerrieMilk
BETA

Latest Threads

Latest Posts

Top