• Reece

    (@firstclasscode)


    Hello,

    Using the latest WooCommerce & WordPress. We keep randomly running into a blank add new product page. This is the source of the blank page.

    At first I thought it was Jetpack causing it because when I disabled the plugin it started working again. However, with Jetpack completely removed from the server the issue is back.

    <!DOCTYPE html>
    <!--[if IE 8]>
    <html xmlns="https://www.w3.org/1999/xhtml" class="ie8 wp-toolbar"  lang="en-US">
    <![endif]-->
    <!--[if !(IE 8) ]><!-->
    <html xmlns="https://www.w3.org/1999/xhtml" class="wp-toolbar"  lang="en-US">
    <!--<![endif]-->
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Add New Product ? [REDACTED] — WordPress</title>
    <script type="text/javascript">
    addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
    var ajaxurl = '/wp-admin/admin-ajax.php',
    	pagenow = 'product',
    	typenow = 'product',
    	adminpage = 'post-new-php',
    	thousandsSeparator = ',',
    	decimalPoint = '.',
    	isRtl = 0;
    </script>
    <meta name="viewport" content="width=device-width,initial-scale=1.0">

    https://www.ads-software.com/plugins/woocommerce/

Viewing 14 replies - 1 through 14 (of 14 total)
  • Thread Starter Reece

    (@firstclasscode)

    When it does start working again here is the next line of code:
    <link rel="stylesheet" href="https://[REDACTED].com/wp-includes/js/thickbox/thickbox.css" type="text/css" media="screen" />

    Plugin Contributor Mike Jolley

    (@mikejolley)

    Thread Starter Reece

    (@firstclasscode)

    Mike,

    I tried your suggestion but came up empty handed.
    No errors, no out of memory notifications.

    I had the server admin check the out of memory logs, he said nothing there.

    I disabled all plugins 1 by 1 and it still loads VERY slow (6 second TTFB) but only on the Add new product page.

    It’s either slow, or blank. Which is getting to be a pain in the butt.
    All other pages for the woocommerce plugin load extremely fast.
    We are running on 6GB of RAM just for the WordPress installation.

    Any ideas?

    Thank you
    -Reece

    Plugin Contributor Mike Jolley

    (@mikejolley)

    When it does load, what comes after the <meta name="viewport" content="widt lines?

    Thread Starter Reece

    (@firstclasscode)

    Mike,

    So it turns out WordPress has a separate memory limit for the admin side of things. I boosted it to 4GB and the blank pages have stopped. However, it still takes 6 seconds for TTFB on the add a product page.

    I ran a query monitor and none of the database queries were even close to a full second. So I can’t really imagine why this is happening.

    Here is the next bit of code:

    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <link rel="stylesheet" href="https://[].com/wp-includes/js/thickbox/thickbox.css" type="text/css" media="screen" />
    <script type="text/javascript">
    		var tb_pathToImage = "https://[].com/wp-includes/js/thickbox/loadingAnimation.gif";
    	    var tb_closeImage = "https://[].com/wp-includes/js/thickbox/tb-close.png";
    	    </script>

    Thank you, your help is greatly appreciated.

    Plugin Contributor Mike Jolley

    (@mikejolley)

    So that code was unrelated – it must have just been timeout/memory. Care to share what you’re running: https://www.ads-software.com/support/topic/before-posting-gather-the-following-details?replies=1

    Thread Starter Reece

    (@firstclasscode)

    Mike,

    Yes, the blank pages seem to have been a memory issue. The load time is the only part of the issue left now.

    I was thinking because of the high number of attributes we have it could be that but editing a product or opening the attributes page does not even take that long. Maybe 1 – 2 seconds.

    Thank you!

    ### WordPress Environment ###
    
    Home URL: https://tricksupply.com
    Site URL: https://tricksupply.com
    WC Version: 2.5.5
    Log Directory Writable: ?
    WP Version: 4.5.2
    WP Multisite: –
    WP Memory Limit: 5 GB
    WP Debug Mode: –
    Language: en_US
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 5.4.45
    PHP Post Max Size: 250 MB
    PHP Time Limit: 300
    PHP Max Input Vars: 3000
    SUHOSIN Installed: –
    MySQL Version: 5.6.30
    Max Upload Size: 250 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 2.5.5
    :
    woocommerce_sessions: ?
    woocommerce_api_keys: ?
    woocommerce_attribute_taxonomies: ?
    woocommerce_termmeta: ?
    woocommerce_downloadable_product_permissions: ?
    woocommerce_order_items: ?
    woocommerce_order_itemmeta: ?
    woocommerce_tax_rates: ?
    woocommerce_tax_rate_locations: ?
    
    ### Active Plugins (33) ###
    
    Admin Menu Editor: by Janis Elsts – 1.6.2
    Contact Form 7 MailChimp Extension: by Renzo Johnson – 0.4.29
    Contact Form 7: by Takayuki Miyoshi – 4.4.2
    Woocommerce Badges Managment - by Gema75: by Gema75 – 4.0
    Google Analytics Dashboard for WP: by Alin Marcu – 4.9.3.1
    JP Sharing: by JP – 3.9.6
    Murphy's Magic (1.2.10): by Blaine Sherman – 1.2.10 build 082115
    PayPal for WooCommerce: by Angell EYE – 1.2.0
    Really Simple SSL: by Rogier Lankhorst – 2.3.7
    Regenerate Thumbnails: by Alex Mills (Viper007Bond) – 2.2.6
    WP FAQ: by WP Online Support – 3.2.3
    Easy Updates Manager: by Easy Updates Manager Team – 6.1.0
    UpdraftPlus - Backup/Restore: by UpdraftPlus.Com
    DavidAnderson – 1.12.12
    
    User Access Shortcodes: by WP Darko – 2.1
    Widget Context: by Kaspars Dambis – 1.0.3
    Woo Calculate Total: by hellodev.us – 1.0
    Woocommerce Exclude Categories PRO: by Alvaro Neto – 2.0
    WooChimp: by RightPress – 2.1
    WooCommerce Best Selling: by IndoWebKreasi – 1.0.4
    WooCommerce Checkout Add-Ons: by WooThemes / SkyVerge – 1.7.0 – 1.7.1 is available
    WooCommerce PDF Invoice: by RightPress – 3.0.2
    WooCommerce Role Based Methods: by WPBackOffice – 2.0.8
    WooCommerce USPS Shipping: by WooThemes – 4.3.2
    WooCommerce Show Attributes: by Isabel Castillo – 1.5
    WooWaitlist: by WPCream.com – 3.0.10
    WooCommerce: by WooThemes – 2.5.5
    Shipping Details for WooCommerce: by PatSaTECH – 1.7.0
    WooThemes Helper: by WooThemes – 1.6.2
    Yoast SEO: by Team Yoast – 3.2.5
    WP All Import Pro: by Soflyy – 4.3.0
    WP All Import - WooCommerce Add-On Pro: by Soflyy – 2.2.9
    MailPoet Newsletters: by MailPoet – 2.7.1
    YITH WooCommerce Wishlist: by YITHEMES – 2.0.15
    
    ### Settings ###
    
    Force SSL: ?
    Currency: USD ($)
    Currency Position: left_space
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    
    ### API ###
    
    API Enabled: ?
    API Version: 3.1.0
    
    ### WC Pages ###
    
    Shop Base: #7 - /shop/
    Cart: #8 - /cart/
    Checkout: #9 - /checkout/
    My Account: #10 - /my-account/
    
    ### Taxonomies ###
    
    Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    ### Theme ###
    
    Name: Canvas
    Version: 5.9.22
    Author URL: https://www.woothemes.com/
    Child Theme: ? – If you're modifying WooCommerce on a parent theme you didn't build personally
    then we recommend using a child theme. See: How to create a child theme
    
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: –
    Plugin Contributor Mike Jolley

    (@mikejolley)

    Does disabling any of the WC extensions help, and how many attributes are we talking?

    Thread Starter Reece

    (@firstclasscode)

    Mike,

    I disabled all of them 1 by 1, and started with any that load on the add a product screen.

    We only have 4 different attributes, but 16,000 products so the amount of terms for each attribute is very high.

    Thanks
    -Reece

    Plugin Contributor Mike Jolley

    (@mikejolley)

    Hmm that may be it actually. The attributes panel does load in terms for display on the attributes tab. I’d wonder if that were the reason here.

    Thread Starter Reece

    (@firstclasscode)

    Mike,

    Is there any way to stop the terms from loading on page load, but rather only once an attribute has actually been added to the product?

    …or if the attribute is text input and not select to not load any auto suggestions?

    When we add products we do not re-use any of the same terms. Which is why we have so many.

    Thanks!

    Plugin Contributor Mike Jolley

    (@mikejolley)

    So only the terms are loaded for the attributes set on the product. Not attributes that are unassigned.

    The other query is to get all attribute taxonomies https://github.com/woothemes/woocommerce/blob/master/includes/admin/meta-boxes/class-wc-meta-box-product-data.php#L421-L432 but if that were slow, query monitor would tell you.

    Thread Starter Reece

    (@firstclasscode)

    Mike,

    So then what could be causing it here when we are adding a new product?
    No terms have been assigned to it.

    Should I get you a screenshot of the Query Monitor report on that page?

    Thanks!

    Plugin Contributor Mike Jolley

    (@mikejolley)

    Sure I can look. Not sure what else to suggest..

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Blank Add New Product Page’ is closed to new replies.