woocommerce / storefront

Official theme for WooCommerce
https://wordpress.org/themes/storefront/
974 stars 470 forks source link

Issue revealed when making child theme with Child Theme Configurator #1971

Closed cskindley closed 2 years ago

cskindley commented 2 years ago

Describe the bug

Error while attempting to create a Storefront child theme using the Child Theme Configurator plugin from the Wordpress repository.

Isolating the problem (mark completed items with an [x]):

To Reproduce

Steps to reproduce the behavior:

  1. Install Child Theme Configurator plugin version 2.5.9 (latest version )from Wordpress repository
  2. Go to Tools > Child Themes
  3. “Select an Action” and check the “Create Theme” option
  4. “Select a Parent Theme” and select “Storefront”
  5. “Analyze Patent Theme” and click the big “Analyze” button6.
  6. A warning box appears that contains what the error is

Screenshots

childtheme-error

Expected behavior

No errors!

Browser Environment

Can duplicate this on 4 separate installs

Wordpress server environment

Apache httpd on Linux dp-46b35181bb 5.4.0-1062-kvm #65-Ubuntu SMP x86_64 x86_64 x86_64 GNU/Linux PHP 8.1 FPM/FastCGI

Error generated from the Child Theme Configurator out put that’s no fully visible in screenshot

“Deprecated: Return type of MyCLabs\Enum\Enum::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/wp_vh8kqn/ceuportal.com/wp-content/plugins/woocommerce-payments/vendor/myclabs/php-enum/src/Enum.php on line 246”

