Woocommerce New Update Issue
-
Hi updated the woocommerce plugin today morning IST and since then i am facing weired issues.
These issues I am getting in dashboard after activating woocommerce –
Warning: call_user_func() expects parameter 1 to be a valid callback, class ‘\Automattic\WooCommerce\Blocks\Package’ not found in /var/www/wp-content/plugins/woocommerce/src/Packages.php on line 71
Warning: Cannot modify header information – headers already sent by (output started at /var/www/wp-content/plugins/woocommerce/src/Packages.php:71) in /var/www/wp-includes/functions.php on line 6029
Warning: Cannot modify header information – headers already sent by (output started at /var/www/wp-content/plugins/woocommerce/src/Packages.php:71) in /var/www/wp-admin/includes/misc.php on line 1252
Warning: Cannot modify header information – headers already sent by (output started at /var/www/wp-content/plugins/woocommerce/src/Packages.php:71) in /var/www/wp-admin/admin-header.php on line 9
Warning: Cannot modify header information – headers already sent by (output started at /var/www/wp-content/plugins/woocommerce/src/Packages.php:71) in /var/www/wp-includes/option.php on line 961
Warning: Cannot modify header information – headers already sent by (output started at /var/www/wp-content/plugins/woocommerce/src/Packages.php:71) in /var/www/wp-includes/option.php on line 962
On main website also you can see below error – Warning: call_user_func() expects parameter 1 to be a valid callback, class ‘\Automattic\WooCommerce\Blocks\Package’ not found in /var/www/wp-content/plugins/woocommerce/src/Packages.php on line 71
logodark logoKindly help!
-
This topic was modified 6 years, 5 months ago by
mayank91.
The page I need help with: [log in to see the link]
-
This topic was modified 6 years, 5 months ago by
-
Hi @mayank91
Hi updated the woocommerce plugin today morning IST and since then i am facing weired issues.
That’s definitely an odd issue.
I can see that the error is coming from this line: https://github.com/woocommerce/woocommerce/blob/master/src/Packages.php#L71
It means that additional ‘packages’ (like WooCommerce Blocks, and the REST API) are missing. You can read more on this here; https://github.com/woocommerce/woocommerce/tree/master/packages
Did you try updating WooCommerce by installing the master branch from GitHub, by any chance? Typically this error occurs when you install the uncompiled version of WooCommerce from GitHub. This is the reason why I asked.
If not, did you try updating WooCommerce to 3.8.1 from an older version?
Anyhow, I’d recommend downloading WooCommerce from https://ww.wp.xz.cn/plugins/woocommerce and reinstall it in your site. You can manually replace the `/wp-content/plugins/woocommerce/ folder by a fresh version downloaded from https://ww.wp.xz.cn/plugins/woocommerce and see if the problem gets resolved.
Keep us posted.
Hi @harishanker ,
Thanks for the response.
I directly tried to update the plugin from plugin manager in wp-admin.
Woo-commerce version showing is 3.8.1 in dashboard.Will replacing manually loose the data ? Because I can not afford data loss since website is live.
Thanks,
MayankHi @mayank91
I directly tried to update the plugin from plugin manager in wp-admin.
Woo-commerce version showing is 3.8.1 in dashboard.I see. In that case, this could have been triggered by an update gone wrong.
Quick question: Did you have the WooCommerce Product Blocks plugin installed in your site previously? Additionally, could you please send me a copy of your site’s System Status? You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”. Once you’ve done that, you can paste it here in your reply to this forum thread.
Will replacing manually loose the data ? Because I can not afford data loss since website is live.
In this case, you are just replacing the WooCommerce core files within the FTP tool or the file manager. This method is safe and wouldn’t cause data loss.
With that said, since this is a production site, I wouldn’t recommend doing this without taking a full backup (database and files) of your site. If you want to try out this troubleshooting step, I’d recommend this approach.
Let us know if you still keep running into troubles.
Hi @harishanker ,
Pls find the system report here.
`
### WordPress Environment ###WordPress address (URL): https://www.orionpolymer.com
Site address (URL): https://www.orionpolymer.com
WC Version: 3.8.1
REST API Version: ✔ 1.0.2
Log Directory Writable: ✔
WP Version: 5.3.2
WP Multisite: –
WP Memory Limit: 256 MB
WP Debug Mode: –
WP Cron: ✔
Language: en_US
External object cache: –### Server Environment ###
Server Info: Apache
PHP Version: 7.2.15
PHP Post Max Size: 120 MB
PHP Time Limit: 120
PHP Max Input Vars: 1000
cURL Version: 7.45.0
OpenSSL/1.0.1eSUHOSIN Installed: –
MySQL Version: 5.7.26-29-log
Max Upload Size: 120 MB
Default Timezone is UTC: ✔
fsockopen/cURL: ✔
SoapClient: ✔
DOMDocument: ✔
GZip: ✔
Multibyte String: ✔
Remote Post: ✔
Remote Get: ✔### Database ###
WC Database Version: 3.8.1
WC Database Prefix: wp_kg74c0sp83_
MaxMind GeoIP Database: ✔
Total Database Size: 20.12MB
Database Data Size: 16.16MB
Database Index Size: 3.96MB
wp_kg74c0sp83_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_kg74c0sp83_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_kg74c0sp83_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_kg74c0sp83_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
wp_kg74c0sp83_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_kg74c0sp83_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_kg74c0sp83_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
wp_kg74c0sp83_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_kg74c0sp83_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_kg74c0sp83_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_kg74c0sp83_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_kg74c0sp83_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_kg74c0sp83_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_kg74c0sp83_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_kg74c0sp83_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_kg74c0sp83_comments: Data: 0.08MB + Index: 0.09MB + Engine InnoDB
wp_kg74c0sp83_failed_jobs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_kg74c0sp83_gf_draft_submissions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_kg74c0sp83_gf_entry: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_kg74c0sp83_gf_entry_meta: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
wp_kg74c0sp83_gf_entry_notes: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_kg74c0sp83_gf_form: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_kg74c0sp83_gf_form_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_kg74c0sp83_gf_form_revisions: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_kg74c0sp83_gf_form_view: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_kg74c0sp83_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_kg74c0sp83_mailchimp_carts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_kg74c0sp83_mailchimp_jobs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_kg74c0sp83_options: Data: 3.03MB + Index: 0.06MB + Engine InnoDB
wp_kg74c0sp83_postmeta: Data: 3.02MB + Index: 2.31MB + Engine InnoDB
wp_kg74c0sp83_posts: Data: 7.16MB + Index: 0.25MB + Engine InnoDB
wp_kg74c0sp83_queue: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_kg74c0sp83_revslider_css: Data: 0.13MB + Index: 0.00MB + Engine InnoDB
wp_kg74c0sp83_revslider_layer_animations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_kg74c0sp83_revslider_navigations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_kg74c0sp83_revslider_sliders: Data: 0.09MB + Index: 0.00MB + Engine InnoDB
wp_kg74c0sp83_revslider_slides: Data: 1.52MB + Index: 0.00MB + Engine InnoDB
wp_kg74c0sp83_revslider_static_slides: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_kg74c0sp83_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_kg74c0sp83_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_kg74c0sp83_term_relationships: Data: 0.05MB + Index: 0.02MB + Engine InnoDB
wp_kg74c0sp83_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_kg74c0sp83_usermeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_kg74c0sp83_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
wp_kg74c0sp83_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_kg74c0sp83_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_kg74c0sp83_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_kg74c0sp83_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_kg74c0sp83_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_kg74c0sp83_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_kg74c0sp83_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
wp_kg74c0sp83_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
wp_kg74c0sp83_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_kg74c0sp83_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
wp_kg74c0sp83_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_kg74c0sp83_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_kg74c0sp83_yith_wcwl: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_kg74c0sp83_yith_wcwl_lists: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_kg74c0sp83_yoast_seo_links: Data: 0.06MB + Index: 0.02MB + Engine InnoDB
wp_kg74c0sp83_yoast_seo_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB### Security ###
Secure connection (HTTPS): ✔
Hide errors from visitors: ✔### Active Plugins (6) ###
Contact Form 7: by Takayuki Miyoshi – 5.1.6
Envato Market: by Envato – 2.0.3
WPBakery Page Builder: by Michael M – WPBakery.com – 6.0.1
Slider Revolution: by ThemePunch – 5.4.8.3
Tonda Core: by Select Themes – 1.3
WooCommerce: by Automattic – 3.8.1### Inactive Plugins (10) ###
Akismet Anti-Spam: by Automattic – 4.1.3
Mailchimp for WooCommerce: by Mailchimp – 2.3 – Not tested with the active version of WooCommerce
Product Enquiry for WooCommerce: by WisdmLabs – 2.6.4
Tonda Membership: by Select Themes – 1.0.1
Tonda Twitter Feed: by Select Themes – 1.0.1
WooCommerce Admin: by WooCommerce – 0.23.2
WooCommerce Sequential Order Numbers: by SkyVerge – 1.9.2
WooCommerce Services: by Automattic – 1.22.2
WooCommerce Stripe Gateway: by WooCommerce – 4.3.1
YITH WooCommerce Quick View: by YITH – 1.3.18### Dropin Plugins (1) ###
object-cache.php: APCu Object Cache
### Must Use Plugins (1) ###
System Plugin: by – 3.12.0
### Settings ###
API Enabled: –
Force SSL: –
Currency: USD ($)
Currency Position: left
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: –
### WC Pages ###
Shop base: #6 – /products/
Cart: #7 – /cart/
Checkout: #8 – /checkout/
My account: #9 – /my-account/
Terms and conditions: ❌ Page not set### Theme ###
Name: Tonda
Version: 1.5.3
Author URL: http://themeforest.net/user/select-themes
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 ###
Archive Template: Your theme has a woocommerce.php file
you will not be able to override the woocommerce/archive-product.php custom template since woocommerce.php has priority over archive-product.php. This is intended to prevent display issues.Overrides: tonda/woocommerce/content-product.php
tonda/woocommerce/global/quantity-input.php
tonda/woocommerce/product-searchform.php### Action Scheduler ###
Complete: 295
Oldest: 2019-11-21 19:09:26 +0000
Newest: 2019-12-22 15:14:29 +0000Pending: 1
Oldest: 2019-12-22 16:14:29 +0000
Newest: 2019-12-22 16:14:29 +0000Canceled: 0
Oldest: –
Newest: –In-progress: 0
Oldest: –
Newest: –Failed: 0
Oldest: –
Newest: –It’s showing pending 1, I am not sure for what this is.
Mayank
Hi, Response is still awaited !
Mayank
Hi @mayank91
Apologies for the delay in getting to you on this.
I just went through the system status report. It looks okay.
As for the problem itself, I think the problem is triggered by the missing
/packagesfolder within the plugin directory:/wp-content/plugins/woocommerce/packages.Could you try out the steps I had recommended earlier, to reinstall the WooCommerce plugin files. The steps to do this safe, would be as follows:
- Navigate to
/var/www/wp-content/plugins/and find thewoocommercedirectory. - Rename it to
woocommerce1or something. - Now, download the latest stable version of WooCommerce from here: https://ww.wp.xz.cn/plugins/woocommerce/
- Upload it over there to the:
/var/www/wp-content/plugins/
Once this is done, check if the error persists.
If you have a local development/staging version of your site, you could test it there first if you want. You could use a plugin like WP Staging to create staging sites. You could use it to create a staging copy of your current site to try out these troubleshooting steps.
When you’re doing this on your live site, I strongly recommend taking a full backup of your site’s files and database before.
Let us know if you have questions!
Yes I did the same and it’s working without any data loss.
Thanks a lot for your help! 🙂
Mayank
@mayank91 I’m glad Hari was able to help you!
I’m going to go ahead and mark this thread as resolved. If you have any other questions please feel free to start a new thread.
- Navigate to
The topic ‘Woocommerce New Update Issue’ is closed to new replies.