compatibility problem with Woocommerce

May 2014 WordPress Theme
GK User
Wed Jun 29, 2016 6:53 pm
by request of Woocommece I've updated everything but now find that NSP (Version 1.0.1.6) breaks with the updated version of Woocommerce (Version 2.6.1). I'm using Storefront 1.8 as downloaded today.

I've no idea how to fix this, can you help?

I can see this error but I don't see a 500 in the cpanel error logs:
Code: Select all
Navigated to http://new.ava.ie/
jquery-migrate.min.js:2 JQMIGRATE: Migrate is installed, version 1.4.1
(index):1 GET http://new.ava.ie/ 500 (Internal Server Error)
Navigated to http://new.ava.ie/
jquery-migrate.min.js?ver=1.4.1:2 JQMIGRATE: Migrate is installed, version 1.4.1
User avatar
Expert Boarder

GK User
Wed Jun 29, 2016 6:54 pm
if I disable woocommerce NSP works as normal
User avatar
Expert Boarder

Joshua M
Thu Jun 30, 2016 7:55 am
Hi,
Could you please provide me with a URL to your website, either here or via PM (click the “Private Message” text underneath my avatar) so that I may analyze it?
User avatar
Moderator

GK User
Thu Jun 30, 2016 10:58 am
I've tracked down some errors which might help:

