oregon core webshop issue menu

User Tag List

Results 1 to 5 of 5
  1. #1
    ak47sigh's Avatar Corporal
    Reputation
    12
    Join Date
    Jun 2011
    Posts
    20
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    oregon core webshop issue

    Hello im using oregon core 2.4.3 last rev, I got webwow cms, and my vote shop doesnt send the item ingame:

    I get this error:

    Code:
    Mail is not sent! Error returned: Unknown column 'sender' in 'field list'
    INSERT INTO mail_external(sender, receiver, subject, message, money, stationery, sent) VALUES("23","23", "WebsiteVoteShopREF412195530", "Enjoy your new reward! Item costed 1 points. Time sent: 12-04-2011, 07:55 Item ID:25", "0", 0, 1)


    the trinity_Sendmail.php file looks like:
    or pastebin here: [PHP] 123123123123 - Pastebin.com

    PHP Code:
    $query_string ='INSERT INTO mail_external(sender, receiver, subject, message, money, stationery, sent) VALUES("'.$playerguid.'","'.$playerguid.'", "'.$subject.'", "'.$text.'", "'.$money.'", 0, 1)';
            
    $sendmail=false;
        
    $db->query($query_string) or ($sendmail=mysql_error());
        
    //find mail id and add item
        
    $sql1 $db->query("SELECT id FROM mail_external WHERE subject='".$subject."' AND receiver='".$playerguid."' LIMIT 1")or ($sendmail.=mysql_error());
        
    $sql2=$db->fetch_array($sql1);
        if(
    $sendmail==false && $sql2[0]<>'')
            
    $db->query("INSERT INTO mail_external_items (mail_id,item) VALUES ('".$sql2[0]."','".$item."')") or ($sendmail.=mysql_error());
        if(
    $sendmail==false)
            return  
    "<!-- success --><span class=\"colorgood\">Mail is sent! <br>All done!</span>";
        else
            return  
    "<span class=\"colorbad\">Mail is not sent! Error returned: ".$sendmail."<br>".$query_string;
        

    }
    function 
    sendmail_secondpatch($playername,$playerguid$subject$text$item$shopid=0$money=0$realmid=false//returns, IMPORTANT: do not remove <!-- success --> if success
    {
        
    //send normal, item only 
        
    global $db,$a_user,$db_translation;
        
    $subject preg_replace"/[^A-Za-z0-9]/"""$subject); //no whitespaces
        
    $item preg_replace"/[^0-9]/"""$item); //item id
        
    $playerguid preg_replace"/[^0-9]/"""$playerguid); //item id
        
    $text preg_replace"/[^A-Za-z0-9!-:.? ]/"""$text); //no whitespaces
        
    $moneypreg_replace"/[^0-9]/"""$money);
        


        if (
    $item=='')//send item
            
    $item="0";
        if (
    $money=='')
            
    $money=0;
        
        
        
    $insert_data = array(
                
    '%reciver%'     => $playerguid,
                
    '%subject%'     => $db->escape($subject),
                
    '%message%'     => $db->escape($text),
                
    '%money%'       => $money,
                
    '%item%'        => $item,
                
    '%item_count%'  => 1
            
    );
            
    $query_string strtr('INSERT INTO mail_external(receiver, subject, message, money, item, item_count) VALUES("%reciver%", "%subject%", "%message%", "%money%", %item%, %item_count%)'$insert_data);
            
    $sendmail=false;
        
    $db->query($query_string) or ($sendmail=mysql_error());
        if(
    $sendmail==false)
            return  
    "<!-- success --><span class=\"colorgood\">Mail is sent! <br>All done!</span>";
        else
            return  
    "<span class=\"colorbad\">Mail is not sent! Error returned: ".$sendmail."<br>".$query_string


    the mailbox databases & tables looks like:


    Code:
    mail:
    
    id ++ messageType ++ stationery ++ mailTemplateId ++ sender ++ receiver ++ subject ++ itemTextId ++ has_items e++ expire_time ++ deliver_time ++ money ++ cod ++ checked
    
    
    
    
    
    mail_external:
    
    id ++ receiver ++ subject ++ message ++ money ++ item ++ item_count
    
    
    
    
    
    
    mail_items:
    
    mail_id || item_guid ++ item_template ++ receiver

    If someone whish to help me or contact me at [email protected] Thank you

    sorry Im not a good php coder, I know what the error tries to tell me but the php codes appears to be strange to me :P
    Last edited by Ground Zero; 12-06-2011 at 05:18 PM. Reason: Added Prefix - read the rules!

    oregon core webshop issue
  2. #2
    JD's Avatar Fedora Potato Johnson V
    Reputation
    1113
    Join Date
    Jan 2008
    Posts
    3,129
    Thanks G/R
    12/89
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Make a sender column in the mail_external table.




  3. #3
    ak47sigh's Avatar Corporal
    Reputation
    12
    Join Date
    Jun 2011
    Posts
    20
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    didnt help sorry

  4. #4
    Druzil's Avatar Corporal
    Reputation
    6
    Join Date
    Oct 2010
    Posts
    27
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by ak47sigh View Post
    didnt help sorry
    Your mail_external table is entirely wrong compared to the PHP Code - you should have the following columns:

    sender,
    receiver,
    subject,
    message,
    money,
    stationery,
    sent

    Rebuild your mail_external table to reflect those columns, in that order, and it should work correctly.

  5. #5
    LilleCarl's Avatar Active Member
    Reputation
    65
    Join Date
    Feb 2008
    Posts
    132
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No people he should not rebuild his table, then the oregoncore mail_external function will not be able to read the data, he should recode the php application, which should not be to hard. BUT you have to give your time to do it, a basic explanation is: You must match the php script mysql insertion with your database table.
    Violence doesn't solve shit, but everything else.

Similar Threads

  1. [EPIC] How To Make TBC 2.4.3 Server with Oregon Core
    By Fantapower in forum WoW EMU Guides & Tutorials
    Replies: 5
    Last Post: 01-26-2019, 01:13 AM
  2. oregon core how to make 19 rated arenas
    By arklanbk in forum WoW EMU Questions & Requests
    Replies: 0
    Last Post: 05-12-2014, 06:45 AM
  3. [C++ Script] Oregon core boss script problems
    By gillisrofl in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 02-22-2012, 03:06 AM
  4. [SQL] OregonCore, SQL ERROR when starting Oregon-Core.exe
    By Henka44 in forum WoW EMU Questions & Requests
    Replies: 3
    Last Post: 12-10-2011, 09:54 PM
  5. [HELP] Stuck on connecting - core issue
    By gotiefan in forum WoW EMU Questions & Requests
    Replies: 4
    Last Post: 07-04-2009, 05:17 AM
All times are GMT -5. The time now is 10:55 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search