WPIntell

Source evidence

500 Internal Server Error

PW WooCommerce Bulk Edit · support · 2023-06-03T01:47:00+00:00

mixedsentiment
highseverity
0.88relevance
3replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

6 / 28 rows with source links

21.4% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

22 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
deffo resolved
I am trying to use your plugin but after I select something and click on search button, I got 500 Internal Server Error. I've enabled debug and I saw this on the debug log. [03-Jun-2023 01:45:29 UTC] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /home/deffocom/public_html/test/wp-content/plugins/pw-bulk-edit/includes/columns.php:38 Stack trace: 0 /home/deffocom/public_html/test/wp-content/plugins/pw-bulk-edit/includes/sql-builder.php(59): PWBE_Columns::get_by_field('post_title') 1 /home/deffocom/public_html/test/wp-content/plugins/pw-bulk-edit/ui/results.php(32): PWBE_SQL_Builder->get_products(Array) 2 /home/deffocom/public_html/test/wp-content/plugins/pw-bulk-edit/pw-bulk-edit.php(172): require('/home/deffocom/…') 3 /home/deffocom/public_html/test/wp-includes/class-wp-hook.php(307): PW_Bulk_Edit->ajax_filter_results('') 4 /home/deffocom/public_html/test/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array) 5 /home/deffocom/public_html/test/wp-includes/plugin.php(476): WP_Hook->do_action(Array) 6 /home/deffocom/public_html/test/wp-admin/admin-ajax.php(187): do_action('wp_ajax_pwbe_fi…') 7 {main} thrown in /home/deffocom/public_html/test/wp-content/plugins/pw-bulk-edit/includes/columns.php on line 38 The page I need help with: [ log in to see the link] This error can occur if the object in the product_columsn is not an array. Your stacktrace indicates it is a string value and not an array. Have you used the “pwbe_product_columns” hook on your site? If so, ensure that you are adding array() objects and not strings. We released a new version of the plugin that will sanitize the product columns to help ensure only well formatted data is returned from the pwbe_product_columns hook. Let me know if you receive any new errors after upgrading. Thanks for your answer. I didn’t use the “pwbe_product_columns” hook on my site. I’ve tested the new version and works good.

Comments

3 shown
pimwick 2023-06-05T17:05:00+00:00

This error can occur if the object in the product_columsn is not an array. Your stacktrace indicates it is a string value and not an array. Have you used the “pwbe_product_columns” hook on your site? If so, ensure that you are adding array() objects and not strings.

pimwick 2023-06-05T17:12:00+00:00

We released a new version of the plugin that will sanitize the product columns to help ensure only well formatted data is returned from the pwbe_product_columns hook. Let me know if you receive any new errors after upgrading.

deffo 2023-06-05T19:53:00+00:00

Thanks for your answer. I didn’t use the “pwbe_product_columns” hook on my site. I’ve tested the new version and works good.