• 0
MasterSub

FluxCP[adding item]

Question

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

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

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

Share this post


Link to post
Share on other sites
  • 0
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

Share this post


Link to post
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.

Loading...