Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error generated when displaying products via a relationship in PowerPack or UABB Woocommerce product modules #116

Open
2 tasks
millionleaves opened this issue Mar 18, 2021 · 0 comments

Comments

@millionleaves
Copy link

Issue Overview

I have a Woo store with a CPT called Front.

This CPT has a relationship field to the Product post type. I'm using it to create a list of products to display on the Front CPT. I have both WooPack's Products and UABB Woo - Products modules, both of which display these errors when specifying Pods Relationship as the Query:

Notice: Undefined property: stdClass::$pods_source_type in /var/www/html/wordpress/MYSITE/public/wp-content/plugins/pods-beaver-builder-themer-add-on/pods-beaver-themer.php on line 300
Notice: Undefined property: stdClass::$pods_source_type in /var/www/html/wordpress/MYSITE/public/wp-content/plugins/pods-beaver-builder-themer-add-on/pods-beaver-themer.php on line 304

These errors show in the server logs but also on the page itself.

Expected Behavior

The products should be shown in a product grid.

Current Behavior

Instead of the product grid, the notices shown above are displayed.

Possible Solution

Can't make any suggestions, sorry

Steps to Reproduce (for bugs)

  1. Create a CPT called Front using Pods in a site that has WooCommerce installed, and use that to add a Front page to the site.
  2. Add a Relationship field that references the Product post type.
  3. Create a Beaver Themer template for the Front CPT
  4. Add the Woo Products modules from either UABB or WooPack

Pods Package Export (helpful!)

{"meta":{"version":"2.7.26","build":1616032323},"pods":{"10673":{"id":10673,"name":"home_page","label":"Home pages","description":"This should only be used for the home page, but can be used to design a new home page if you want.","type":"post_type","storage":"meta","object":"","alias":"","fields":{"featured_products":{"id":10674,"name":"featured_products","label":"Featured products","description":"","help":"","class":"","type":"pick","weight":0,"pick_object":"post_type","pick_val":"product","sister_id":"10678","required":"0","pick_format_type":"multi","pick_format_single":"dropdown","pick_format_multi":"list","pick_display_format_multi":"default","pick_display_format_separator":", ","pick_allow_add_new":"0","pick_taggable":"0","pick_show_icon":"1","pick_show_edit_link":"1","pick_show_view_link":"1","pick_user_role":[],"pick_post_status":["publish"],"admin_only":"0","restrict_role":"1","restrict_capability":"0","hidden":"0","read_only":"0","roles_allowed":["administrator","shop_manager"],"rest_read":"0","rest_write":"0","rest_pick_response":"array","rest_pick_depth":"2","unique":"0","pick_limit":"0","pick_select_text":"","pick_table_id":"","pick_table_index":"","pick_display":"","pick_where":"","pick_orderby":"","pick_groupby":""}},"show_in_menu":"1","label_singular":"Home page","public":"1","show_ui":"1","supports_title":"1","supports_editor":"1","publicly_queryable":"1","exclude_from_search":"0","capability_type":"page","capability_type_custom":"home_page","capability_type_extra":"1","has_archive":"0","hierarchical":"0","rewrite":"1","rewrite_with_front":"1","rewrite_feeds":"0","rewrite_pages":"1","query_var":"1","can_export":"1","default_status":"draft","supports_author":"0","supports_thumbnail":"1","supports_excerpt":"0","supports_trackbacks":"0","supports_custom_fields":"0","supports_comments":"0","supports_revisions":"0","supports_page_attributes":"0","supports_post_formats":"0","built_in_taxonomies_atum_location":"0","built_in_taxonomies_atum_log_type":"0","built_in_taxonomies_automation-category":"0","built_in_taxonomies_category":"0","built_in_taxonomies_fl-builder-template-category":"0","built_in_taxonomies_fl-builder-template-type":"0","built_in_taxonomies_flamingo_contact_tag":"0","built_in_taxonomies_flamingo_inbound_channel":"0","built_in_taxonomies_link_category":"0","built_in_taxonomies_pa_action-size":"0","built_in_taxonomies_pa_brand":"0","built_in_taxonomies_pa_color":"0","built_in_taxonomies_pa_limiter":"0","built_in_taxonomies_pa_orientation":"0","built_in_taxonomies_post_tag":"0","built_in_taxonomies_product_cat":"0","built_in_taxonomies_product_shipping_class":"0","built_in_taxonomies_product_tag":"0","built_in_taxonomies_product_type":"0","built_in_taxonomies_product_visibility":"0","built_in_taxonomies_rank_math_redirection_category":"0","menu_position":"0","show_in_nav_menus":"0","show_in_admin_bar":"0","pfat_enable":"0","pfat_append_single":"append","pfat_filter_single":"the_content","pfat_append_archive":"append","pfat_filter_archive":"the_excerpt","pfat_run_outside_loop":"0","rest_enable":"0","read_all":"0","write_all":"0","menu_name":"Home page"},"10677":{"id":10677,"name":"product","label":"Product","description":"","type":"post_type","storage":"meta","object":"product","alias":"","fields":{"home_page_product":{"id":10678,"name":"home_page_product","label":"Home page product?","description":"","help":"","class":"","type":"pick","weight":0,"pick_object":"post_type","pick_val":"home_page","sister_id":"10674","required":"0","pick_format_type":"single","pick_format_single":"radio","pick_format_multi":"checkbox","pick_display_format_multi":"default","pick_display_format_separator":", ","pick_allow_add_new":"1","pick_taggable":"0","pick_show_icon":"1","pick_show_edit_link":"1","pick_show_view_link":"1","pick_limit":"0","pick_user_role":[],"pick_post_status":["publish"],"admin_only":"0","restrict_role":"0","restrict_capability":"0","hidden":"0","read_only":"0","roles_allowed":["administrator"],"rest_read":"0","rest_write":"0","rest_pick_response":"array","rest_pick_depth":"2","pick_select_text":"","pick_table_id":"","pick_table_index":"","pick_display":"","pick_where":"","pick_orderby":"","pick_groupby":""}},"show_in_menu":1,"pfat_enable":"0","pfat_append_single":"append","pfat_filter_single":"the_content","pfat_append_archive":"append","pfat_filter_archive":"the_excerpt","pfat_run_outside_loop":"0","rest_enable":"0","read_all":"0","write_all":"0"}}}

