Jump to content

Error with Categories and monitoring product since upgrade in 1.6.1


Recommended Posts

Hello Community prestashop,
 
Since I upgraded my prestashop 1.6.0.14 to 1.6.1 I got a lot of errors in backoffice. some are resolved but I can't find solution for theses:
 
1. When I'm going on product page and I try to change category association I have just a point under the category parent
same problem if I can to add a new category under an other. but when I go into front office all is ok.
I'm try to refresh cache but not change. (screenshot)
 
 
 
2. In monitoring products I have this message: 
  • Mauvaise requête SQL
    Unknown column 'sa.active' in 'where clause'

 

I activated the mod dev here the message:

 

[PrestaShopDatabaseException]

Unknown column 'sa.active' in 'where clause'
 

SELECT SQL_CALC_FOUND_ROWS
                                b.*, a.*
            
            FROM `ps_product` a
            LEFT JOIN `ps_product_lang` b ON (b.`id_product` = a.`id_product` AND b.`id_lang` = 1 AND b.`id_shop` = 1)
             INNER JOIN ps_product_shop product_shop
        ON (product_shop.id_product = a.id_product AND product_shop.id_shop = 1)
             WHERE 1 AND EXISTS (
            SELECT 1
            FROM `ps_product` p
             LEFT JOIN ps_stock_available stock
            ON (stock.id_product = p.id_product AND stock.id_shop = 1 AND stock.id_shop_group = 0 )
            WHERE a.id_product = p.id_product AND NOT EXISTS (
                SELECT 1
                FROM `ps_product_attribute` pa WHERE pa.id_product = p.id_product
            )
            AND IFNULL(stock.quantity, 0) <= 0
        ) AND sa.`active` = 1
            
             ORDER BY a.`id_product` DESC LIMIT 0, 50

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

 

760.             WebserviceRequest::getInstance()->setError(500, '
 '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);
761.         }
762.         elseif (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS'))
763.         {
764.             if ($sql)
765.                 throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');
766.
767.             throw new PrestaShopDatabaseException($this->getMsgError());
768.         }
769.     }
770.
------------------------------------------------------------------------------------
 
Anyone have got the problem or can solved this? 
 
All help will be welcome.

post-439372-0-04021300-1438907969_thumb.png

Edited by mams13 (see edit history)
Link to comment
Share on other sites

  • 1 month later...
  • 8 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...