Forum Replies Created

Viewing 15 replies - 121 through 135 (of 360 total)
  • This should definitely be an opt-in/opt-out option for those of us that are impacted by GDPR!

    Thread Starter Will Stocks

    (@willstockstech)

    @taisa1984 – I’m running 1.8.0 and I’m still seeing API errors. Not only that, there’s no direct Gutenberg compatibility – you have to go through a lot of work to generate the shortcode and then add a shortcode block (which hasn’t always worked for me!)

    There’s no guaranteed support, which is very sad indeed! A lot of good people, reliant on this method of marketing, will have lost a lot of time and money – as well as risking their hosting company stopping their site altogether (some do for high CPU)

    @amazonlinkbuilder – we need some insight here πŸ™

    Thread Starter Will Stocks

    (@willstockstech)

    @acronimo that is the general consensus in all of the existing threads since 1.9.2 (as well as the Plugin Rating comments) by the looks of it.

    Also, I have tried 1.9.2 on MULTIPLE different hosts (just to check), including: Managed Hosting, VPS, Shared Hosting, dedicated servers across multiple different hosting companies (AWS, DigitalOcean, Linode, Bluehost, SiteGround, Cloudways, 1&1 Hosting, GoDaddy and other hosting companies) and every single time, CPU usage goes through the roof (visualised through monitoring) or I get contacted about high CPU usage.

    I’ve tried across both PHP 7.2 and 7.3, Nginx and apache (and both combined)

    Really need @amazonlinkbuilder to offer some insight 😣

    Thread Starter Will Stocks

    (@willstockstech)

    No worries – thanks for taking a look! πŸ˜€

    It’s a big’gun:

    # BEGIN W3TC Browser Cache
    <IfModule mod_mime.c>
        AddType text/css .css
        AddType text/x-component .htc
        AddType application/x-javascript .js
        AddType application/javascript .js2
        AddType text/javascript .js3
        AddType text/x-js .js4
        AddType text/html .html .htm
        AddType text/richtext .rtf .rtx
        AddType image/svg+xml .svg
        AddType text/plain .txt
        AddType text/xsd .xsd
        AddType text/xsl .xsl
        AddType text/xml .xml
        AddType video/asf .asf .asx .wax .wmv .wmx
        AddType video/avi .avi
        AddType image/bmp .bmp
        AddType application/java .class
        AddType video/divx .divx
        AddType application/msword .doc .docx
        AddType application/vnd.ms-fontobject .eot
        AddType application/x-msdownload .exe
        AddType image/gif .gif
        AddType application/x-gzip .gz .gzip
        AddType image/x-icon .ico
        AddType image/jpeg .jpg .jpeg .jpe
        AddType image/webp .webp
        AddType application/json .json
        AddType application/vnd.ms-access .mdb
        AddType audio/midi .mid .midi
        AddType video/quicktime .mov .qt
        AddType audio/mpeg .mp3 .m4a
        AddType video/mp4 .mp4 .m4v
        AddType video/mpeg .mpeg .mpg .mpe
        AddType video/webm .webm
        AddType application/vnd.ms-project .mpp
        AddType application/x-font-otf .otf
        AddType application/vnd.ms-opentype ._otf
        AddType application/vnd.oasis.opendocument.database .odb
        AddType application/vnd.oasis.opendocument.chart .odc
        AddType application/vnd.oasis.opendocument.formula .odf
        AddType application/vnd.oasis.opendocument.graphics .odg
        AddType application/vnd.oasis.opendocument.presentation .odp
        AddType application/vnd.oasis.opendocument.spreadsheet .ods
        AddType application/vnd.oasis.opendocument.text .odt
        AddType audio/ogg .ogg
        AddType application/pdf .pdf
        AddType image/png .png
        AddType application/vnd.ms-powerpoint .pot .pps .ppt .pptx
        AddType audio/x-realaudio .ra .ram
        AddType image/svg+xml .svg .svgz
        AddType application/x-shockwave-flash .swf
        AddType application/x-tar .tar
        AddType image/tiff .tif .tiff
        AddType application/x-font-ttf .ttf .ttc
        AddType application/vnd.ms-opentype ._ttf
        AddType audio/wav .wav
        AddType audio/wma .wma
        AddType application/vnd.ms-write .wri
        AddType application/font-woff .woff
        AddType application/font-woff2 .woff2
        AddType application/vnd.ms-excel .xla .xls .xlsx .xlt .xlw
        AddType application/zip .zip
    </IfModule>
    <IfModule mod_expires.c>
        ExpiresActive On
        ExpiresByType text/css A31536000
        ExpiresByType text/x-component A31536000
        ExpiresByType application/x-javascript A31536000
        ExpiresByType application/javascript A31536000
        ExpiresByType text/javascript A31536000
        ExpiresByType text/x-js A31536000
        ExpiresByType text/html A3600
        ExpiresByType text/richtext A3600
        ExpiresByType image/svg+xml A3600
        ExpiresByType text/plain A3600
        ExpiresByType text/xsd A3600
        ExpiresByType text/xsl A3600
        ExpiresByType text/xml A3600
        ExpiresByType video/asf A31536000
        ExpiresByType video/avi A31536000
        ExpiresByType image/bmp A31536000
        ExpiresByType application/java A31536000
        ExpiresByType video/divx A31536000
        ExpiresByType application/msword A31536000
        ExpiresByType application/vnd.ms-fontobject A31536000
        ExpiresByType application/x-msdownload A31536000
        ExpiresByType image/gif A31536000
        ExpiresByType application/x-gzip A31536000
        ExpiresByType image/x-icon A31536000
        ExpiresByType image/jpeg A31536000
        ExpiresByType image/webp A31536000
        ExpiresByType application/json A31536000
        ExpiresByType application/vnd.ms-access A31536000
        ExpiresByType audio/midi A31536000
        ExpiresByType video/quicktime A31536000
        ExpiresByType audio/mpeg A31536000
        ExpiresByType video/mp4 A31536000
        ExpiresByType video/mpeg A31536000
        ExpiresByType video/webm A31536000
        ExpiresByType application/vnd.ms-project A31536000
        ExpiresByType application/x-font-otf A31536000
        ExpiresByType application/vnd.ms-opentype A31536000
        ExpiresByType application/vnd.oasis.opendocument.database A31536000
        ExpiresByType application/vnd.oasis.opendocument.chart A31536000
        ExpiresByType application/vnd.oasis.opendocument.formula A31536000
        ExpiresByType application/vnd.oasis.opendocument.graphics A31536000
        ExpiresByType application/vnd.oasis.opendocument.presentation A31536000
        ExpiresByType application/vnd.oasis.opendocument.spreadsheet A31536000
        ExpiresByType application/vnd.oasis.opendocument.text A31536000
        ExpiresByType audio/ogg A31536000
        ExpiresByType application/pdf A31536000
        ExpiresByType image/png A31536000
        ExpiresByType application/vnd.ms-powerpoint A31536000
        ExpiresByType audio/x-realaudio A31536000
        ExpiresByType image/svg+xml A31536000
        ExpiresByType application/x-shockwave-flash A31536000
        ExpiresByType application/x-tar A31536000
        ExpiresByType image/tiff A31536000
        ExpiresByType application/x-font-ttf A31536000
        ExpiresByType application/vnd.ms-opentype A31536000
        ExpiresByType audio/wav A31536000
        ExpiresByType audio/wma A31536000
        ExpiresByType application/vnd.ms-write A31536000
        ExpiresByType application/font-woff A31536000
        ExpiresByType application/font-woff2 A31536000
        ExpiresByType application/vnd.ms-excel A31536000
        ExpiresByType application/zip A31536000
    </IfModule>
    <IfModule mod_brotli.c>
        <IfModule mod_filter.c>
            AddOutputFilterByType BROTLI_COMPRESS text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/bmp application/java application/msword application/vnd.ms-fontobject application/x-msdownload image/x-icon image/webp application/json application/vnd.ms-access video/webm application/vnd.ms-project application/x-font-otf application/vnd.ms-opentype application/vnd.oasis.opendocument.database application/vnd.oasis.opendocument.chart application/vnd.oasis.opendocument.formula application/vnd.oasis.opendocument.graphics application/vnd.oasis.opendocument.presentation application/vnd.oasis.opendocument.spreadsheet application/vnd.oasis.opendocument.text audio/ogg application/pdf application/vnd.ms-powerpoint image/svg+xml application/x-shockwave-flash image/tiff application/x-font-ttf application/vnd.ms-opentype audio/wav application/vnd.ms-write application/font-woff application/font-woff2 application/vnd.ms-excel
        <IfModule mod_mime.c>
            # BROTLI_COMPRESS by extension
            AddOutputFilter BROTLI_COMPRESS js css htm html xml
        </IfModule>
        </IfModule>
    </IfModule>
    <IfModule mod_deflate.c>
        <IfModule mod_filter.c>
            AddOutputFilterByType DEFLATE text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/bmp application/java application/msword application/vnd.ms-fontobject application/x-msdownload image/x-icon image/webp application/json application/vnd.ms-access video/webm application/vnd.ms-project application/x-font-otf application/vnd.ms-opentype application/vnd.oasis.opendocument.database application/vnd.oasis.opendocument.chart application/vnd.oasis.opendocument.formula application/vnd.oasis.opendocument.graphics application/vnd.oasis.opendocument.presentation application/vnd.oasis.opendocument.spreadsheet application/vnd.oasis.opendocument.text audio/ogg application/pdf application/vnd.ms-powerpoint image/svg+xml application/x-shockwave-flash image/tiff application/x-font-ttf application/vnd.ms-opentype audio/wav application/vnd.ms-write application/font-woff application/font-woff2 application/vnd.ms-excel
        <IfModule mod_mime.c>
            # DEFLATE by extension
            AddOutputFilter DEFLATE js css htm html xml
        </IfModule>
        </IfModule>
    </IfModule>
    <FilesMatch "\.(css|htc|less|js|js2|js3|js4|CSS|HTC|LESS|JS|JS2|JS3|JS4)$">
        FileETag MTime Size
        <IfModule mod_headers.c>
             Header unset Set-Cookie
        </IfModule>
    </FilesMatch>
    <FilesMatch "\.(html|htm|rtf|rtx|svg|txt|xsd|xsl|xml|HTML|HTM|RTF|RTX|SVG|TXT|XSD|XSL|XML)$">
        FileETag MTime Size
        <IfModule mod_headers.c>
            Header append Vary User-Agent env=!dont-vary
        </IfModule>
    </FilesMatch>
    <FilesMatch "\.(asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx|eot|exe|gif|gz|gzip|ico|jpg|jpeg|jpe|webp|json|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|webm|mpp|otf|_otf|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|png|pot|pps|ppt|pptx|ra|ram|svg|svgz|swf|tar|tif|tiff|ttf|ttc|_ttf|wav|wma|wri|woff|woff2|xla|xls|xlsx|xlt|xlw|zip|ASF|ASX|WAX|WMV|WMX|AVI|BMP|CLASS|DIVX|DOC|DOCX|EOT|EXE|GIF|GZ|GZIP|ICO|JPG|JPEG|JPE|WEBP|JSON|MDB|MID|MIDI|MOV|QT|MP3|M4A|MP4|M4V|MPEG|MPG|MPE|WEBM|MPP|OTF|_OTF|ODB|ODC|ODF|ODG|ODP|ODS|ODT|OGG|PDF|PNG|POT|PPS|PPT|PPTX|RA|RAM|SVG|SVGZ|SWF|TAR|TIF|TIFF|TTF|TTC|_TTF|WAV|WMA|WRI|WOFF|WOFF2|XLA|XLS|XLSX|XLT|XLW|ZIP)$">
        FileETag MTime Size
        <IfModule mod_headers.c>
             Header unset Set-Cookie
        </IfModule>
    </FilesMatch>
    <FilesMatch "\.(bmp|class|doc|docx|eot|exe|ico|webp|json|mdb|webm|mpp|otf|_otf|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|pot|pps|ppt|pptx|svg|svgz|swf|tif|tiff|ttf|ttc|_ttf|wav|wri|woff|woff2|xla|xls|xlsx|xlt|xlw|BMP|CLASS|DOC|DOCX|EOT|EXE|ICO|WEBP|JSON|MDB|WEBM|MPP|OTF|_OTF|ODB|ODC|ODF|ODG|ODP|ODS|ODT|OGG|PDF|POT|PPS|PPT|PPTX|SVG|SVGZ|SWF|TIF|TIFF|TTF|TTC|_TTF|WAV|WRI|WOFF|WOFF2|XLA|XLS|XLSX|XLT|XLW)$">
        <IfModule mod_headers.c>
             Header unset Last-Modified
        </IfModule>
    </FilesMatch>
    <IfModule mod_headers.c>
        Header set Referrer-Policy "no-referrer-when-downgrade"
    </IfModule>
    # END W3TC Browser Cache
    
    # BEGIN W3TC Page Cache core
    <IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteBase /
        RewriteRule ^(.*\/)?w3tc_rewrite_test([0-9]+)/?$ $1?w3tc_rewrite_test=1 [L]
        RewriteCond %{HTTPS} =on
        RewriteRule .* - [E=W3TC_SSL:_ssl]
        RewriteCond %{SERVER_PORT} =443
        RewriteRule .* - [E=W3TC_SSL:_ssl]
        RewriteCond %{HTTP:X-Forwarded-Proto} =https [NC]
        RewriteRule .* - [E=W3TC_SSL:_ssl]
        RewriteCond %{HTTP:Accept-Encoding} br
        RewriteRule .* - [E=W3TC_ENC:_br]
        RewriteCond %{HTTP_COOKIE} w3tc_preview [NC]
        RewriteRule .* - [E=W3TC_PREVIEW:_preview]
        RewriteCond %{REQUEST_METHOD} !=POST
        RewriteCond %{QUERY_STRING} =""
        RewriteCond %{REQUEST_URI} \/$
        RewriteCond %{HTTP_COOKIE} !(comment_author|wp\-postpass|w3tc_logged_out|wordpress_logged_in|wptouch_switch_toggle) [NC]
        RewriteCond "%{DOCUMENT_ROOT}/wp-content/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index%{ENV:W3TC_SSL}%{ENV:W3TC_PREVIEW}.html%{ENV:W3TC_ENC}" -f
        RewriteRule .* "/wp-content/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index%{ENV:W3TC_SSL}%{ENV:W3TC_PREVIEW}.html%{ENV:W3TC_ENC}" [L]
        RewriteCond %{REQUEST_METHOD} !=POST
        RewriteCond %{QUERY_STRING} =""
        RewriteCond %{REQUEST_URI} \/$
        RewriteCond %{HTTP_COOKIE} !(comment_author|wp\-postpass|w3tc_logged_out|wordpress_logged_in|wptouch_switch_toggle) [NC]
        RewriteCond "%{DOCUMENT_ROOT}/wp-content/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index%{ENV:W3TC_SSL}%{ENV:W3TC_PREVIEW}.xml%{ENV:W3TC_ENC}" -f
        RewriteRule .* "/wp-content/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index%{ENV:W3TC_SSL}%{ENV:W3TC_PREVIEW}.xml%{ENV:W3TC_ENC}" [L]
    </IfModule>
    # END W3TC Page Cache core
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress
    Thread Starter Will Stocks

    (@willstockstech)

    @vmarko don’t suppose you’re able to advise for me are ya? πŸ˜€ xD

    Worth me noting @vmarko that when I set up my server (built from the ground up myself a few months ago – Ubuntu, nginx, apache2, php7.3-fpm, mysql5.7, redis-server) I had a similar looking stacktrace complaining about wpdb and DbCache_Wpdb, that related back to the mysql/mysqli extension for PHP7.3 – I can’t remember now, but it either wasn’t installed by default, or wasn’t compatible or something went awry. I spent a few hours on it, fresh installs of PHP 7.3, the mysql/mysqli/pdomysql and in the end I think the PDO driver was what sorted it for me…
    Since then, I’ve had no compatibility issues with PHP7.3 πŸ™‚ Just thought it was worth noting!

    Thread Starter Will Stocks

    (@willstockstech)

    All sorted – thanks guys! In the end I went with:

    add_action('login_head', 'wpws_custom_login_scripts', 1);
    function wpws_custom_login_scripts()
    {
        echo '<style>
            input#user_login, 
    	input#user_pass {
    	    text-align: center;
    	}
    
    	::-webkit-input-placeholder {
                text-align: center;
                vertical-align: middle;
                opacity: .2;
    	}
    
    	:-moz-placeholder {
                text-align: center;  
                vertical-align: middle;
                opacity: .2;
    	}
    
    	::-moz-placeholder {
                text-align: center;  
                vertical-align: middle;
                opacity: .2;
    	}
    
    	:-ms-input-placeholder {  
                text-align: center;
                vertical-align: middle;
                opacity: .2;
    	}
    	</style>
    	<script>
                document.addEventListener("DOMContentLoaded", function(event) { 
                    document.getElementById("user_login").placeholder="username";
                    document.getElementById("user_pass").placeholder="password";
                })
            </script>';
    }

    Quick and dirty, but does the trick – thanks for all your help! πŸ˜€

    Thread Starter Will Stocks

    (@willstockstech)

    @amazonlinkbuilder – are you able to advise at all please?

    I’m still seeing a large number of API errors being logged, upgrading to 1.9.0/1.9.1/1.9.2 makes the issues even worse and results in massive CPU resource consumption (massive number of (unnecessary?) API calls + DB updates/reads by the looks of it) which ultimately results in my server falling over!

    Is there a more “formal” support channel that I can contact to liaise/provide further details – via the associates dashboard there doesn’t seem to be anything? It seems that fundamental/core/major issue threads are going unanswered/ignored here whilst the “quick and easy” threads are getting quick responses and closed off πŸ™ I understand that, trust me – I do… but even the slightest update would go a long way here.

    I’m not the only one facing these issues, per the following few threads that are similarly related:
    https://wordpress.org/support/topic/excessive-cpu-usage-2/
    https://wordpress.org/support/topic/you-are-submitting-requests-too-quickly-6/
    https://wordpress.org/support/topic/you-are-submitting-requests-too-quickly-please-retry/
    https://wordpress.org/support/topic/see-efficiency-guidelines/
    https://wordpress.org/support/topic/call-management-or-cache/
    https://wordpress.org/support/topic/submitting-requests-too-quickly-warning/

    Thread Starter Will Stocks

    (@willstockstech)

    Hey @josevarghese – don’t suppose you happen to have an update RE: timeline do you?

    Also – sheer curiosity question – are you planning to utilise something like: https://github.com/GoogleChromeLabs/pwacompat for β€œsimplicity” or are you going down the β€œbespoke” route?

    Thread Starter Will Stocks

    (@willstockstech)

    Thanks @videousermanuals! No time wasted – a good learning curve for me πŸ™‚

    I worked out the JS and CSS I need in my case:

    document.getElementById('user_login').placeholder='username';
    document.getElementById('user_pass').placeholder='password';
    
    input#user_login, 
    input#user_pass {
        text-align: center;
    }
    
    ::-webkit-input-placeholder {
       text-align: center;
       vertical-align: middle;
       opacity: .2;
    }
    
    :-moz-placeholder {
       text-align: center;  
       vertical-align: middle;
       opacity: .5;
    }
    
    ::-moz-placeholder {
       text-align: center;  
       vertical-align: middle;
       opacity: .5;
    }
    
    :-ms-input-placeholder {  
       text-align: center;
       vertical-align: middle;
       opacity: .5;
    }
    

    Now I just need to work out how to apply it to the wp-login page only and I’m all good πŸ˜€

    • This reply was modified 7 years, 3 months ago by Will Stocks.
    Thread Starter Will Stocks

    (@willstockstech)

    Thanks @craig-at-smash-balloon – that makes some sense (although weird that IG allow private images to be viewed publically via their old API!)

    This is what I’m seeing on any browser/computer I use (not logged in to IG): https://prnt.sc/mtf7m9

    Thread Starter Will Stocks

    (@willstockstech)

    Hey @videousermanuals

    Where is login-bg1.jpg coming from? That’s not a file/folder I personally have?

    Furthermore, having a background image wouldn’t resolve the issue of either having labels, or placeholders.

    The problem is, the standard wp-login form is formatted as follows

    <label>
        <input>
    </label>

    So if you then display: none; the form label, that also removes the input box.

    I’ve hacked around this with some CSS to remove the labels, however there are no placeholder‘s as part of the standard wp-login form. Even if I used a background-image, that wouldn’t resolve the issue as when a user types in the input box, the “placeholder” would still be there as it’s part of the background, NOT an actual placeholder?

    See: https://willstocks.co.uk/ as an example.

    Thread Starter Will Stocks

    (@willstockstech)

    Hi Craig,

    Correct – there are no posts to display at the moment.

    You should be able to see the IG feed/images at the bottom? The left-most image has the fa-clone icon on top of it (top right corner of the left-most image).

    I can do:

    #sb_instagram.sbi_medium .sbi_type_carousel .sbi_photo_wrap .fa-clone {
        display: none !important;
    }

    to hide it

    You make a good point about the account being private… surely given the fact that the account is private, images shouldn’t actually _in theory_ show on the front-end of my site, given the private status?

    Thread Starter Will Stocks

    (@willstockstech)

    Hi Craig,

    Sorry – yes it was displaying a feed that has now been made private.

    I’ll pop another feed in there in a bit for you! πŸ™‚

    Thread Starter Will Stocks

    (@willstockstech)

    Cheers guys – I look forward to the future (I LOVE UB so far!!)

    I’ve seen some interesting ways to handle assets, which I don’t know if is of interest to you?

    The best I’ve seen so far (from another plugin I use) is something along the lines of (this is probably semantically incorrect… but I hope you understand):

    add_filter('the_content', function($content){
        if ( in_the_loop() && is_main_query() ){
            $this->hasContent() = (strpos($content, 'UB ID or Class here') !== false);
        } 
        return $content; 
    }, 9999, 1);

    or

    add_action('wp_footer', function(){
        $ultimateblockExists = $this->ultimateblock !== null && $this->ultimateblock->hasContent();
        if ($ultimateblockExists === true){
            $this->enqueueFrontendAssets();
        }
    }, 1);

    Again, this probably is semantically incorrect, but I’m hoping it makes some sort of sense to you… basically, it’s just a “simple” check whether the current content includes a UB block or not!

Viewing 15 replies - 121 through 135 (of 360 total)