Related Issues and/or PRs

Todos

  • Tests
  • Documentation

WordPress Environment

``` Debug Information WordPress Version: 5.7

PHP Version: 7.3.27-9+ubuntu18.04.1+deb.sury.org+1

MySQL Version: 5.5.5

Server Software: nginx/1.15.8

Your User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 11_2_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Safari/537.36

Session Save Path: /var/lib/php/sessions

Session Save Path Exists: No

Session Save Path Writeable: No

Session Max Lifetime: 1440

Opcode Cache:

Apc: No
Memcached: No
OPcache: Yes
Redis: No
Object Cache:

APC: No
APCu: No
Memcache: No
Memcached: No
Redis: No
WPDB Prefix: wp_

WP Multisite Mode: No

WP Memory Limit: 128M

Current Memory Usage: 38.401M

Current Memory Usage (real): 2.000M

Pods Network-Wide Activated: No

Pods Install Location: /var/www/html/wordpress/targetdynamics.co.nz/public/wp-content/plugins/pods/

Pods Tableless Mode Activated: No

Pods Light Mode Activated: No

Currently Active Theme: 360 Armaments

Currently Active Plugins:

AddressFinder: 1.4.6
AJAX Search for WooCommerce: 1.8.2
Antispam Bee: 2.9.4
Astra Pro: 2.7.3
Astra Widgets: 1.2.8
ATUM Inventory Management for WooCommerce: 1.8.7
ATUM Product Levels: 1.5.2
Beaver Builder Plugin (Standard Version): 2.4.2.2
Beaver Themer: 1.3.3
Classic Editor: 1.6
Contact Form 7: 5.4
Contact Form 7 Google Analytics Integration: 1.8.7
Flamingo: 2.2.1
Google Analytics for WordPress by MonsterInsights: 7.16.2
InfiniteWP - Client: 1.9.4.9
Mailgun: 1.7.6
Nginx Cache: 1.0.5
Pods - Custom Content Types and Fields: 2.7.26
Pods Beaver Themer Add-On: 1.3.6
PowerPack for Beaver Builder: 2.14.1
Product Prices by User Roles for WooCommerce: 1.4.2
Rank Math SEO: 1.0.59.1
Rank Math SEO PRO: 2.3.1
Redis Object Cache: 2.0.17
Swift Performance: 2.2.3
Ultimate Addons for Beaver Builder: 1.30.2
User Role Discount for WooCommerce: 2.0.8.1
User Role Editor: 4.58.3
User Switching: 1.5.6
White Label CMS: 2.2.1
WooCommerce: 5.1.0
WooCommerce Advanced Shipping: 1.0.14
WooCommerce Advanced Shipping Zones: 1.1.2
WooCommerce Backorder Manager: 2.1
WooCommerce Cart Abandonment Recovery: 1.2.11
WooCommerce Composite Products: 7.1.2
WooCommerce Google Analytics Integration: 1.5.1
WooCommerce Sequential Order Numbers: 1.9.5
WooCommerce Stock Manager: 2.5.4
WooCommerce Stripe Gateway: 4.9.0
WooPack for Beaver Builder: 1.4.1
Wordfence Security: 7.4.14
WP All Export Pro: 1.6.4
WP All Import - WooCommerce Add-On Pro: 3.2.5
WP All Import Pro: 4.6.5
WP SmartCrop: 2.0.5
WunderAutomation: 1.6.2

</details>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant