Jump to content
  • 0

FluxCP[adding item]


MasterSub

Question


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  7
  • Reputation:   0
  • Joined:  01/23/18
  • Last Seen:  

Unable to add items to fluxCP already item_db.sql, and when you add is displayed error, failed to add item, i did upload item_db and item_db2 for database and enable use of itemdb: yes

 

item/add.PHP

			if($server->isRenewal) {
                $fromTables = array("{$server->charMapDatabase}.item_db_re", "{$server->charMapDatabase}.item_db2_re");
                $customTable = 'item_db_re';
			} else {
                $fromTables = array("{$server->charMapDatabase}.item_db", "{$server->charMapDatabase}.item_db2");
                $customTable = 'item_db2';
			}
			$tableName = "{$server->charMapDatabase}.items";
			$tempTable = new Flux_TemporaryTable($server->connection, $tableName, $fromTables);
			$shopTable = Flux::config('FluxTables.ItemShopTable');

OhTIfKH.png

Edited by MasterSub
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  1511
  • Reputation:   227
  • Joined:  08/03/12
  • Last Seen:  

22 hours ago, MasterSub said:

Unable to add items to fluxCP already item_db.sql, and when you add is displayed error, failed to add item, i did upload item_db and item_db2 for database and enable use of itemdb: yes

 

item/add.PHP


			if($server->isRenewal) {
                $fromTables = array("{$server->charMapDatabase}.item_db_re", "{$server->charMapDatabase}.item_db2_re");
                $customTable = 'item_db_re';
			} else {
                $fromTables = array("{$server->charMapDatabase}.item_db", "{$server->charMapDatabase}.item_db2");
                $customTable = 'item_db2';
			}
			$tableName = "{$server->charMapDatabase}.items";
			$tempTable = new Flux_TemporaryTable($server->connection, $tableName, $fromTables);
			$shopTable = Flux::config('FluxTables.ItemShopTable');

OhTIfKH.png

Pls add all itemdb, itemdbre, mobdb, mobdbre in sql-files.. import it first in your database/phpmyadmin.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.01
  • Content Count:  398
  • Reputation:   246
  • Joined:  07/04/19
  • Last Seen:  

On 1/12/2020 at 1:59 AM, MasterSub said:

Unable to add items to fluxCP already item_db.sql, and when you add is displayed error, failed to add item, i did upload item_db and item_db2 for database and enable use of itemdb: yes

 

item/add.PHP


			if($server->isRenewal) {
                $fromTables = array("{$server->charMapDatabase}.item_db_re", "{$server->charMapDatabase}.item_db2_re");
                $customTable = 'item_db_re';
			} else {
                $fromTables = array("{$server->charMapDatabase}.item_db", "{$server->charMapDatabase}.item_db2");
                $customTable = 'item_db2';
			}
			$tableName = "{$server->charMapDatabase}.items";
			$tempTable = new Flux_TemporaryTable($server->connection, $tableName, $fromTables);
			$shopTable = Flux::config('FluxTables.ItemShopTable');

OhTIfKH.png

to show the error. enable debug mode = true in application

Link to comment
Share on other sites

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...