[29-Jun-2016 11:10:53 UTC] PHP Fatal error: Call to a member function has_child() on a non-object in /home/a40202/public_html/new/wp-content/plugins/gk-nsp/data_sources/wp_woocommerce/layout-parts.php on line 304
[29-Jun-2016 11:11:43 UTC] PHP Fatal error: Call to a member function has_child() on a non-object in /home/a40202/public_html/new/wp-content/plugins/gk-nsp/data_sources/wp_woocommerce/layout-parts.php on line 304
[29-Jun-2016 15:16:06 UTC] PHP Fatal error: Call to a member function has_child() on boolean in /home/a40202/public_html/new/wp-content/plugins/gk-nsp/data_sources/wp_woocommerce/layout-parts.php on line 304
[29-Jun-2016 15:33:09 UTC] PHP Fatal error: Call to a member function has_child() on boolean in /home/a40202/public_html/new/wp-content/plugins/gk-nsp/data_sources/wp_woocommerce/layout-parts.php on line 304
[29-Jun-2016 15:38:38 UTC] PHP Fatal error: Call to a member function has_child() on boolean in /home/a40202/public_html/new/wp-content/plugins/gk-nsp/data_sources/wp_woocommerce/layout-parts.php on line 304
[29-Jun-2016 15:52:22 UTC] PHP Fatal error: Call to a member function has_child() on boolean in /home/a40202/public_html/new/wp-content/plugins/gk-nsp/data_sources/wp_woocommerce/layout-parts.php on line 304
[29-Jun-2016 16:29:46 UTC] PHP Fatal error: Call to a member function has_child() on boolean in /home/a40202/public_html/new/wp-content/plugins/gk-nsp/data_sources/wp_woocommerce/layout-parts.php on line 304
[29-Jun-2016 16:29:50 UTC] PHP Fatal error: Call to a member function has_child() on boolean in /home/a40202/public_html/new/wp-content/plugins/gk-nsp/data_sources/wp_woocommerce/layout-parts.php on line 304
[29-Jun-2016 17:20:27 UTC] PHP Fatal error: Call to a member function has_child() on boolean in /home/a40202/public_html/new/wp-content/plugins/gk-nsp/data_sources/wp_woocommerce/layout-parts.php on line 304
[29-Jun-2016 17:20:32 UTC] PHP Fatal error: Call to a member function has_child() on boolean in /home/a40202/public_html/new/wp-content/plugins/gk-nsp/data_sources/wp_woocommerce/layout-parts.php on line 304
[29-Jun-2016 17:20:54 UTC] PHP Fatal error: Call to a member function has_child() on boolean in /home/a40202/public_html/new/wp-content/plugins/gk-nsp/data_sources/wp_woocommerce/layout-parts.php on line 304
[29-Jun-2016 17:22:42 UTC] PHP Warning: Division by zero in /home/a40202/public_html/new/wp-content/plugins/gk-nsp/article_wrappers/default/default.php on line 86
[29-Jun-2016 17:22:42 UTC] PHP Warning: Division by zero in /home/a40202/public_html/new/wp-content/plugins/gk-nsp/article_wrappers/default/default.php on line 88
[29-Jun-2016 17:23:03 UTC] PHP Warning: Division by zero in /home/a40202/public_html/new/wp-content/plugins/gk-nsp/article_wrappers/default/default.php on line 86
[29-Jun-2016 17:23:03 UTC] PHP Warning: Division by zero in /home/a40202/public_html/new/wp-content/plugins/gk-nsp/article_wrappers/default/default.php on line 88
[29-Jun-2016 17:23:26 UTC] PHP Warning: Division by zero in /home/a40202/public_html/new/wp-content/plugins/gk-nsp/article_wrappers/default/default.php on line 86
[29-Jun-2016 17:23:26 UTC] PHP Warning: Division by zero in /home/a40202/public_html/new/wp-content/plugins/gk-nsp/article_wrappers/default/default.php on line 88
[29-Jun-2016 17:23:58 UTC] PHP Fatal error: Call to a member function has_child() on boolean in /home/a40202/public_html/new/wp-content/plugins/gk-nsp/data_sources/wp_woocommerce/layout-parts.php on line 304
[29-Jun-2016 17:24:15 UTC] PHP Fatal error: Call to a member function has_child() on boolean in /home/a40202/public_html/new/wp-content/plugins/gk-nsp/data_sources/wp_woocommerce/layout-parts.php on line 304
[29-Jun-2016 17:24:32 UTC] PHP Fatal error: Call to a member function has_child() on boolean in /home/a40202/public_html/new/wp-content/plugins/gk-nsp/data_sources/wp_woocommerce/layout-parts.php on line 304
[29-Jun-2016 17:24:44 UTC] PHP Fatal error: Call to a member function has_child() on boolean in /home/a40202/public_html/new/wp-content/plugins/gk-nsp/data_sources/wp_woocommerce/layout-parts.php on line 304
[29-Jun-2016 17:28:48 UTC] PHP Fatal error: Call to a member function has_child() on boolean in /home/a40202/public_html/new/wp-content/plugins/gk-nsp/data_sources/wp_woocommerce/layout-parts.php on line 304
[29-Jun-2016 17:35:41 UTC] PHP Fatal error: Call to a member function has_child() on boolean in /home/a40202/public_html/new/wp-content/plugins/gk-nsp/data_sources/wp_woocommerce/layout-parts.php on line 304
[29-Jun-2016 17:36:14 UTC] PHP Fatal error: Call to a member function has_child() on boolean in /home/a40202/public_html/new/wp-content/plugins/gk-nsp/data_sources/wp_woocommerce/layout-parts.php on line 304
[29-Jun-2016 17:37:22 UTC] PHP Warning: Division by zero in /home/a40202/public_html/new/wp-content/plugins/gk-nsp/article_wrappers/default/default.php on line 86
[29-Jun-2016 17:37:22 UTC] PHP Warning: Division by zero in /home/a40202/public_html/new/wp-content/plugins/gk-nsp/article_wrappers/default/default.php on line 88
[29-Jun-2016 17:37:42 UTC] PHP Warning: Division by zero in /home/a40202/public_html/new/wp-content/plugins/gk-nsp/article_wrappers/default/default.php on line 86
[29-Jun-2016 17:37:42 UTC] PHP Warning: Division by zero in /home/a40202/public_html/new/wp-content/plugins/gk-nsp/article_wrappers/default/default.php on line 88
[29-Jun-2016 17:44:18 UTC] PHP Fatal error: Call to a member function has_child() on boolean in /home/a40202/public_html/new/wp-content/plugins/gk-nsp/data_sources/wp_woocommerce/layout-parts.php on line 304
[29-Jun-2016 17:50:43 UTC] PHP Fatal error: Call to a member function has_child() on boolean in /home/a40202/public_html/new/wp-content/plugins/gk-nsp/data_sources/wp_woocommerce/layout-parts.php on line 304
[29-Jun-2016 17:50:58 UTC] PHP Warning: Division by zero in /home/a40202/public_html/new/wp-content/plugins/gk-nsp/article_wrappers/default/default.php on line 86
[29-Jun-2016 17:50:58 UTC] PHP Warning: Division by zero in /home/a40202/public_html/new/wp-content/plugins/gk-nsp/article_wrappers/default/default.php on line 88
[29-Jun-2016 17:51:16 UTC] PHP Warning: Division by zero in /home/a40202/public_html/new/wp-content/plugins/gk-nsp/article_wrappers/default/default.php on line 86
[29-Jun-2016 17:51:16 UTC] PHP Warning: Division by zero in /home/a40202/public_html/new/wp-content/plugins/gk-nsp/article_wrappers/default/default.php on line 88
[29-Jun-2016 17:51:35 UTC] PHP Fatal error: Call to a member function has_child() on boolean in /home/a40202/public_html/new/wp-content/plugins/gk-nsp/data_sources/wp_woocommerce/layout-parts.php on line 304
[29-Jun-2016 17:51:54 UTC] PHP Fatal error: Call to a member function has_child() on boolean in /home/a40202/public_html/new/wp-content/plugins/gk-nsp/data_sources/wp_woocommerce/layout-parts.php on line 304
[29-Jun-2016 17:52:04 UTC] PHP Fatal error: Call to a member function has_child() on boolean in /home/a40202/public_html/new/wp-content/plugins/gk-nsp/data_sources/wp_woocommerce/layout-parts.php on line 304
[30-Jun-2016 09:41:32 UTC] PHP Fatal error: Call to a member function has_child() on boolean in /home/a40202/public_html/new/wp-content/plugins/gk-nsp/data_sources/wp_woocommerce/layout-parts.php on line 304
User avatar
Expert Boarder

