Jump to content

Categories problem


Recommended Posts

Hi

 

I am really worried about one problem that i have found after install the new prestashop 1.6

I can´t  modificate the categories ,add a new category or change the position or any category. i can´t select a category for a new product neither.

 

I send a picture about the problem. Please help. How i can fix it?

 

Thanks

post-732251-0-65404900-1398290167_thumb.jpg

Link to comment
Share on other sites

thanks a lot for your coment.

 

I send down the text that appear  on  " turn on error reporting "

 

[PrestaShopDatabaseException]

Table 'gourmetc_ps18q29.ps_pk_customlink' doesn't exist
 

SELECT b.`id_pk_customlink`, b.`url`, b.`new_window`				FROM `ps_pk_customlink` b

at line 635 in file classes/db/Db.php

629. 			WebserviceRequest::getInstance()->setError(500, '[SQL Error] '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);630. 		}631. 		else if (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS'))632. 		{633. 			if ($sql)634. 				throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');635. 			throw new PrestaShopDatabaseException($this->getMsgError());636. 		}637. 	}638. 639. 	/**

 

 

 

 

Link to comment
Share on other sites

I switch on debug mode, but nothing happend. What should I see?

 

config/defines.inc.php

 

 
/* Debug only */
define('_PS_MODE_DEV_', true);
/* Compatibility warning */
define('_PS_DISPLAY_COMPATIBILITY_WARNING_', false);
if (_PS_MODE_DEV_)
{
@ini_set('display_errors', 'on');
@error_reporting(E_ALL | E_STRICT);
define('_PS_DEBUG_SQL_', true);
}
else
{
@ini_set('display_errors', 'off');
define('_PS_DEBUG_SQL_', false);
}
 
define('_PS_DEBUG_PROFILING_', false);
define('_PS_MODE_DEMO_', false);
Link to comment
Share on other sites

I have the solution :)

 

Here it is: http://nerdia.net/2013/08/30/prestashop-categories-block-empty-after-migrating-from-oscommerce/

 

I did not migrated, but this solved my problem. I hope it helps another people.

 

Solution: 

  1. You need to access the PrestaShop MySQL databas using phpMyAdmin.
  2. Open the table ps_categories. The id_category 1 is the root category. Find which id the home category has (it will have the field is_root_category set to 1). The home category is probably id_category 2.
  3. Open the table ps_configuration and find the key PS_ROOT_CATEGORY and make shure it has value ’1′ (the id_category of the root category).
  4. Find the key PS_HOME_CATEGORY and make shure it has the value of id_category for the home category, probably ’2′.
  5. Go to the back office, in the preferences menu go to the general settings. Activate multi store.
  6. In the advanced parameters menu, go to Multi store. 
  7. Click on the default group and edit your store. Select the Home category as Root category. Save the store.
  8. Go back in the preferences menu general settings and disable the multi store.
Edited by flashmovar (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...