Front page crashes after sample products deleted

secondskywalker's picture
secondskywalker
Tue, 03/15/2016 - 03:10
#1
Front page crashes after sample products deleted

I deleted all sample shop products and products. Front page crashes after that. In Javascript console there is an error: "Uncaught TypeError: Cannot read property '0' of undefined" in views_infinite_scroll.js?o41aqt:55".

What is the element that causes this? 

cindy's picture
cindy
Wed, 03/16/2016 - 04:23

Hi,

Please check your email, download the attached file and overwrite the old file

wizona's picture
wizona
Fri, 03/25/2016 - 10:29

Hello!

I have a similar problem. Menu is not displayed properly, a slide show was gone, and do not display the existing products.

Changed a line in the code, the problem persists.

http://vapeboss.ru/shop/shop

wizona's picture
wizona
Fri, 03/25/2016 - 12:14
secondskywalker's picture
secondskywalker
Wed, 03/16/2016 - 09:22

Hi,

You sent a new template.php file. Overwriting is not a good solution because I have made some custom coding to template.php. Could you just tell which is the part that causes the problem?

phuonght's picture
phuonght
Wed, 03/16/2016 - 23:07

Hi,

Please find line 20 in that file and replace

"if ($view->query->pager->plugin_name == 'infinite_scroll') {" 

with

 "if ($view->query->pager->plugin_name == 'infinite_scroll' && $view->total_rows > 0) {"

wizona's picture
wizona
Wed, 03/23/2016 - 18:00

Hello!

I have a similar problem. Menu is not displayed properly, a slide show was gone, and do not display the existing products.

Changed a line in the code, the problem persists.

http://vapeboss.ru/shop/shop

phuonght's picture
phuonght
Sat, 03/26/2016 - 04:15

Hi,

Check your site please.

phuonght's picture
phuonght
Sat, 03/26/2016 - 04:15

Hi,

Check your site please.

wizona's picture
wizona
Wed, 04/06/2016 - 16:11

Thank you very much! Everything works perfectly

Log in or register to post comments
Have More Idea?

We are here to build your website!

No Universal solution fits all special business requirements. Our experienced team is ready with ideas and state-of-the-art technical solutions to consult the best solution within your budget.