GK User
Thu Jun 30, 2016 11:10 am
If I comment out line 304 to 320 of the file below it partially fixes NSP, the products don't work but everything else does.
/wp-content/plugins/gk-nsp/data_sources/wp_woocommerce/layout-parts.php on line 304
User avatar
Expert Boarder

GK User
Thu Jun 30, 2016 2:52 pm
This site is due to go live tomorrow, any help would be greatly appriciated
User avatar
Expert Boarder

Joshua M
Fri Jul 01, 2016 8:42 am
Could you send me a PM with backend and FTP access? I'll try to help.
User avatar
Moderator

GK User
Fri Jul 01, 2016 2:44 pm
Hi Joshua,

I've told the client that is likely to be Monday before we go live.

Have you had a chance to look at this yet?
User avatar
Expert Boarder

Joshua M
Wed Jul 06, 2016 8:06 am
Regarding the issue, i've edited your Featured page shortcode, to show only latest products and it works properly:
Code: Select all
<h3 class="box-title"></h3>
<h3 class="box-title" style="text-align: center;">Featured Products</h3>
[gknsp cache_time="0" widget_css_suffix="products" article_cols="4" article_rows="2" data_source_type="wp_woocommerce-wooc_latest" article_text_state="off" article_image_w="282" article_image_h="300" article_image_order="1" article_image_popup="off" article_title_order="2" article_info_format="{PRICE}{CART}" article_readmore_state="off" article_block_padding="10px 30px 30px 30px"]


so the problem is with your products slug names i think. This is your previous code:
Code: Select all
[gknsp cache_time="0" widget_css_suffix="products" article_cols="4" article_rows="1" data_source_type="wp_woocommerce-wooc_post" data_source="LCDT20,SPB04,SPB44,LCDPA20,ZLCD11" article_text_state="off" article_image_w="275" article_image_h="293" article_image_order="1" article_image_popup="off" article_title_order="2" article_info_format="{PRICE}{CART}" article_readmore_state="off" article_block_padding="10px 30px 30px 30px"]

and when I go to your products section I can't see a product with slug LCDT20 or SPB04 and some of your products don't have SKU name added at all. Please add these names first, then add proper names to your data_source gknsp attribute.
User avatar
Moderator

GK User
Fri Jul 08, 2016 2:36 pm
Thanks for fixing this, I never would have been able to work that out.
User avatar
Expert Boarder


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.