PHP Warning: Uninitialized string offset
-
Hi,
I just updated to the latest version and I’m now getting this error and Feeds are not updating.
FastCGI sent in stderr: "tend/webappick-product-feed-for-woocommerce/includes/helper.php on line 5253PHP message: PHP Warning: Uninitialized string offset -15251220 in /webappick-product-feed-for-woocommerce/includes/helper.php on line 523
Store has about 14,000 products.
Please help.
-
Server on PHP 8.1
For reference, the part causing the feed generation error is
function woo_feed_filter_product_title( $title, $product, $config ) { if ( ! is_string( $title ) ) { return ''; } if ( isset( $config['provider'] ) && in_array( $config['provider'], [ 'google', 'facebook', 'pinterest', 'bing' ] ) ) { if ( strlen( $title ) > 150 ) { for ( $I = 149; $title[ $I ] != ' '; $I -- ) { ; } $title = substr( $title, 0, $I ); } } return $title; }
The line is
for ( $I = 149; $title[ $I ] != ' '; $I -- ) {
If we switch Feed template from Google to Custom to bypass the function, everything works just fine but then we’ll have an issue in the Merchant Center whereby the Title is now longer than 150 Characters.
Any workarounds?
As a workaround, I’ve made the following edits.
// for ( $I = 149; $title[ $I ] != ' '; $I -- ) { // ; // } $title = substr( $title, 0, 150 );
I’ve hard coded the string length but I’m not exactly sure of the implications of this.
Let me know if there’s a fix from your end.
Hi @storepaperoomates
Thanks for reporting the issue.
Can you please provide us with the system status?
Please, go to CTX Feed > Status > Copy the status and paste it here.Before copying the status, make sure you have enabled the debug mode.
Best regards,
WooCommerce Version: 7.0.1 - You are using the latest version of WooCommerce. Product Types: ☞ Simple Product [simple] ☞ Grouped Product [grouped] ☞ External/Affiliate Product [external] ☞ Variable Product [variable] ☞ Simple Subscription [subscription] ☞ Variable Subscription [variable-subscription] Total Products: WP Query: 10000 WC Product Query: 10000 Both Query: 10008 Product Total by Types. ☞ Simple Product: 10000 Product Per Batch: 700 Product Query Type: WC_Product_Query Default Customer Location: Default Customer Location Shop Base Address Store Address 16192 Costal Hwy Lewes US:DE 19958 Multi Language Site: No Multi Currency Site: No WP DEBUG Status: WP_DEBUG is false. If you having any issue with the plugin then set WP_DEBUG to true so that you can find the issue from logs. You can learn more about debugging in WordPress from here. WP CRON: WordPress cron is disabled. The Auto Feed Update will not run if WordPress cron is Disabled. Upload Directory: Ok - Writable. Cache Plugin Installed: Cloudflare plugin is installed on your site. Please make sure that feed file URL or directory is excluded from caching. If not excluded, your feed file may not be updated instantly after feed update. Please read this doc about: How to exclude feed file URL or Directory from caching? WordPress Multi Site: No Home Url: https://retail-market.storepaperoomates.com Site Url: https://retail-market.storepaperoomates.com Version: 7.0.1 Log Directory: /tmp/ Log Directory Writable: Yes WP Version: 6.1 WP Multisite: No WP Memory Limit: 1 GB WP Debug Mode: No WP Cron: No Language: en_US External Object Cache: Yes Server Info: storepaperoomates/technologies Php Version: 8.1.12 Php Post Max Size: 2 GB Php Max Execution Time: 300 Php Max Input Vars: 9.77 KB Curl Version: 7.81.0, OpenSSL/3.0.2 Suhosin Installed: No Max Upload Size: 512 MB Mysql Version: 8.0.26 Mysql Version String: 8.0.26-google Default Timezone: UTC Fsockopen Or Curl Enabled: Yes Soapclient Enabled: Yes Domdocument Enabled: Yes Gzip Enabled: Yes Mbstring Enabled: Yes Remote Post Successful: Yes Remote Post Response: 200 Remote Get Successful: Yes Remote Get Response: 200 Breakdance Zero Theme: 1.0.0 (Latest:0) Query Monitor (John Blackbourn): 3.10.1 ElasticPress Labs (10up): 2.0.0 Admin Columns Pro - WooCommerce (AdminColumns.com): 3.7.3 Admin Columns Pro - Yoast SEO (AdminColumns.com): 1.2 ACF Content Analysis for Yoast SEO (Thomas Kräftner, ViktorFroberg, marol87, pekz0r, angrycreative, Team Yoast): 3.0.1 Add WPGraphQL SEO (Ash Hitchcock): 4.19.0 Admin Columns Pro (AdminColumns.com): 5.7.4 Advanced Custom Fields PRO (WP Engine): 6.0.3 Akismet Anti-Spam (Automattic): 5.0.1 WP Offload Media Lite (Delicious Brains): 3.0.2 Auto Image Attributes From Filename With Bulk Updater (Arun Basil Lal): 3.2 Auto Image Attributes Pro (Arun Basil Lal): 3.1 AutomateWoo - Birthdays Add-on (WooCommerce): 1.3.13 AutomateWoo - Refer A Friend Add-on (WooCommerce): 2.6.12 (Latest:2.6.13) AutomateWoo (WooCommerce): 5.5.22 Better Search Replace Pro (Delicious Brains): 1.3.2 Booster Plus for WooCommerce (Pluggabl LLC): 5.6.5 Breadcrumb NavXT (John Havlik): 7.1.0 Breakdance (Breakdance): 1.0.1 WP Sheet Editor - Taxonomy Terms Pro (WP Sheet Editor): 1.5.24 Cloudflare (Cloudflare, Inc.): 4.11.0 Device Detector (Pierre Lannoy / PerfOps One): 3.3.0 Disable Admin Notices Individually (Creative Motion ): 1.3.0 Disable Yoast's Structured Data (Roy Orbison): 3.0.0 Yoast Duplicate Post (Enrico Battocchi & Team Yoast): 4.5 Google Customer Reviews for WooCommerce (eCreations): 2.6.12 Elementor Pro (Elementor.com): 3.8.0 (Latest:3.8.1) Elementor (Elementor.com): 3.8.0 Advanced Scripts (Clean Plugins): 2.3.4 EWWW Image Optimizer (Exactly WWW): 6.9.2 Instant Indexing (Rank Math): 1.1.16 Flying Pages (WP Speed Matters): 2.4.6 Google XML Sitemaps (Auctollo): 4.1.5 Enable WooCommerce GPF feed item cache. (Lee Willis): 1.0 Health Check & Troubleshooting (The WordPress.org community): 1.5.1 Index WP MySQL For Speed (Oliver Jones, Rick James): 1.4.11 Index WP Users For Speed (Oliver Jones): 1.1.3 IP Locator (Pierre Lannoy / PerfOps One): 3.6.0 Jetpack (Automattic): 11.5.1 Klarna On-Site Messaging for WooCommerce (krokedil, klarna): 1.9.0 Klarna Order Management for WooCommerce (klarna, krokedil): 1.7.0 Klarna Payments for WooCommerce (krokedil, klarna, automattic): 2.12.1 Klaviyo (Klaviyo, Inc.): 3.0.4 LH Wayback Machine (Peter Shaw): 1.03 Merge + Minify + Refresh (Launch Interactive): 1.13.2 Metorik Helper (Metorik): 1.5.2 Minify HTML (Tim Eckel): 2.02 Synctrack - Add Paypal Tracking Auto (Omegatheme): 1.0.0 OPcache Manager (Pierre Lannoy / PerfOps One): 2.8.0 Order Timeline for WooCommerce (Jompha): 1.0.0 Perfmatters (forgemedia): 2.0.0 Permalink Manager Pro (Maciej Bis): 2.2.15 PixelYourSite PRO (PixelYourSite): 8.6.9 PixelYourSite Super Pack (PixelYourSite): 3.0.4 Payment Plugins for PayPal WooCommerce (Payment Plugins, support@paymentplugins.com): 1.0.12 Quick Bulk Post & Page Creator (tyxla): 1.0.4 Redirection (John Godley): 5.3.5 Rollback Update Failure (Andy Fragen, Ari Stathopolous, Colin Stewart, Paul Biron): 3.3.1 Scalability Pro (Dave Hilditch): 4.77 Sessions (Pierre Lannoy / PerfOps One): 2.8.0 Spreadr Woocommerce Plugin - Amazon Importer for Dropshipping and Affiliate (spreadr): 1.0.1 SVG Support (Benbodhi): 2.5.1 Temporary Login Without Password (StoreApps): 1.8.0 TikTok (TikTok): 1.0.10 (Latest:1.0.11) Total Counts for WPGraphQL (Built By Cactus): 0.0.2 Traffic (Pierre Lannoy / PerfOps One): 2.8.0 Upload Url and Path Enabler (Grégory Viguier): 1.0.4 URL Coupons for WooCommerce (WPFactory): 1.6.6 Vibes (Pierre Lannoy / PerfOps One): 1.4.0 CTX Feed (WebAppick): 4.5.8 Ajax add to cart for WooCommerce (QuadLayers): 1.3.7 (Latest:1.3.8) WooCommerce Cart Abandonment Recovery (CartFlows Inc): 1.2.20 WooCommerce Brands (WooCommerce): 1.6.38 (Latest:1.6.39) WooCommerce Cost of Goods (SkyVerge): 2.11.3 WooCommerce Order Status Manager (SkyVerge): 1.13.4 WooCommerce Payments (Automattic): 4.9.0 WooCommerce PayPal Payments (WooCommerce): 1.9.5 WooCommerce Points and Rewards (WooCommerce): 1.7.19 (Latest:1.7.20) WooCommerce Google Product Feed (Ademti Software Ltd.): 10.7.7 WooCommerce Recommendation Engine (Element Stark): 3.2.9 WooCommerce Shipment Tracking (WooCommerce): 1.9.0 WooCommerce Table Rate Shipping (WooCommerce): 3.1.0 WooCommerce (Automattic): 7.0.1 FunnelKit Checkout (FunnelKit): 3.5.7 Wordfence Security (Wordfence): 7.7.1 WordPress Importer (wordpressdotorg): 0.8 Yoast SEO Premium (Team Yoast): 18.2.1 Yoast SEO (Team Yoast): 19.9 (Latest:19.10) WPGraphQL for Advanced Custom Fields (WPGraphQL, Jason Bahl): 0.6.1 WP GraphQL (WPGraphQL): 1.12.1 WP Mail SMTP Pro (WPForms): 3.3.0 WP Menu Cart Pro (Jeremiah Prummer, Ewout Fernhout): 3.4.0 WP REST Cache (Acato): 2022.2.2 Schema Pro (Brainstorm Force): 2.7.3 WP Sheet Editor - Post Types (Premium) (WP Sheet Editor): 2.24.13 Slimstat Analytics (Jason Crouse): 4.9.1 WP Admin Cleaner (dPlugins): 1.4.0 WPForms Custom Captcha (WPForms): 1.3.2 WPForms Form Abandonment (WPForms): 1.4.4 WPForms Geolocation (WPForms): 2.0.0 WPForms Offline Forms (WPForms): 1.2.1 WPForms (WPForms): 1.7.7.1 WPS Hide Login (WPServeur, NicolasKulka, wpformation): 1.9.6 Yoast SEO: WooCommerce (Team Yoast): 14.8 Yoast Test Helper (Team Yoast): 1.17 Feed Files https://retail-market.storepaperoomates.com/static/dam/uploads/woo-feed/google/csv/csv-shopping-feed.csv https://retail-market.storepaperoomates.com/static/dam/uploads/woo-feed/google/xml/xml-shopping-feed.xml Fatal Errors 2022-11-08T02:52:39+00:00 CRITICAL Uncaught TypeError: ssh2_auth_password(): Argument #1 ($session) must be of type resource, bool given in /var/www/retail-market.storepaperoomates.com/public/static/dam/modules/extend/webappick-product-feed-for-woocommerce/libs/WebAppick/FTP/SFTPConnection.php:28 Stack trace: #0 /var/www/retail-market.storepaperoomates.com/public/static/dam/modules/extend/webappick-product-feed-for-woocommerce/libs/WebAppick/FTP/SFTPConnection.php(28): ssh2_auth_password() #1 /var/www/retail-market.storepaperoomates.com/public/static/dam/modules/extend/webappick-product-feed-for-woocommerce/includes/helper.php(551): WebAppick\FTP\SFTPConnection->login() #2 /var/www/retail-market.storepaperoomates.com/public/static/dam/modules/extend/webappick-product-feed-for-woocommerce/woo-feed.php(360): woo_feed_handle_file_transfer() #3 /var/www/retail-market.storepaperoomates.com/public/wp-includes/class-wp-hook.php(308): woo_feed_save_feed_file() #4 /var/www/retail-market.storepaperoomates.com/public/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #5 /var/www/retail-market.storepaperoomates.com/public/wp-includes/plugin.php(517): WP_Hook->do_action() #6 /var/www/retail-market.storepaperoomates.com/public/wp-admin/admin-ajax.php(188): do_action() #7 {main} thrown in /var/www/retail-market.storepaperoomates.com/public/static/dam/modules/extend/webappick-product-feed-for-woocommerce/libs/WebAppick/FTP/SFTPConnection.php on line 28 2022-11-08T07:16:26+00:00 CRITICAL Uncaught TypeError: ssh2_auth_password(): Argument #1 ($session) must be of type resource, bool given in /var/www/retail-market.storepaperoomates.com/public/static/dam/modules/extend/webappick-product-feed-for-woocommerce/libs/WebAppick/FTP/SFTPConnection.php:28 Stack trace: #0 /var/www/retail-market.storepaperoomates.com/public/static/dam/modules/extend/webappick-product-feed-for-woocommerce/libs/WebAppick/FTP/SFTPConnection.php(28): ssh2_auth_password() #1 /var/www/retail-market.storepaperoomates.com/public/static/dam/modules/extend/webappick-product-feed-for-woocommerce/includes/helper.php(551): WebAppick\FTP\SFTPConnection->login() #2 /var/www/retail-market.storepaperoomates.com/public/static/dam/modules/extend/webappick-product-feed-for-woocommerce/includes/helper.php(1801): woo_feed_handle_file_transfer() #3 /var/www/retail-market.storepaperoomates.com/public/static/dam/modules/extend/webappick-product-feed-for-woocommerce/includes/cron-helper.php(112): woo_feed_generate_feed() #4 /var/www/retail-market.storepaperoomates.com/public/wp-includes/class-wp-hook.php(308): woo_feed_cron_update_single_feed() #5 /var/www/retail-market.storepaperoomates.com/public/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #6 /var/www/retail-market.storepaperoomates.com/public/wp-includes/plugin.php(565): WP_Hook->do_action() #7 phar:///usr/local/bin/wp/vendor/wp-cli/cron-command/src/Cron_Event_Command.php(343): do_action_ref_array() #8 phar:///usr/local/bin/wp/vendor/wp-cli/cron-command/src/Cron_Event_Command.php(265): Cron_Event_Command::run_event() #9 [internal function]: Cron_Event_Command->run() #10 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/CommandFactory.php(100): call_user_func() #11 [internal function]: WP_CLI\Dispatcher\CommandFactory::WP_CLI\Dispatcher\{closure}() #12 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/Subcommand.php(491): call_user_func() #13 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(419): WP_CLI\Dispatcher\Subcommand->invoke() #14 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(442): WP_CLI\Runner->run_command() #15 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1256): WP_CLI\Runner->run_command_and_exit() #16 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(28): WP_CLI\Runner->start() #17 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/bootstrap.php(78): WP_CLI\Bootstrap\LaunchRunner->process() #18 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/wp-cli.php(32): WP_CLI\bootstrap() #19 phar:///usr/local/bin/wp/php/boot-phar.php(11): include('...') #20 /usr/local/bin/wp(4): include('...') #21 {main} thrown in /var/www/retail-market.storepaperoomates.com/public/static/dam/modules/extend/webappick-product-feed-for-woocommerce/libs/WebAppick/FTP/SFTPConnection.php on line 28 2022-11-08T08:16:31+00:00 CRITICAL Uncaught TypeError: ssh2_auth_password(): Argument #1 ($session) must be of type resource, bool given in /var/www/retail-market.storepaperoomates.com/public/static/dam/modules/extend/webappick-product-feed-for-woocommerce/libs/WebAppick/FTP/SFTPConnection.php:28 Stack trace: #0 /var/www/retail-market.storepaperoomates.com/public/static/dam/modules/extend/webappick-product-feed-for-woocommerce/libs/WebAppick/FTP/SFTPConnection.php(28): ssh2_auth_password() #1 /var/www/retail-market.storepaperoomates.com/public/static/dam/modules/extend/webappick-product-feed-for-woocommerce/includes/helper.php(551): WebAppick\FTP\SFTPConnection->login() #2 /var/www/retail-market.storepaperoomates.com/public/static/dam/modules/extend/webappick-product-feed-for-woocommerce/includes/helper.php(1801): woo_feed_handle_file_transfer() #3 /var/www/retail-market.storepaperoomates.com/public/static/dam/modules/extend/webappick-product-feed-for-woocommerce/includes/cron-helper.php(112): woo_feed_generate_feed() #4 /var/www/retail-market.storepaperoomates.com/public/wp-includes/class-wp-hook.php(308): woo_feed_cron_update_single_feed() #5 /var/www/retail-market.storepaperoomates.com/public/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #6 /var/www/retail-market.storepaperoomates.com/public/wp-includes/plugin.php(565): WP_Hook->do_action() #7 phar:///usr/local/bin/wp/vendor/wp-cli/cron-command/src/Cron_Event_Command.php(343): do_action_ref_array() #8 phar:///usr/local/bin/wp/vendor/wp-cli/cron-command/src/Cron_Event_Command.php(265): Cron_Event_Command::run_event() #9 [internal function]: Cron_Event_Command->run() #10 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/CommandFactory.php(100): call_user_func() #11 [internal function]: WP_CLI\Dispatcher\CommandFactory::WP_CLI\Dispatcher\{closure}() #12 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/Subcommand.php(491): call_user_func() #13 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(419): WP_CLI\Dispatcher\Subcommand->invoke() #14 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(442): WP_CLI\Runner->run_command() #15 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1256): WP_CLI\Runner->run_command_and_exit() #16 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(28): WP_CLI\Runner->start() #17 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/bootstrap.php(78): WP_CLI\Bootstrap\LaunchRunner->process() #18 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/wp-cli.php(32): WP_CLI\bootstrap() #19 phar:///usr/local/bin/wp/php/boot-phar.php(11): include('...') #20 /usr/local/bin/wp(4): include('...') #21 {main} thrown in /var/www/retail-market.storepaperoomates.com/public/static/dam/modules/extend/webappick-product-feed-for-woocommerce/libs/WebAppick/FTP/SFTPConnection.php on line 28 2022-11-08T09:21:23+00:00 CRITICAL Uncaught TypeError: ssh2_auth_password(): Argument #1 ($session) must be of type resource, bool given in /var/www/retail-market.storepaperoomates.com/public/static/dam/modules/extend/webappick-product-feed-for-woocommerce/libs/WebAppick/FTP/SFTPConnection.php:28 Stack trace: #0 /var/www/retail-market.storepaperoomates.com/public/static/dam/modules/extend/webappick-product-feed-for-woocommerce/libs/WebAppick/FTP/SFTPConnection.php(28): ssh2_auth_password() #1 /var/www/retail-market.storepaperoomates.com/public/static/dam/modules/extend/webappick-product-feed-for-woocommerce/includes/helper.php(551): WebAppick\FTP\SFTPConnection->login() #2 /var/www/retail-market.storepaperoomates.com/public/static/dam/modules/extend/webappick-product-feed-for-woocommerce/includes/helper.php(1801): woo_feed_handle_file_transfer() #3 /var/www/retail-market.storepaperoomates.com/public/static/dam/modules/extend/webappick-product-feed-for-woocommerce/includes/cron-helper.php(112): woo_feed_generate_feed() #4 /var/www/retail-market.storepaperoomates.com/public/wp-includes/class-wp-hook.php(308): woo_feed_cron_update_single_feed() #5 /var/www/retail-market.storepaperoomates.com/public/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #6 /var/www/retail-market.storepaperoomates.com/public/wp-includes/plugin.php(565): WP_Hook->do_action() #7 phar:///usr/local/bin/wp/vendor/wp-cli/cron-command/src/Cron_Event_Command.php(343): do_action_ref_array() #8 phar:///usr/local/bin/wp/vendor/wp-cli/cron-command/src/Cron_Event_Command.php(265): Cron_Event_Command::run_event() #9 [internal function]: Cron_Event_Command->run() #10 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/CommandFactory.php(100): call_user_func() #11 [internal function]: WP_CLI\Dispatcher\CommandFactory::WP_CLI\Dispatcher\{closure}() #12 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/Subcommand.php(491): call_user_func() #13 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(419): WP_CLI\Dispatcher\Subcommand->invoke() #14 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(442): WP_CLI\Runner->run_command() #15 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1256): WP_CLI\Runner->run_command_and_exit() #16 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(28): WP_CLI\Runner->start() #17 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/bootstrap.php(78): WP_CLI\Bootstrap\LaunchRunner->process() #18 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/wp-cli.php(32): WP_CLI\bootstrap() #19 phar:///usr/local/bin/wp/php/boot-phar.php(11): include('...') #20 /usr/local/bin/wp(4): include('...') #21 {main} thrown in /var/www/retail-market.storepaperoomates.com/public/static/dam/modules/extend/webappick-product-feed-for-woocommerce/libs/WebAppick/FTP/SFTPConnection.php on line 28 2022-11-08T10:26:31+00:00 CRITICAL Uncaught TypeError: ssh2_auth_password(): Argument #1 ($session) must be of type resource, bool given in /var/www/retail-market.storepaperoomates.com/public/static/dam/modules/extend/webappick-product-feed-for-woocommerce/libs/WebAppick/FTP/SFTPConnection.php:28 Stack trace: #0 /var/www/retail-market.storepaperoomates.com/public/static/dam/modules/extend/webappick-product-feed-for-woocommerce/libs/WebAppick/FTP/SFTPConnection.php(28): ssh2_auth_password() #1 /var/www/retail-market.storepaperoomates.com/public/static/dam/modules/extend/webappick-product-feed-for-woocommerce/includes/helper.php(551): WebAppick\FTP\SFTPConnection->login() #2 /var/www/retail-market.storepaperoomates.com/public/static/dam/modules/extend/webappick-product-feed-for-woocommerce/includes/helper.php(1801): woo_feed_handle_file_transfer() #3 /var/www/retail-market.storepaperoomates.com/public/static/dam/modules/extend/webappick-product-feed-for-woocommerce/includes/cron-helper.php(112): woo_feed_generate_feed() #4 /var/www/retail-market.storepaperoomates.com/public/wp-includes/class-wp-hook.php(308): woo_feed_cron_update_single_feed() #5 /var/www/retail-market.storepaperoomates.com/public/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #6 /var/www/retail-market.storepaperoomates.com/public/wp-includes/plugin.php(565): WP_Hook->do_action() #7 phar:///usr/local/bin/wp/vendor/wp-cli/cron-command/src/Cron_Event_Command.php(343): do_action_ref_array() #8 phar:///usr/local/bin/wp/vendor/wp-cli/cron-command/src/Cron_Event_Command.php(265): Cron_Event_Command::run_event() #9 [internal function]: Cron_Event_Command->run() #10 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/CommandFactory.php(100): call_user_func() #11 [internal function]: WP_CLI\Dispatcher\CommandFactory::WP_CLI\Dispatcher\{closure}() #12 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/Subcommand.php(491): call_user_func() #13 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(419): WP_CLI\Dispatcher\Subcommand->invoke() #14 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(442): WP_CLI\Runner->run_command() #15 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1256): WP_CLI\Runner->run_command_and_exit() #16 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(28): WP_CLI\Runner->start() #17 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/bootstrap.php(78): WP_CLI\Bootstrap\LaunchRunner->process() #18 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/wp-cli.php(32): WP_CLI\bootstrap() #19 phar:///usr/local/bin/wp/php/boot-phar.php(11): include('...') #20 /usr/local/bin/wp(4): include('...') #21 {main} thrown in /var/www/retail-market.storepaperoomates.com/public/static/dam/modules/extend/webappick-product-feed-for-woocommerce/libs/WebAppick/FTP/SFTPConnection.php on line 28
Hi @storepaperoomates
Sorry, our plugin is not compatible with PHP 8.1 yet.
It’s compatible with PHP 7.4.Thank you,
I see you released an update with the Fix and I was testing it out.
It works okay, but brings about a new error.
In the line 5254 or the file
webappick-product-feed-for-woocommerce/includes/helper.php
We’re making use of the variable $I which hasn’t been defined. PHP 8.1 throws in an error and fills up logs for every time the function is run.
As a work around, just above the line I added,
$i = 150;
Then voila, error is gone and everything works just fine.
Great Plugin by the way, especially for the SFTP Feature, closest thing I could get to the Content API.
Will be paying for the Premium Version soon.
[UPDATE]
I noticed when Autogenerating, the plugin does not create more than 10,000 Products.
When I manually generate, it creates all products, but when it autogenerates the number of products fall back to below 10,000.
This is causing fluctuations in our Merchant Center.
Please See – https://pasteboard.co/EzLoLVuV16Pl.png
Is this somehow related to:
Total Products: WP Query: 10000 WC Product Query: 10000 Both Query: 10008
And how can we fix this?
Tracked the Issue down and was able to resolve it.
Related to Elasticpress and another Woocommerce Issue.
Woocommerce Issue – https://wordpress.org/support/topic/issue-with-over-10000-products/#post-16179341
Elasticpress Issue – https://github.com/10up/ElasticPress/issues/1656
Now Product Count is accurate.
Testing.
Will update on how it goes.
Managed to resolve the Issue.
- The topic ‘PHP Warning: Uninitialized string offset’ is closed to new replies.