Jump to content
  • 0

XantaraFlux looking for wrong item_db2


sietse11

Question


  • Group:  Members
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  127
  • Reputation:   7
  • Joined:  02/10/13
  • Last Seen:  

Hey folks,

 

I need some help.

I am trying to test the paypal sandbox.

But when I go to the itemshop I get the following error.

 

Message: Failed to import/replace rows from table 'ragnarok.item_db2'

 

now this table is called item_db2_re

 

I tried to fix it like this,

modules/itemshop/add.php

($server->isRenewal) {
	$fromTables = array("{$server->charMapDatabase}.item_db_re", "{$server->charMapDatabase}.item_db2_re");
} //else {
	//$fromTables = array("{$server->charMapDatabase}.item_db", "{$server->charMapDatabase}.item_db2");
}

I removed the if statement and secured the else statement for future reference.

Saved

Reloaded the page same error.

-------------------------------------------------------------

fixed by doing this

Modules/itemshop/add.php

if ($server->isRenewal) {
	$fromTables = array("{$server->charMapDatabase}.item_db_re", "{$server->charMapDatabase}.item_db2_re");
}       else {
	$fromTables = array("{$server->charMapDatabase}.item_db", "{$server->charMapDatabase}.item_db2");
}

added the _re behind "{$server->charMapDatabase}.item_db2_re")

 

and 

 

lib/flux/itemshop.php

if($this->server->isRenewal) {
			$fromTables = array("$db.item_db_re", "$db.item_db2");
		} else {
			$fromTables = array("$db.item_db", "$db.item_db2");
		}

TO

if($this->server->isRenewal) {
			$fromTables = array("$db.item_db_re", "$db.item_db2_re");
		} else {
			$fromTables = array("$db.item_db", "$db.item_db2");
		}
Edited by sietse11
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...