Forum Replies Created

Viewing 15 replies - 1 through 15 (of 53 total)
  • Hi Manuel, I fully second you!! It’s a pitty to see that this once good plugin has been turned into an annoyance and datacollector.

    Thread Starter Steven

    (@stgoos)

    Thanks for the feedback @luminus.

    I already checked with One.com but they keep it very much in the dark. They also still haven’t provided me the server utilization data for the 60 minutes I’ve asked them and which they agreed to provide. So I do now expect One.com have over-provisioned the host server a bit too much and I feel they don’t have actual memory reservations for their hosting packages…
    I already started to discuss this with the others to see if they are okay with moving over to another host of which I now it works with actual memory reservations and no over-provisioning of the host servers.

    Thread Starter Steven

    (@stgoos)

    Hi Luminus,

    Thanks for your input. Yes – it’s indeed something I’m looking into, but is their a way to somehow calculate the requirements?

    Eg. for a fully clean install of WordPress + WooCommerce, how much memory is needed per user? And how much CPU power is needed per x amount of users?

    Of course, all very rough ball point calculations as every server is configured differently and there will always be some plugins in use.

    Thread Starter Steven

    (@stgoos)

    I understand – always a problem when different server configurations result in different representation of a data element. In my case the 2GB is correct for the hosting package and the WordPress installation is using less than the full available amount of it.

    Since version 2.5 the default memory limit for WordPress is set to 40MB or 64MB for a multisite installation). It’s also in the WordPress documentation but this was my first hit: https://www.cloudaccess.net/fresh/blog/entry/2016/06/01/wordpress-memory-limits.html

    So from that point if would make sense to just look at both

    define('WP_MEMORY_LIMIT', '256M');
    define('WP_MAX_MEMORY_LIMIT', '512M');

    when you do the calculations instead of the available capacity on the server.

    I’m not sure how much work it is to get hold of the values when defined in either the php.ini file ( memory_limit = 256M ) or the .htaccess file ( php_value memory_limit 256M ).

    • This reply was modified 1 year, 2 months ago by Steven.
    • This reply was modified 1 year, 2 months ago by Steven.
    Thread Starter Steven

    (@stgoos)

    Hi @amandasjackson,

    Will do – that’s indeed a better location, should have thought of that myself.

    Did a search and didn’t see a similar request already so opened the following:

    Additional filter / sort options for [*products*] shortcodes #25083

    Thanks.

    • This reply was modified 1 year, 11 months ago by Steven.
    Thread Starter Steven

    (@stgoos)

    Yes – that’s what I was looking for 🙂

    But then for all graphs.

    Thread Starter Steven

    (@stgoos)

    We can shake hands, it’s not my cup of tea either. In fact – it’s my first time dealing with a REST API ever 🙂

    Thread Starter Steven

    (@stgoos)

    Thanks @dynamiczach, will have a look at it tonight.

    In the meantime I’ve also started to look into the WooCommerce REST API v3 but it breaks on the first use line :/

    <?php
    
    function shortcode_wooproducts_REST_API( $args = [] )
    {
        // Normalize attribute keys, lowercase
        $args = array_change_key_case( (array)$args, CASE_LOWER );
    
        // Merge supplied $args with default $args (override defaults) 
        $args = shortcode_atts([
          'status' => 'publish',
          'stock_status' => 'instock',
        ], $args);
    
        ## https://docs.woocommerce.com/document/woocommerce-rest-api/
        ## https://woocommerce.github.io/woocommerce-rest-api-docs/?php#rest-api-keys
        ## https://woocommerce.github.io/woocommerce-rest-api-docs/?php#authentication-over-https
        
        require_once( WP_PLUGIN_DIR ."/woocommerce/vendor/autoload.php" ); //require_once( __DIR__ . '/vendor/autoload.php' );
        use Automattic\WooCommerce\Client;
        
        $woocommerce = new Client(
            'https://domain.tld/blog2',
            'ck_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', // consumer key
            'cs_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', // consumer secret
            [
                'wp_api' => true,
                'version' => 'wc/v3',
                'query_string_auth' => true // Force Basic Authentication as query string true and using under HTTPS
            ]
        );
        
        ## https://packagist.org/packages/automattic/woocommerce#3.0.0
        ## https://woocommerce.github.io/woocommerce-rest-api-docs/?php#list-all-products
        
        use Automattic\WooCommerce\HttpClient\HttpClientException;
        
        try {
            $results = $woocommerce->get( 'products', $args );
            echo '<pre><code>' . print_r( $results, true ) . '</code><pre>'; // JSON output
        } catch (HttpClientException $e) {
            echo '<pre><code>' . print_r( $e->getMessage(), true ) . '</code><pre>'; // Error message.
            echo '<pre><code>' . print_r( $e->getRequest(), true ) . '</code><pre>'; // Last request data.
            echo '<pre><code>' . print_r( $e->getResponse(), true ) . '</code><pre>'; // Last response data.
        }    
    }
    
    function shortcode_wooproducts_REST_API_init()
    {
        ## https://stackoverflow.com/questions/57372608/shortcode-doesnt-work-when-im-getting-content-from-wp-rest-api-call
    
        add_shortcode('wooproducts_REST_API', 'shortcode_wooproducts_REST_API');
    }
    add_action('init', 'shortcode_wooproducts_REST_API_init');

    Error message:

    PHP Parse error: syntax error, unexpected 'use' (T_USE) in /home/***/domain.tld/.../wp-content/themes/child/functions.php on line 19\

    • This reply was modified 1 year, 11 months ago by Steven.
    Thread Starter Steven

    (@stgoos)

    Closing this topic as resolved but would love to see it fixed in a new release of the plugin.

    Thread Starter Steven

    (@stgoos)

    Here is the code to quickly fix it.

    Remove wp-orphanage-extended-options.php line 30

    <?php screen_icon(); ?>

    as it only removes the icon from the really outdated WordPress installations 😉

    • This reply was modified 3 years, 6 months ago by Steven. Reason: minor tweak for readability
    • This reply was modified 3 years, 6 months ago by Steven.
    • This reply was modified 3 years, 6 months ago by Steven.
    Thread Starter Steven

    (@stgoos)

    Hi Barry,

    Thanks for the feedback. I thought I was doing that however (in my enthusiasm to set up the site) I was actually dragging a PDF document into the top section which seems to be a regular post section therefor using the regular upload process :S

    See: https://imgur.com/dJx7eOV

    Does it actually makes sense to have that post section on that page / does it have any purpose for DLM?

    Thanks for the hint and glad to see that it works as it should work.

    Btw – when I delete a download the file remains on the server (in /dlm_uploads/) and it is still available through the media manager. is that the normal behavior?

    Cheers,

    Steven

    Me too 🙂

    I’ve WordPress installed in a subfolder called wp so I see the following base url https://domain.tld/wp in the Authentication Permalinks and Authentication Redirects sections on the Settings / Permalinks page.

    Ideally I end up with permalinks like:
    https://domain.tld/login/
    https://domain.tld/register/
    https://domain.tld/recover/
    https://domain.tld/logout/

    And redirects like:
    https://domain.tld/

    If it’s not possible with the plugin but you do happen to know how to do this via RewriteRules in .htaccess and that would be awesome too.

    Thanks!

    @amazing2061 @ahortin thanks for your threat here, was already struggling with this myself for a while as well and tried to fix it by writting too much PHP code myself for this… 😉

    Anyway, your conversation set me on track for a full CSS solution. So far this is working for me on my localhost but will do some further testing in the coming days.

    I’ve used an image with the width of 1290px, matching the boxed layout content wrapper width when it’s at the max size. I’ve yet to figure out how I can get a smaller image to size to the max width of 1290px…

    In the comments I’ve added the prerequisites with regards to the settings of the row / column / single image.

    /*
    FIXING NOT RESPONSIVE WIDTH OF SINGLE IMAGES IN VISUAL COMPOSER 
    by golabs.nl
    
    Row Settings
      Row stretch       : Stretch row and content (no paddings)
      Content position  : Middle
    Column Setting
      <no changes needed>
    Single Image Settings
      Image size        : full
      Image alignment   : Center
    */ 
    .page .wpb_single_image .vc_figure {
        display: inherit;
    }
    
    /* Base (1180 Grid) */
    @media only screen and (min-width: 1290px) and (max-width: 1390px) { }
    
    /* Desktop (960 Grid) */
    @media only screen and (min-width: 960px) and (max-width: 1389px) { 
      .vc_single_image-wrapper img { max-width: 1020px !important; }
    }
    
    @media only screen and (min-width: 769px) and (max-width: 1040px) {
      .vc_single_image-wrapper img { max-width: 100% !important; }
      .vc_col-sm-12.wpb_column.column_container { padding: 0 !important; } 
    }
    
    /* Tablet (Portrait) */
        /* Note: Design for a width of 768px */
    @media only screen and (min-width: 768px) and (max-width: 990px) {
      .vc_single_image-wrapper img { max-width: 100% !important; }
      .vc_col-sm-12.wpb_column.column_container { padding: 0 !important; margin-bottom: 0 !important; }
    }
    
    /* Mobile (Portrait) */
        /* Note: Design for a width of 320px */
    @media only screen and (max-width: 767px) {
      .vc_single_image-wrapper img { max-width: 100% !important; }
      .vc_col-sm-12.wpb_column.column_container { padding: 0 !important; margin-bottom: 0 !important; }
    }
    
    /* Mobile (Landscape) */
        /* Note: Design for a width of 480px */
    @media only screen and (min-width: 480px) and (max-width: 767px) {
      .vc_single_image-wrapper img { max-width: 100% !important; }
      .vc_col-sm-12.wpb_column.column_container { padding: 0 !important; margin-bottom: 0 !important; }
    }

    No problem with this setup for me – it just works fine on my shop. Check if disabling all other plugins except for Members and WooCommerce helps. Also give it a try on a clean install.

    Having the same issue as Ivladskillz.

    Already disabled all other plugins but unfortunately no change.

    @adispiac you mentioned a possible issue with the servers access/security rules… what are you thinking of? Because when I disable the Profile Builder plugin I don’t have an issue at all login on to the website…

Viewing 15 replies - 1 through 15 (of 53 total)