Warning: strpos() [function.strpos]: Empty needle in
-
Please help.
My site showed a error warning:
Warning: strpos() [function.strpos]: Empty needle in /var/www/techcentrum.eu/public_html/wp-content/plugins/woocommerce/src/Admin/WCAdminHelper.php on line 192
Ofcourse I checked plugins, but without any single plugin, and with wordpress theme the warning message still showed.
- This topic was modified 1 month ago by attilagegeny.
The page I need help with: [log in to see the link]
-
Hi there,
As a start, can you share a copy of your status report as found under WooCommerce > Status – I think that error links to something unexpected it found in the page setup for your store (under WooCommerce > Settings > Products > Shop Page) I’d like to verify whether the store page has been configured in your WooCommerce settings by taking a look at that status report.
Thanks!
Hello RK. here is a status report.
### WordPress Environment ### WordPress address (URL): http://techcentrum.eu Site address (URL): http://techcentrum.eu WC Version: 9.2.3 Legacy REST API Package Version: The Legacy REST API plugin is not installed on this site. Action Scheduler Version: ✔ 3.8.1 Log Directory Writable: ✔ WP Version: 6.6.1 WP Multisite: – WP Memory Limit: 2 GB WP Debug Mode: – WP Cron: – Language: en_US External object cache: ✔ ### Server Environment ### Server Info: Apache PHP Version: 7.4.33 PHP Post Max Size: 1 GB PHP Time Limit: 300 PHP Max Input Vars: 5000 cURL Version: 7.29.0 NSS/3.90 SUHOSIN Installed: – MySQL Version: 8.0.37-29 Max Upload Size: 1 GB Default Timezone is UTC: ✔ fsockopen/cURL: ✔ SoapClient: ✔ DOMDocument: ✔ GZip: ✔ Multibyte String: ✔ Remote Post: ✔ Remote Get: ✔ ### Database ### WC Database Version: 9.2.3 WC Database Prefix: clk7e8a557368_ Total Database Size: 8.30MB Database Data Size: 5.50MB Database Index Size: 2.80MB clk7e8a557368_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB clk7e8a557368_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB clk7e8a557368_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB clk7e8a557368_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB clk7e8a557368_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB clk7e8a557368_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB clk7e8a557368_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB clk7e8a557368_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB clk7e8a557368_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB clk7e8a557368_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB clk7e8a557368_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB clk7e8a557368_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB clk7e8a557368_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB clk7e8a557368_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB clk7e8a557368_actionscheduler_actions: Data: 0.02MB + Index: 0.11MB + Engine InnoDB clk7e8a557368_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB clk7e8a557368_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB clk7e8a557368_actionscheduler_logs: Data: 0.02MB + Index: 0.03MB + Engine InnoDB clk7e8a557368_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB clk7e8a557368_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB clk7e8a557368_easywpsmtp_debug_events: Data: 0.02MB + Index: 0.00MB + Engine InnoDB clk7e8a557368_easywpsmtp_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB clk7e8a557368_gla_attribute_mapping_rules: Data: 0.02MB + Index: 0.00MB + Engine InnoDB clk7e8a557368_gla_budget_recommendations: Data: 0.19MB + Index: 0.11MB + Engine InnoDB clk7e8a557368_gla_merchant_issues: Data: 0.02MB + Index: 0.00MB + Engine InnoDB clk7e8a557368_gla_shipping_rates: Data: 0.02MB + Index: 0.03MB + Engine InnoDB clk7e8a557368_gla_shipping_times: Data: 0.02MB + Index: 0.02MB + Engine InnoDB clk7e8a557368_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB clk7e8a557368_mipconnector_attribute_group_map: Data: 0.02MB + Index: 0.05MB + Engine InnoDB clk7e8a557368_mipconnector_attribute_map: Data: 0.02MB + Index: 0.05MB + Engine InnoDB clk7e8a557368_mipconnector_brand_map: Data: 0.02MB + Index: 0.05MB + Engine InnoDB clk7e8a557368_mipconnector_brand_plugin_map: Data: 0.02MB + Index: 0.05MB + Engine InnoDB clk7e8a557368_mipconnector_cache: Data: 0.02MB + Index: 0.05MB + Engine InnoDB clk7e8a557368_mipconnector_category_map: Data: 0.02MB + Index: 0.05MB + Engine InnoDB clk7e8a557368_mipconnector_file_log: Data: 0.02MB + Index: 0.06MB + Engine InnoDB clk7e8a557368_mipconnector_image_url: Data: 0.02MB + Index: 0.03MB + Engine InnoDB clk7e8a557368_mipconnector_import_process_attribute: Data: 0.02MB + Index: 0.03MB + Engine InnoDB clk7e8a557368_mipconnector_import_process_attribute_group: Data: 0.02MB + Index: 0.03MB + Engine InnoDB clk7e8a557368_mipconnector_import_process_brand: Data: 0.02MB + Index: 0.03MB + Engine InnoDB clk7e8a557368_mipconnector_import_process_brand_plugin: Data: 0.02MB + Index: 0.03MB + Engine InnoDB clk7e8a557368_mipconnector_import_process_category: Data: 0.02MB + Index: 0.03MB + Engine InnoDB clk7e8a557368_mipconnector_import_process_product: Data: 0.02MB + Index: 0.03MB + Engine InnoDB clk7e8a557368_mipconnector_import_process_tag: Data: 0.02MB + Index: 0.03MB + Engine InnoDB clk7e8a557368_mipconnector_import_process_variation: Data: 0.02MB + Index: 0.03MB + Engine InnoDB clk7e8a557368_mipconnector_order_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB clk7e8a557368_mipconnector_product_image_url: Data: 0.02MB + Index: 0.00MB + Engine InnoDB clk7e8a557368_mipconnector_product_map: Data: 0.02MB + Index: 0.05MB + Engine InnoDB clk7e8a557368_mipconnector_product_url: Data: 0.02MB + Index: 0.03MB + Engine InnoDB clk7e8a557368_mipconnector_reference_data: Data: 0.02MB + Index: 0.02MB + Engine InnoDB clk7e8a557368_mipconnector_shipping_service: Data: 0.02MB + Index: 0.00MB + Engine InnoDB clk7e8a557368_mipconnector_tag_map: Data: 0.02MB + Index: 0.09MB + Engine InnoDB clk7e8a557368_mipconnector_variation_map: Data: 0.02MB + Index: 0.05MB + Engine InnoDB clk7e8a557368_options: Data: 3.52MB + Index: 0.06MB + Engine InnoDB clk7e8a557368_postmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB clk7e8a557368_posts: Data: 0.17MB + Index: 0.06MB + Engine InnoDB clk7e8a557368_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB clk7e8a557368_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB clk7e8a557368_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB clk7e8a557368_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB clk7e8a557368_usermeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB clk7e8a557368_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB clk7e8a557368_wc_admin_note_actions: Data: 0.05MB + Index: 0.02MB + Engine InnoDB clk7e8a557368_wc_admin_notes: Data: 0.05MB + Index: 0.00MB + Engine InnoDB clk7e8a557368_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB clk7e8a557368_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB clk7e8a557368_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB clk7e8a557368_wc_order_addresses: Data: 0.02MB + Index: 0.06MB + Engine InnoDB clk7e8a557368_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB clk7e8a557368_wc_order_operational_data: Data: 0.02MB + Index: 0.03MB + Engine InnoDB clk7e8a557368_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB clk7e8a557368_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB clk7e8a557368_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB clk7e8a557368_wc_orders: Data: 0.02MB + Index: 0.11MB + Engine InnoDB clk7e8a557368_wc_orders_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB clk7e8a557368_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB clk7e8a557368_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB clk7e8a557368_wc_product_meta_lookup: Data: 0.02MB + Index: 0.13MB + Engine InnoDB clk7e8a557368_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB clk7e8a557368_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB clk7e8a557368_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB clk7e8a557368_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB ### Post Type Counts ### attachment: 4 customize_changeset: 4 page: 8 post: 2 revision: 4 wp_font_face: 33 wp_font_family: 12 wp_global_styles: 1 wp_navigation: 1 ### Security ### Secure connection (HTTPS): ✔ Hide errors from visitors: ✔ ### Active Plugins (11) ### B Carousel Block: by bPlugins – 1.0.8 BigBuy Dropshipping Connector for WooCommerce: by BigBuy – 1.9.18 Easy WP SMTP: by Easy WP SMTP – 2.5.0 Filter Everything PRO: by Andrii Stepasiuk – 1.8.6 Products per Page for WooCommerce: by WPFactory – 2.2.1 SVG Support: by Benbodhi – 2.5.8 W3 Total Cache: by BoldGrid – 2.7.5 WooPayments: by WooCommerce – 8.1.1 WooCommerce Shipping & Tax: by WooCommerce – 2.8.0 WooCommerce: by Automattic – 9.2.3 YellowPencil: by WaspThemes – 7.6.4 ### Inactive Plugins (6) ### Akismet Anti-spam: Spam Protection: by Automattic – Anti-spam Team – 5.3.3 Extendify WordPress Onboarding and AI Assistant: by Extendify – 1.14.6 Google for WooCommerce: by WooCommerce – 2.8.5 Pinterest for WooCommerce: by WooCommerce – 1.4.8 Site Assistant: by – 1.0.0 TikTok: by TikTok – 1.2.8 ### Dropin Plugins () ### advanced-cache.php: advanced-cache.php object-cache.php: object-cache.php ### Settings ### Legacy API Enabled: – Force SSL: – Currency: DKK (kr.) Currency Position: right_space Thousand Separator: . Decimal Separator: , Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) variable (variable) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5) Connected to WooCommerce.com: – Enforce Approved Product Download Directories: ✔ HPOS feature enabled: ✔ Order datastore: Automattic\WooCommerce\Internal\DataStores\Orders\OrdersTableDataStore HPOS data sync enabled: – ### Logging ### Enabled: ✔ Handler: Automattic\WooCommerce\Internal\Admin\Logging\LogHandlerFileV2 Retention period: 30 days Level threshold: – Log directory size: 20 KB ### WC Pages ### Shop base: #16 – / Cart: #17 – /index.php/cart/ – Contains the woocommerce/cart block Checkout: #18 – /index.php/checkout/ – Contains the woocommerce/checkout block My account: #19 – /index.php/my-account/ Terms and conditions: ❌ Page not set ### Theme ### Name: Kadence Version: 1.2.9 Author URL: https://www.kadencewp.com/ Child Theme: ❌ – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme WooCommerce Support: ✔ ### Templates ### Overrides: – ### WooPayments ### Version: 8.1.1 Connected to WPCOM: ❌ No Logging: Disabled ### Admin ### Enabled Features: activity-panels analytics product-block-editor coupons core-profiler customize-store customer-effort-score-tracks import-products-task experimental-fashion-sample-products shipping-smart-defaults shipping-setting-tour homescreen marketing mobile-app-banner navigation onboarding onboarding-tasks pattern-toolkit-full-composability product-custom-fields remote-inbox-notifications remote-free-extensions payment-gateway-suggestions printful shipping-label-banner subscriptions store-alerts transient-notices woo-mobile-welcome wc-pay-promotion wc-pay-welcome-page launch-your-store Disabled Features: experimental-blocks minified-js product-pre-publish-modal settings async-product-editor-category-field product-editor-template-system Daily Cron: ✔ Next scheduled: 2024-09-08 07:57:16 +00:00 Options: ✔ Notes: 57 Onboarding: completed ### Action Scheduler ### Complete: 10 Oldest: 2024-09-07 07:58:20 +0000 Newest: 2024-09-07 09:08:32 +0000 Pending: 4 Oldest: 2024-09-08 07:58:20 +0000 Newest: 2024-09-09 14:00:00 +0000 ### Status report information ### Generated at: 2024-09-07 09:08:37 +00:00 `
Thanks; It looks like no page has been specified under WooCommerce > Settings > Products > Shop Page – Are you still seeing that error after adding one?
Hi again… yes its added a “shop” (basic) page…
If i try to set another page… (like: HOME) the error message are gone
”
but the “SHOP” page still drop up the error message
Thanks for doing that extra step in troubleshooting. This is the part of the status report that stands out for me:
—
WooCommerce Pages
- Shop base: #16 – /
- Cart: #17 – /index.php/cart/
- Checkout: #18 – /index.php/checkout/
- My account: #19 – /index.php/my-account/
- Terms and conditions: ❌ Page not set
—
Normally we’d expect
/index.php/
to be stripped from the URLs (this is something you’d want to check with your hosting provider on how the server has been configured). I think that is playing a role here.The other thing is also to make sure that the shop page and home page are different pages. These are configured respectively under:
- WordPress Home: Settings > Reading > Your homepage
- WooCommerce Shop Page: WooCommerce > Settings > Products > Shop Page
HI.
Thanks for help. im super thankfull.
When I add new page (“all-product”), and set (“home”) for homepage, plus it I set permalinks going “custom” %product name %categories…… NOW the error message is gone.
If i will have some issu… I try to catch you. 🙂
thanks again.
That’s fantastic to hear – Glad we managed to get that sorted 🙂
- You must be logged in to reply to this topic.