Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Некорректно отображаются блоки на сайте

Recommended Posts

Добрый день.

Некорректно стали отображаться блоки на сайте.

Вверху пишет ошибку: "Warning: array_slice() expects parameter 1 to be array, string given in /home/o/o961599r/o961599r.beget.tech/public_html/catalog/controller/extension/module/tm_single_category_product.php on line 152"


Помогите, пожалуйста.

Link to comment
Share on other sites


Это может быть как-то связано с тем, что были удалены старые карточки товара и созданы новые?

        $data['featured_products'] = array();
        if (($setting['featured'] == "1" && $setting['tabs'] == "1") || ($setting['type'] == "3" && $setting['tabs'] == "0")) {
            if (!$setting['limit']) {
                $setting['limit'] = 4;
            $products = array_slice($setting['product'], 0, (int)$setting['limit']);
            $data['featured_products'] = $this->createProducts($products, $setting, $products_new);



Link to comment
Share on other sites

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

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.