``` ### WordPress Environment ### WordPress address (URL): https://www.ceuportal.com Site address (URL): https://www.ceuportal.com WC Version: 6.5.1 REST API Version: ✔ 6.5.1 WC Blocks Version: ✔ 7.4.3 Action Scheduler Version: ✔ 3.4.0 Log Directory Writable: ✔ WP Version: 5.9.3 WP Multisite: – WP Memory Limit: 500 MB WP Debug Mode: – WP Cron: – Language: en_US External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 8.1.0 PHP Post Max Size: 512 MB PHP Time Limit: 120 PHP Max Input Vars: 1000 cURL Version: 7.68.0 OpenSSL/1.1.1f SUHOSIN Installed: – MySQL Version: 8.0.28-0ubuntu0.20.04.3 Max Upload Size: 512 MB Default Timezone is UTC: ✔ fsockopen/cURL: ✔ SoapClient: ✔ DOMDocument: ✔ GZip: ✔ Multibyte String: ✔ Remote Post: ✔ Remote Get: ✔ ### Database ### WC Database Version: 6.5.1 WC Database Prefix: wp_64a4v3_ Total Database Size: 9.13MB Database Data Size: 5.52MB Database Index Size: 3.61MB wp_64a4v3_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_64a4v3_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_64a4v3_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_64a4v3_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_64a4v3_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_64a4v3_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_64a4v3_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_64a4v3_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_64a4v3_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_64a4v3_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_64a4v3_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_64a4v3_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_64a4v3_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_64a4v3_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_64a4v3_actionscheduler_actions: Data: 0.09MB + Index: 0.11MB + Engine InnoDB wp_64a4v3_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_64a4v3_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_64a4v3_actionscheduler_logs: Data: 0.06MB + Index: 0.03MB + Engine InnoDB wp_64a4v3_aioseo_cache: Data: 0.08MB + Index: 0.03MB + Engine InnoDB wp_64a4v3_aioseo_notifications: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_64a4v3_aioseo_posts: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_64a4v3_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_64a4v3_comments: Data: 0.02MB + Index: 0.11MB + Engine InnoDB wp_64a4v3_imagify_files: Data: 0.02MB + Index: 0.08MB + Engine InnoDB wp_64a4v3_imagify_folders: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_64a4v3_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_64a4v3_mepr_events: Data: 0.02MB + Index: 0.08MB + Engine InnoDB wp_64a4v3_mepr_jobs: Data: 0.02MB + Index: 0.14MB + Engine InnoDB wp_64a4v3_mepr_members: Data: 0.02MB + Index: 0.27MB + Engine InnoDB wp_64a4v3_mepr_rule_access_conditions: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_64a4v3_mepr_subscription_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_64a4v3_mepr_subscriptions: Data: 0.02MB + Index: 0.30MB + Engine InnoDB wp_64a4v3_mepr_tax_rate_locations: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_64a4v3_mepr_tax_rates: Data: 0.02MB + Index: 0.14MB + Engine InnoDB wp_64a4v3_mepr_transaction_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_64a4v3_mepr_transactions: Data: 0.02MB + Index: 0.33MB + Engine InnoDB wp_64a4v3_mpcs_answers: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_64a4v3_mpcs_attempts: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_64a4v3_mpcs_questions: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_64a4v3_mpcs_sections: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_64a4v3_mpcs_user_progress: Data: 0.02MB + Index: 0.08MB + Engine InnoDB wp_64a4v3_options: Data: 3.36MB + Index: 0.09MB + Engine InnoDB wp_64a4v3_postmeta: Data: 0.13MB + Index: 0.06MB + Engine InnoDB wp_64a4v3_posts: Data: 0.22MB + Index: 0.06MB + Engine InnoDB wp_64a4v3_snippets: Data: 0.03MB + Index: 0.03MB + Engine InnoDB wp_64a4v3_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_64a4v3_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_64a4v3_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_64a4v3_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_64a4v3_tutor_earnings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_64a4v3_tutor_quiz_attempt_answers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_64a4v3_tutor_quiz_attempts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_64a4v3_tutor_quiz_question_answers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_64a4v3_tutor_quiz_questions: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_64a4v3_tutor_withdraws: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_64a4v3_usermeta: Data: 0.11MB + Index: 0.03MB + Engine InnoDB wp_64a4v3_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_64a4v3_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_64a4v3_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_64a4v3_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_64a4v3_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_64a4v3_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_64a4v3_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_64a4v3_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_64a4v3_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_64a4v3_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_64a4v3_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_64a4v3_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_64a4v3_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB wp_64a4v3_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_64a4v3_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_64a4v3_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_64a4v3_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_64a4v3_wpforms_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_64a4v3_wpmailsmtp_debug_events: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_64a4v3_wpmailsmtp_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_64a4v3_wpr_rucss_resources: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_64a4v3_wpr_rucss_used_css: Data: 0.06MB + Index: 0.06MB + Engine InnoDB ### Post Type Counts ### attachment: 19 certificate_template: 1 course: 1 courses: 2 custom_css: 2 customize_changeset: 36 jp_img_sitemap: 1 jp_sitemap: 1 jp_sitemap_master: 1 lesson: 1 memberpressgroup: 1 memberpressproduct: 1 memberpressrule: 1 mpcs-course: 2 mpcs-lesson: 3 nav_menu_item: 9 page: 16 post: 8 product: 1 quiz: 1 revision: 3 wp_global_styles: 4 wp_navigation: 2 wp_template: 1 wp_template_part: 1 wpforms: 1 ### Security ### Secure connection (HTTPS): ✔ Hide errors from visitors: ✔ ### Active Plugins (17) ### Akismet Anti-Spam: by Automattic – 4.2.3 Child Theme Configurator: by Lilaea Media – 2.5.9 Code Snippets: by Code Snippets Pro – 3.0.1 DreamHost Panel Login: by DreamHost danielbachhuber – 1.0.0 If Menu - Visibility control for menu items: by Layered – 0.16.2 Imagify: by WP Media – 1.10 Jetpack: by Automattic – 10.9 Loco Translate: by Tim Whitlock – 2.6.1 MemberPress Courses: by Caseproof LLC – 1.1.5 MemberPress Plus: by Caseproof LLC – 1.9.37 Storefront Powerpack: by WooCommerce – 1.6.1 Proxy Cache Purge: by Mika Epstein – 5.1.2 WooCommerce Payments: by Automattic – 4.1.0 WooCommerce Shipping & Tax: by WooCommerce – 1.25.28 WooCommerce: by Automattic – 6.5.1 WP Mail SMTP: by WPForms – 3.4.0 WPForms Lite: by WPForms – 1.7.4.1 ### Inactive Plugins (2) ### Memberpress WooCommerce Plus: by HappyPlugins – 1.2.2 WP Rocket: by WP Media – 3.11.2 ### Dropin Plugins (1) ### advanced-cache.php: advanced-cache.php ### 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) subscription (subscription) variable (variable) variable subscription (variable-subscription) 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: ✔ ### WC Pages ### Shop base: #518 - /course-library/ Cart: #519 - /cart/ Checkout: #520 - /checkout/ My account: #521 - /my-account/ Terms and conditions: #76 - /terms-of-use/ ### Theme ### Name: Storefront Version: 4.1.0 Author URL: https://woocommerce.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: – ### Subscriptions ### WCS_DEBUG: ✔ No Subscriptions Mode: ✔ Live Subscriptions Live URL: https://www.ceuportal.com Subscription Statuses: – WooCommerce Account Connected: ✔ Yes Active Product Key: ❌ No ### Store Setup ### Country / State: United States (US) — Indiana ### Payment Gateway Support ### WooCommerce Payments: products refunds multiple_subscriptions subscription_cancellation subscription_payment_method_change_admin subscription_payment_method_change_customer subscription_payment_method_change subscription_reactivation subscription_suspension subscriptions gateway_scheduled_payments tokenization add_payment_method ### WooCommerce Payments ### Version: 4.1.0 Connected to WPCOM: Yes Blog ID: 195091640 Account ID: acct_1J8Cm62H5Qq4d9cU ### Action Scheduler ### Complete: 196 Oldest: 2022-05-10 19:30:04 -0400 Newest: 2022-05-13 19:59:30 -0400 Pending: 6 Oldest: 2022-05-14 19:26:18 -0400 Newest: 2022-05-18 16:15:23 -0400 ### Status report information ### Generated at: 2022-05-14 04:22:44 -04:00 ` ```

Additional details:

I have reproduced this on a clean minimal install of Wordpress with only Woocommerce, Woocommerce Payments, JetPack (free version), the 2022 theme (inactive), Storefront theme , and Storefront Powerpack installed. All were showing updated to latest version as of May 14, 2022.

danieldudzic commented 2 years ago

Hi @cskindley!

Thanks for reporting.

I'd recommend reaching out to the plugin developers regarding this via: https://wordpress.org/support/plugin/child-theme-configurator/