Jump to content
  • 0

FluxCP[adding item]


Question

Posted (edited)

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

2 answers to this question

Recommended Posts

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

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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...