• Resolved Anonymous User 14008068

    (@anonymized-14008068)


    Hello,

    since my host updated PHP to version 7.2, my website is down. In the error logs I found this error: “FastCGI: server /var/run/php72-cgi/php-cgi stderr: PHP message: PHP Fatal error: continue not in the loop or switch context in shortcodes-woocommerce.php”

    so the function “continue” in the woocommerce plugin doesn’t work any longer and needs to be replaced somehow.

    this is the erroneous line in the shortcodes-woocommerce.php file:
    if (!$product->is_visible()) continue;

    When I replace “continue” by “return”, the website is up again but the entire shop (woocommerce) isn’t showing.

    I don’t know anything about php, so any help would be very much appreciated.
    Thank you in advance!!!

    • This topic was modified 5 years, 5 months ago by Jan Dembowski.
Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Support Hannah S.L.

    (@fernashes)

    Automattic Happiness Engineer

    Hey there!

    I haven’t heard of any other issues with WooCommerce and PHP 7.2, so I doubt it’s a specific error in the WooCommerce plugin.

    If you disable the WooCommerce plugin via FTP, does the website come back up? And once it’s up, can you then re-enable the plugin? Here’s how to do that via FTP:
    https://support.bestwebsoft.com/hc/en-us/articles/204301449-Deactivate-disable-Wordpress-plugin-via-FTP

    Thread Starter Anonymous User 14008068

    (@anonymized-14008068)

    Hi,

    thank you for your swift reply.
    As soon as I disable (rename) the plugin woocommerce via FTP, the entire site is down again… πŸ™

    Plugin Support Hannah S.L.

    (@fernashes)

    Automattic Happiness Engineer

    In that case, it’s likely more than just a problem with WooCommerce. I recommend disabling all plugins (you can just rename the plugins folder) and then slowly re-enabling plugins by moving them over to the new folder. That’ll help you track down where things are going wrong.

    Thread Starter Anonymous User 14008068

    (@anonymized-14008068)

    when I disable all plugins, nothing happens: woocommerce (shop) obviously doesn’t work, some other functionalities neither. but when I re-enable each plugin one by one, this doesn’t make me wiser: as soon as I enable woocommerce plugin again, the shop menu appears but clicking on it doesn’t open the shop pages…

    Thread Starter Anonymous User 14008068

    (@anonymized-14008068)

    furthermore, I see more errors in the logs:

    
    213.246.249.50
    FastCGI: server "/var/run/php71-cgi/php-cgi" stderr: #10 /www/wp-includes..., referer: http://www.---.be/
    
    213.246.249.50
    FastCGI: server "/var/run/php71-cgi/php-cgi" stderr: #9 /www/wp-includes/template.php(690): require('/www/wp-content...'), referer: http://www.---.be/
    
    213.246.249.50
    FastCGI: server "/var/run/php71-cgi/php-cgi" stderr: #8 /www/wp-content/themes/maya/slider.php(15): get_template_part('slider', 'layers'), referer: http://www.---.be/
    
    213.246.249.50
    FastCGI: server "/var/run/php71-cgi/php-cgi" stderr: #7 /www/wp-includes/general-template.php(155): locate_template(Array, true, false), referer: http://www.---.be/
    
    213.246.249.50
    FastCGI: server "/var/run/php71-cgi/php-cgi" stderr: #6 /www/wp-includes/template.php(647): load_template('/www/wp-content...', false), referer: http://www.---.be/
    
    ...
    

    don’t know if this makes anything clearer?

    • This reply was modified 5 years, 5 months ago by Jan Dembowski.

    This all seems to be related to your theme. shortcodes-woocommerce.php is also in Maya, I guess? It’s not a core WC file.

    Thread Starter Anonymous User 14008068

    (@anonymized-14008068)

    Hi Soft79

    you’re right: I have activated a new theme and was able to see the products in that new theme. So, I should re-install or update the Maya theme, I guess?

    Thread Starter Anonymous User 14008068

    (@anonymized-14008068)

    I’m afraid that in the new theme not all the products were visible after all.
    Something’s wrong with the categories I think, maybe I should post the link to the website here so you guys can have a look?

    Paste your WC System Status Report

    Thread Starter Anonymous User 14008068

    (@anonymized-14008068)

    
    ### WordPress Environment ###
    
    Home URL: http://www.eekhoorntjesland.be
    Site URL: http://www.eekhoorntjesland.be
    WC Version: 3.5.1
    Log Directory Writable: βœ”
    WP Version: 4.9.8
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: –
    WP Cron: βœ”
    Language: nl_NL
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 7.2.9
    PHP Post Max Size: 128 MB
    PHP Time Limit: 120
    PHP Max Input Vars: 5000
    cURL Version: 7.38.0
    OpenSSL/1.0.2l
    
    SUHOSIN Installed: –
    MySQL Version: 5.5.5-10.1.35-MariaDB-1~jessie
    Max Upload Size: 128 MB
    Default Timezone is UTC: βœ”
    fsockopen/cURL: βœ”
    SoapClient: βœ”
    DOMDocument: βœ”
    GZip: βœ”
    Multibyte String: βœ”
    Remote Post: βœ”
    Remote Get: βœ”
    
    ### Database ###
    
    WC Database Version: 3.5.1
    WC Database Prefix: tdr_
    Totale databasegrootte: 22.43MB
    Database datagrootte: 18.16MB
    Database index grootte: 4.27MB
    tdr_woocommerce_sessions: Data: 0.38MB + Index: 0.01MB
    tdr_woocommerce_api_keys: Data: 0.00MB + Index: 0.00MB
    tdr_woocommerce_attribute_taxonomies: Data: 0.00MB + Index: 0.01MB
    tdr_woocommerce_downloadable_product_permissions: Data: 0.00MB + Index: 0.01MB
    tdr_woocommerce_order_items: Data: 0.13MB + Index: 0.07MB
    tdr_woocommerce_order_itemmeta: Data: 0.86MB + Index: 0.61MB
    tdr_woocommerce_tax_rates: Data: 0.00MB + Index: 0.01MB
    tdr_woocommerce_tax_rate_locations: Data: 0.00MB + Index: 0.00MB
    tdr_woocommerce_shipping_zones: Data: 0.00MB + Index: 0.00MB
    tdr_woocommerce_shipping_zone_locations: Data: 0.00MB + Index: 0.00MB
    tdr_woocommerce_shipping_zone_methods: Data: 0.00MB + Index: 0.00MB
    tdr_woocommerce_payment_tokens: Data: 0.00MB + Index: 0.00MB
    tdr_woocommerce_payment_tokenmeta: Data: 0.00MB + Index: 0.00MB
    tdr_woocommerce_log: Data: 0.00MB + Index: 0.00MB
    tdr_aiowps_events: Data: 0.47MB + Index: 0.09MB
    tdr_aiowps_failed_logins: Data: 0.20MB + Index: 0.08MB
    tdr_aiowps_global_meta: Data: 3.17MB + Index: 0.00MB
    tdr_aiowps_login_activity: Data: 0.01MB + Index: 0.00MB
    tdr_aiowps_login_lockdown: Data: 0.54MB + Index: 0.13MB
    tdr_aiowps_permanent_block: Data: 0.00MB + Index: 0.00MB
    tdr_cntctfrm_field: Data: 0.00MB + Index: 0.00MB
    tdr_cn_social_icon: Data: 0.02MB + Index: 0.00MB
    tdr_commentmeta: Data: 0.08MB + Index: 0.06MB
    tdr_comments: Data: 0.34MB + Index: 0.17MB
    tdr_faq_termmeta: Data: 0.00MB + Index: 0.00MB
    tdr_formmaker: Data: 0.00MB + Index: 0.00MB
    tdr_formmaker_sessions: Data: 0.00MB + Index: 0.00MB
    tdr_formmaker_submits: Data: 0.00MB + Index: 0.00MB
    tdr_formmaker_themes: Data: 0.00MB + Index: 0.00MB
    tdr_formmaker_views: Data: 0.00MB + Index: 0.00MB
    tdr_itsec_lockouts: Data: 0.00MB + Index: 0.00MB
    tdr_itsec_log: Data: 0.00MB + Index: 0.00MB
    tdr_itsec_temp: Data: 0.00MB + Index: 0.00MB
    tdr_layerslider: Data: 0.03MB + Index: 0.00MB
    tdr_links: Data: 0.00MB + Index: 0.00MB
    tdr_options: Data: 2.91MB + Index: 0.24MB
    tdr_postmeta: Data: 2.45MB + Index: 0.83MB
    tdr_posts: Data: 0.61MB + Index: 0.25MB
    tdr_ps_exclude: Data: 0.00MB + Index: 0.00MB
    tdr_ps_postmeta: Data: 0.00MB + Index: 0.01MB
    tdr_ps_posts: Data: 0.01MB + Index: 0.01MB
    tdr_ps_product_sku: Data: 0.00MB + Index: 0.01MB
    tdr_revslider_sliders: Data: 0.00MB + Index: 0.00MB
    tdr_revslider_slides: Data: 0.00MB + Index: 0.00MB
    tdr_say_what_strings: Data: 0.02MB + Index: 0.00MB
    tdr_sm_advanced_search_temp: Data: 0.00MB + Index: 0.00MB
    tdr_termmeta: Data: 0.01MB + Index: 0.02MB
    tdr_terms: Data: 0.00MB + Index: 0.01MB
    tdr_term_relationships: Data: 0.03MB + Index: 0.06MB
    tdr_term_taxonomy: Data: 0.00MB + Index: 0.01MB
    tdr_usermeta: Data: 0.13MB + Index: 0.10MB
    tdr_users: Data: 0.01MB + Index: 0.02MB
    tdr_usquare: Data: 0.00MB + Index: 0.00MB
    tdr_voucherpress_downloads: Data: 0.02MB + Index: 0.00MB
    tdr_voucherpress_templates: Data: 0.02MB + Index: 0.00MB
    tdr_voucherpress_vouchers: Data: 0.02MB + Index: 0.00MB
    tdr_vtprd_purchase_log: Data: 0.00MB + Index: 0.00MB
    tdr_vtprd_purchase_log_product: Data: 0.00MB + Index: 0.00MB
    tdr_vtprd_purchase_log_product_rule: Data: 0.00MB + Index: 0.00MB
    tdr_wcpdf_invoice_number: Data: 0.02MB + Index: 0.00MB
    tdr_wc_download_log: Data: 0.02MB + Index: 0.03MB
    tdr_wc_webhooks: Data: 0.02MB + Index: 0.02MB
    tdr_wfbadleechers: Data: 0.00MB + Index: 0.00MB
    tdr_wfblocks: Data: 0.00MB + Index: 0.00MB
    tdr_wfblocksadv: Data: 0.00MB + Index: 0.00MB
    tdr_wfconfig: Data: 0.00MB + Index: 0.01MB
    tdr_wfcrawlers: Data: 0.00MB + Index: 0.00MB
    tdr_wffilemods: Data: 3.27MB + Index: 0.97MB
    tdr_wfhits: Data: 0.44MB + Index: 0.08MB
    tdr_wfhoover: Data: 0.00MB + Index: 0.00MB
    tdr_wfissues: Data: 0.03MB + Index: 0.00MB
    tdr_wfleechers: Data: 0.02MB + Index: 0.03MB
    tdr_wflockedout: Data: 0.00MB + Index: 0.00MB
    tdr_wflocs: Data: 0.00MB + Index: 0.00MB
    tdr_wflogins: Data: 0.00MB + Index: 0.00MB
    tdr_wfnet404s: Data: 0.00MB + Index: 0.00MB
    tdr_wfreversecache: Data: 0.00MB + Index: 0.00MB
    tdr_wfscanners: Data: 0.00MB + Index: 0.00MB
    tdr_wfstatus: Data: 0.08MB + Index: 0.03MB
    tdr_wfthrottlelog: Data: 0.00MB + Index: 0.00MB
    tdr_wfvulnscanners: Data: 0.00MB + Index: 0.00MB
    tdr_wpb2d_excluded_files: Data: 0.00MB + Index: 0.00MB
    tdr_wpb2d_options: Data: 0.00MB + Index: 0.00MB
    tdr_wpb2d_processed_dbtables: Data: 0.00MB + Index: 0.01MB
    tdr_wpb2d_processed_files: Data: 0.00MB + Index: 0.00MB
    tdr_wpbackitup_job: Data: 1.77MB + Index: 0.23MB
    tdr_yith_wcwl: Data: 0.02MB + Index: 0.03MB
    tdr_yith_wcwl_lists: Data: 0.00MB + Index: 0.01MB
    
    ### Post Type Counts ###
    
    attachment: 1424
    contactform: 1
    create-portfolio: 1
    customize_changeset: 1
    eps-slider: 1
    hs_faq: 15
    nav_menu_item: 29
    page: 14
    post: 2
    product: 217
    revision: 78
    rp_shop_giftcard: 1
    shop_coupon: 57
    shop_order: 280
    ufaq: 4
    wp-backitup_backup: 1
    wp-backitup_cleanup: 1
    wpcf7_contact_form: 1
    
    ### Security ###
    
    Secure connection (HTTPS): ❌
    					Jouw winkel gebruikt geen HTTPS. Leer meer over HTTPS en SSL-certificaten.
    Hide errors from visitors: βœ”
    
    ### Active Plugins (37) ###
    
    Akismet Anti-Spam: door Automattic – 4.0.8
    All In One SEO Pack: door Michael Torbert – 2.9.1
    All In One WP Security: door Tips and Tricks HQ
    Peter Petreski
    Ruhul
    Ivy – 4.3.7.2
    
    BackWPup: door Inpsyde GmbH – 3.6.3
    BAW Login/Logout menu: door Juliobox – 1.3.3
    Contact Form by BestWebSoft: door BestWebSoft – 4.1.0
    Easy Social Icons: door cybernetikz – 3.0.5
    WooCommerce shop to Facebook: door StoreYa – 2.5 – Niet getest met de actieve versie van WooCommerce
    NinjaFirewall (WP Edition): door The Ninja Technologies Network – 3.7.1
    VarkTech Pricing Deals for WooCommerce: door Vark – 2.0.0.1 – Niet getest met de actieve versie van WooCommerce
    Product CSV Import Export (BASIC): door WebToffee – 1.4.9
    reCAPTCHA: door rozx – 0.2.6
    Search By Product tag - for Woocommerce: door Matthew Lawson – 0.3.1 – Niet getest met de actieve versie van WooCommerce
    Smart Manager: door StoreApps – 3.13.0 – Niet getest met de actieve versie van WooCommerce
    Sucuri Security - Auditing, Malware Scanner and Hardening: door Sucuri Inc. – 1.8.18
    Ultimate FAQ: door Etoile Web Design – 1.8.9 – Niet getest met de actieve versie van WooCommerce
    WooCommerce Ondersteunde Betalings Methoden: door jameskoster – 0.7.0 – Niet getest met de actieve versie van WooCommerce
    WooCommerce Advanced Free Shipping: door Jeroen Sormani – 1.1.3 – Niet getest met de actieve versie van WooCommerce
    WooCommerce - All in One SEO Pack: door Visser Labs – 1.3.4 – Niet getest met de actieve versie van WooCommerce
    WooCommerce - Store Exporter: door Visser Labs – 2.0.2 – Niet getest met de actieve versie van WooCommerce
    WooCommerce Menu Cart: door Jeremiah Prummer
    Ewout Fernhout – 2.7.2
    
    WooCommerce My Account Widget: door Bart Pluijms – 0.6.4 – Niet getest met de actieve versie van WooCommerce
    WooCommerce Nieuw Product Label: door jameskoster – 0.3.0 – Niet getest met de actieve versie van WooCommerce
    WooCommerce PDF Invoices & Packing Slips: door Ewout Fernhout – 2.2.4
    WooCommerce Pinterest Pin-it Button: door 61 Extensions – 1.0 – Niet getest met de actieve versie van WooCommerce
    WooCommerce Predictive Search LITE: door a3rev Software – 4.2.1 – Niet getest met de actieve versie van WooCommerce
    WooCommerce Product Archive Customiser: door jameskoster – 1.0.5 – Niet getest met de actieve versie van WooCommerce
    WooCommerce Product CSS3 Tags: door Terry Tsang – 1.0.4 – Niet getest met de actieve versie van WooCommerce
    WooCommerce Smart Sale Badge: door Hugh Lashbrooke – 1.1 – Niet getest met de actieve versie van WooCommerce
    WooCommerce VAT: door WP Doze – 1.0.1 – Niet getest met de actieve versie van WooCommerce
    WooCommerce: door Automattic – 3.5.1
    WP Mail SMTP: door WPForms – 1.3.3
    WP reCaptcha Integration: door JΓΆrn Lund – 1.2.1
    WP Super Cache: door Automattic – 1.6.4
    YITH WooCommerce Ajax Product Filter: door YITH – 3.6.1
    YITH WooCommerce Wishlist: door YITH – 2.2.5
    YITH WooCommerce Zoom Magnifier: door YITH – 1.3.5
    
    ### Settings ###
    
    API Enabled: βœ”
    Force SSL: –
    Currency: EUR (€)
    Currency Position: left_space
    Thousand Separator: .
    Decimal Separator: ,
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    external (external-2)
    grouped (grouped)
    grouped (grouped-2)
    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)
    
    ### WC Pages ###
    
    Winkelbasis: #4 - /shop/
    Winkelmand: #5 - /winkelwagen/
    Afrekenen: #6 - /checkout/
    Mijn account: #7 - /mijn-account/
    Algemene voorwaarden: #642 - /algemene-voorwaarden/
    
    ### Theme ###
    
    Name: Maya Shop
    Version: 2.5.2
    Author URL: http://yithemes.com/
    Child Theme: ❌ – Als je wijzigingen aanbrengt in WooCommerce of in een hoofdthema dat je niet zelf gebouwd hebt
    raden we het gebruik van een child thema aan. Zie: Hoe maak je een child thema
    
    WooCommerce Support: βœ”
    
    ### Templates ###
    
    Overrides: –
    
    Thread Starter Anonymous User 14008068

    (@anonymized-14008068)

    found anything in this WC System Status Report??

    Not really. Is 2.5.2 the newest version?

    Is shortcodes-woocommerce.php part of the theme or is it somewhere else?

    Thread Starter Anonymous User 14008068

    (@anonymized-14008068)

    no, 2.5.2 isn’t the newest version
    and yes, shortcodes-woocommerce.php is part of the theme

    Then you need to contact the theme author.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘website down since update php 7.2’ is closed to new replies.