[wp-trac] [WordPress Trac] #58625: Woocommerce Confilcit with AffiliateWP

WordPress Trac noreply at wordpress.org
Mon Jun 26 08:41:25 UTC 2023


#58625: Woocommerce Confilcit with AffiliateWP
--------------------------+-----------------------------
 Reporter:  alex76sw      |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Plugins       |    Version:
 Severity:  critical      |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 I added AffiliateWP and everything seems to be ok until I’m at Affiliate-
 area, where my affiliates have the option to click on a few tabs like
 Statistics, Graphs, Referrals, etc.

 Once I click on these tabs, I get an error message.

 There has been a critical error on this website.

 Learn more about troubleshooting WordPress.

 I contacted my host to see if they could see any problems, and they
 pointed out woocommerce and AffiliateWP. I contacted AffiliateWP first and
 they say there is a conflict between your theme and AffiliateWP. So, now
 I’m reaching out to you.

 This is what AffiliateWP wrote:

 There is definitely a conflict with the trio of Jupiter X child,
 WooCommerce and the Affiliate Area page screens. And, it’s the specific
 Jupiter X child theme you have active, the other one in your themes page
 works.

 So If I deactivate WooCommerce then the AffiliateWP screens work with the
 Jupiter X child theme version you have active, or the flip side of a
 different theme with WooCommerce and AffiliateWP active works just fine.

 They also found that cart.php is outdated.
 jupiterx/lib/templates/woocommerce/cart/cart.php version 7.4.0 is out of
 date. The core version is 7.8.0,
 They said:

 Since the critical error crash is very specific to WooCommerce and the
 template files, I would suggest reaching out to them or your theme support
 to see if updating those can resolve the error of the combination of
 products here.

 I would also suggest searching your site’s debug or php log files for this
 same error to see if it is generated in other locations as well:

 PHP Fatal error: Uncaught ValueError: Path cannot be empty in
 /nas/content/live/swmain/wp-content/plugins/woocommerce/includes/wc-
 template-functions.php:53\

 Here is the error message I get from my host:
 PHP Fatal error: Uncaught ValueError: Path cannot be empty in
 /nas/content/live/swmain/wp-content/plugins/woocommerce/includes/wc-
 template-functions.php:53\nStack trace:\n#0 /nas/content/live/swmain/wp-
 includes/class-wp-hook.php(308): wc_template_redirect('')\n#1
 /nas/content/live/swmain/wp-includes/class-wp-hook.php(332):
 WP_Hook->apply_filters(NULL, Array)\n#2 /nas/content/live/swmain/wp-
 includes/plugin.php(517): WP_Hook->do_action(Array)\n#3
 /nas/content/live/swmain/wp-includes/template-loader.php(13):
 do_action('template_redire...')\n#4 /nas/content/live/swmain/wp-blog-
 header.php(19): require_once('/nas/content/li...')\n#5
 /nas/content/live/swmain/index.php(17): require('/nas/content/li...')\n#6
 {main}\n thrown in /nas/content/live/swmain/wp-
 content/plugins/woocommerce/includes/wc-template-functions.php on line 53,
 referer: https://www.stormywellington.com/affiliate-area/

 How can you help me fix this problem?
 What do you need from me so you can take a look.

 Thank you,

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58625>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list