Forum Replies Created

Viewing 15 replies - 61 through 75 (of 76 total)
  • Well, it fixed it on the cart. After checking out I get a fatal error:

    Fatal error: Call to a member function get_product() on array in /nas/content/staging/sitename/wp-content/plugins/duracelltomi-google-tag-manager/integration/woocommerce.php on line 251

    I was having this problem too

    WP 4.7.3
    WooCommerce 2.6.14
    GTM for WP 1.6

    Your patch fixed it.

    Thread Starter Dustin L.

    (@bigbugsy)

    No, unfortunately don’t know how to determine what code in the theme affects this.

    I don’t see anything overlapping in the permalink settings.

    Thread Starter Dustin L.

    (@bigbugsy)

    I’m able to resolve the 2nd issue by changing the the slug of the custom post type. The page slug and the custom post type slug were originally identical. This worked ok with WC 2.6.14 but after updating to 3.0.1 it caused this problem. Changing the custom post type slug fixes it…

    I’m going to mark this ticket as resolved and open a new ticket with more detailed info on the 1st problem.

    Thread Starter Dustin L.

    (@bigbugsy)

    Got it. Thank you.

    Forum: Plugins
    In reply to: [WP Mail Logging] PHP 7
    Dustin L.

    (@bigbugsy)

    The compatibility checker is still detecting an error in the redux framework.

    FILE: …../wp-content/plugins/wp-mail-logging/lib/vendor/redux-framework/inc/validation/preg_replace/validation_preg_replace.php
    ————————————————————————————————————————————————————–
    FOUND 1 ERROR AFFECTING 1 LINE
    ————————————————————————————————————————————————————–
    30 | ERROR | preg_replace() – /e modifier is deprecated since PHP 5.5 and removed since PHP 7.0
    ————————————————————————————————————————————————————–

    Dustin L.

    (@bigbugsy)

    I think you can achieve this by modifying the template. First, you need to determine if the person viewing the post has purchased the associated product, or if the post is not protected. Here is a somewhat messy example…

    $is_purchased = false;
    $str_products_payperpost = get_post_meta( get_the_ID(), 'woocommerce_ppp_product_id', true );
    $current_user = wp_get_current_user();
    $arr_ids_products = explode( ",", $str_products_payperpost );
    foreach ( $arr_ids_products as $id ) {
      $purchased = wc_customer_bought_product( $current_user->user_email, $current_user->ID, $id );
      // if purchased or if not proteted, show the page
      if ( $purchased || $id == '' ) {
        $is_purchased = true;
      }
    }

    Then you would wrap the custom fields in a conditional statement so they only show when appropriate. Something like this..

    <?php if( $is_purchased ){ ?>
      <div class="protected-custom-field">
        <!-- Your field here -->
      </div>
    <?php } ?>

    I went to Dashboard > Updates and clicked the “Re-install Now” button. I did this on 6 installs and haven’t noticed any problems.

    FYI – I re-installed 4.7.1 on one of our sites and that caused the alert to disappear. I confirmed wp-includes/functions.php matches the WP repo now.

    I am having the same issue. Sucuri is only alerting on that one file, not every file that was updated. I compared the file on our live sites to the WP repo and found the live version of wp-includes/functions.php doesn’t match the repo.

    Line 2367
    Live: if ( ! is_callable( ‘exif_imagetype’ ) ) {
    4.7.1 repo: if ( is_callable( ‘exif_imagetype’ ) ) {

    So this doesn’t seem to be a Sucuri issue….

    Our host is WPEngine and all of our sites were updated automatically by their system. Maybe they modified this intentionally. I contacted WPE support but they weren’t familiar with this.

    Thread Starter Dustin L.

    (@bigbugsy)

    
    ### WordPress Environment ###
    
    Home URL: https://cfdtest.dev
    Site URL: https://cfdtest.dev
    WC Version: 2.6.7
    Log Directory Writable: ?
    WP Version: 4.6.1
    WP Multisite: –
    WP Memory Limit: 512 MB
    WP Debug Mode: –
    WP Cron: ?
    Language: en_US
    
    ### Server Environment ###
    
    Server Info: Apache/2.4.12 (Win32) OpenSSL/1.0.1l PHP/5.5.24
    PHP Version: ? 5.5.24 - We recommend a minimum PHP version of 5.6. See: How to update your PHP version
    PHP Post Max Size: 512 MB
    PHP Time Limit: 600
    PHP Max Input Vars: 5000
    cURL Version: 7.40.0
    OpenSSL/1.0.1l
    
    SUHOSIN Installed: –
    MySQL Version: 5.6.24
    Max Upload Size: 512 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 2.6.7
    : 
    woocommerce_sessions: ?
    woocommerce_api_keys: ?
    woocommerce_attribute_taxonomies: ?
    woocommerce_downloadable_product_permissions: ?
    woocommerce_order_items: ?
    woocommerce_order_itemmeta: ?
    woocommerce_tax_rates: ?
    woocommerce_tax_rate_locations: ?
    woocommerce_shipping_zones: ?
    woocommerce_shipping_zone_locations: ?
    woocommerce_shipping_zone_methods: ?
    woocommerce_payment_tokens: ?
    woocommerce_payment_tokenmeta: ?
    MaxMind GeoIP Database: ? The MaxMind GeoIP Database does not exist - Geolocation will not function. You can download and install it manually from https://dev.maxmind.com/geoip/legacy/geolite/ to the path: . Scroll down to \"Downloads\" and download the \"Binary / gzip\" file next to \"GeoLite Country\"
    
    ### Active Plugins (3) ###
    
    Disable Emails: by WebAware – 1.2.5
    InfusedWoo Pro: by Mark Joseph – 3.1.3
    WooCommerce: by WooThemes – 2.6.7
    
    ### Settings ###
    
    Force SSL: –
    Currency: USD ($)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    
    ### API ###
    
    API Enabled: ?
    
    ### WC Pages ###
    
    Shop Base: #4 - /shop/
    Cart: #5 - /cart/
    Checkout: #6 - /checkout/
    My Account: #7 - /my-account/
    
    ### Taxonomies ###
    
    Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    ### Theme ###
    
    Name: Twenty Sixteen
    Version: 1.3
    Author URL: https://www.ads-software.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: –
    

    Thanks. The solution we found was to disable HHVM in order to get the Wordfence firewall working. I doubt it is worth the performance tradeoff though. Will have to do some testing..

    mountainguy2: Did you get this working with the Liqduiweb VPS? I’m having the same issue now. Do you know exactly what steps were taken to resolve this?

    Thread Starter Dustin L.

    (@bigbugsy)

    It was downloaded / updated from the WordPress repository. It’s also flagging 2.5.4 as infected now too. If I disable my virus scanner everything works as expected so I’ll go ahead and mark this as resolved.

    Thank you.

    Thread Starter Dustin L.

    (@bigbugsy)

    Thanks for the response. I found the source of the problem. I’m working on a local server on a Windows 7 machine with BitDefender Internet Security 2016 as my virus/malware scanner. It was blocking a woocommerce asset:

    The webpage at …/assets/js/admin/meta-boxes.min.js is identified as infected with malware. Virus name: Trojan.Script.652976. The webpage has been successfully blocked by Antimalware filter.

Viewing 15 replies - 61 through 75 (of 76 total)