Forum Replies Created

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter tmacka88

    (@tmacka88)

    Hi,

    Using a child theme..

    Thread Starter tmacka88

    (@tmacka88)

    Much appreciated.

    Looking forward.

    Forum: Plugins
    In reply to: [Avatar Manager] PHP 7?
    Thread Starter tmacka88

    (@tmacka88)

    Thank you.

    Thread Starter tmacka88

    (@tmacka88)

    Hi,

    Yes I use the code snippet from CSS-tricks. It works very well. No problems with cropping. Though still doesn’t work with this plugin for some reason.

    If at all possible to support SVG providing user add the code to functions.php that way you you don’t have to add non core things to the plugin. Just add it to the FAQ how to support it or something.

    There’s nothing more anyoying than an image that looks blurry.

    Thanks

    Thread Starter tmacka88

    (@tmacka88)

    Thanks that would be great. I actually found this on another forum so I can’t take the credit for it. I’ll post the link later if I can find it.

    Thank you.

    Thread Starter tmacka88

    (@tmacka88)

    Thank you very much. I can’t live without SVG haha.

    Thread Starter tmacka88

    (@tmacka88)

    Hey,

    Sorry is a little hard to get a screen shot of what I mean.

    Basically, I wish dynamically add css if Free Shipping has been determined.

    So if someone spends over $50 with a shipping class named “xyz” then they get Free shipping for any items using that shipping class.

    I would like add the CSS above dynamically if any of the free shipping rules have been met. So user has over $50 of “xyz” in cart then they nav to another product that is from shipping class “xyz”, then they will see the Free Shipping text that was added to the page via css e.g.

    .product_shipping_class-xyz .amount:after {
      content: "Free Shipping";
      display: block;
      font-size: 15px;
      color: #50D000;
    }

    Hope that makes sense.

    Basically, I want to add “Free Shipping” text to a product page when the product meets a free shipping rule. Some shipping classes are always free shipping not matter what which is easy to do, but as soon as you have a shipping class that is conditionally, I am not too sure how to create a php function if at all possible to execute css if met.

    Thanks

    mstone7,

    Just keep doing variations of these settings. Worded for me.

    Try adding jquery.js to exclude scripts, untick aggregate and try-catch.

    I am having the same issue. In addition to the images I cannot complete the checkout process using Stripe credit card.

    My error I get is:

    Please make sure your card details have been entered correctly and that your browser supports JavaScript. Developers: Please make sure that you are including jQuery and there are no JavaScript errors on the page.

    If I disable Optimize JavaScript Code then everything is fine.

    I have tried addingjquery.js to the exclude scripts section in addition to turning Add try-catch wrapping on. But neither fix the issue.
    I then disabled both Force JavaScript in <head> and Also aggregate inline JS.

    This seamed to work. Do you think this could cause any issues like this as it recommends to active Force JS in<head> if Also aggregate inline JS is deactivated.

    Ended up de-activating Add try-catch wrapping and removed jquery.js from the exclude scripts list and tested it. This worked fine. So for me it was de-activating the Force JavaScript in <head>.

    Thanks

    Hey,

    I upgrade plugin to latest then noticed that my wordpress.conf was missing the .* and added it.

    I ran:

    sudo fail2ban-regex /var/log/auth.log /etc/fail2ban/filter.d/wordpress.conf

    Running tests
    =============

    Use failregex file : /etc/fail2ban/filter.d/wordpress.conf
    Use log file : /var/log/auth.log

    Results
    =======

    Failregex: 36 total
    |- #) [# of hits] regular expression
    | 1) [36] ^\s*(<[^.]+\.[^.]+>)?\s*(?:\S+ )?(?:kernel: \[ *\d+\.\d+\] )?(?:@vserver_\S+ )?(?:(?:\[\d+\])?:\s+[\[\(]?(?:wordpress|wp)(?:\(\S+\))?[\]\)]?:?|[\[\(]?(?:wordpress|wp)(?:\(\S+\))?[\]\)]?:?(?:\[\d+\])?:?)?\s(?:\[ID \d+ \S+\])?\s*Authentication attempt for unknown user .* from <HOST>$

    -
    
    Ignoreregex: 0 total
    
    Date template hits:
    |- [# of hits] date format
    |  [768] MONTH Day Hour:Minute:Second

    Lines: 768 lines, 0 ignored, 36 matched, 732 missed
    Missed line(s): too many to print. Use –print-all-missed to print all 732 lines

    Which work by picking up the failed attempts finally.

    However, Fail2Ban is still not blocking any IP’s .

    sudo fail2ban-client status wordpress

    Status for the jail: wordpress
    |- filter
    | |- File list: /var/log/auth.log
    | |- Currently failed: 0
    | `- Total failed: 0

    - action
       |- Currently banned:	0
       |

    – IP list:
    `- Total banned: 0

    I added this to my functions.php as per invisnet:
    WP_FAIL2BAN_SYSLOG_SHORT_TAG

    Because of this do I need to change the filter in the jail or wordpress.conf?

    sudo tail -n 25 /var/log/auth.log

    Mar 30 19:41:43 server-name wp(server-name.com.au)[1752]: Authentication attempt for unknown user admin from 123.123.123.123
    Mar 30 19:41:49 server-name wp(server-name.com.au)[1705]: Authentication attempt for unknown user test from 123.123.123.123
    Mar 30 19:41:53 server-name wp(server-name.com.au)[2198]: Authentication attempt for unknown user test from 123.123.123.123
    Mar 30 19:41:57 server-name wp(server-name.com.au)[1752]: Authentication attempt for unknown user test from 123.123.123.123
    Mar 30 19:42:06 server-name wp(server-name.com.au)[2198]: Authentication attempt for unknown user test from 123.123.123.123

    my wordpress.conf as updated:

    before = common.conf
    [Definition]
    _daemon = (?:wordpress|wp)
    failregex = ^%(__prefix_line)sAuthentication attempt for unknown user .* from <HOST>$
    ^%(__prefix_line)sBlocked authentication attempt for .* from <HOST>$
    ^%(__prefix_line)sBlocked user enumeration attempt from <HOST>$
    ^%(__prefix_line)sPingback error .* generated from <HOST>$

    I tried adding _wp to the __prefix_line e.g. __prefix_line_wp as per someone else’s example above but fail2ban would fail to restart.

    sudo service fail2ban status

    ● fail2ban.service – LSB: Start/stop fail2ban
    Loaded: loaded (/etc/init.d/fail2ban)
    Active: active (exited) since Thu 2016-03-31 09:34:23 AEST; 13s ago
    Process: 3494 ExecStop=/etc/init.d/fail2ban stop (code=exited, status=0/SUCCESS)
    Process: 3501 ExecStart=/etc/init.d/fail2ban start (code=exited, status=0/SUCCESS)

    Mar 31 09:34:23 server-name.com.au fail2ban[3501]: Starting authentication failure monitor: fail2banERROR Failed during configuration: Bad value substitution:
    Mar 31 09:34:23 server-name.com.au fail2ban[3501]: section: [Definition]
    Mar 31 09:34:23 server-name.com.au fail2ban[3501]: option : failregex
    Mar 31 09:34:23 server-name.com.au fail2ban[3501]: key : __prefix_line_wp
    Mar 31 09:34:23 server-name.com.au fail2ban[3501]: rawval : Authentication attempt for unknown user .* from <HOST>$
    Mar 31 09:34:23 server-name.com.au fail2ban[3501]: ^%(__prefix_line_wp)sBlocked authentication attempt for .* from <HOST>$
    Mar 31 09:34:23 server-name.com.au fail2ban[3501]: ^%(__prefix_line_wp)sBlocked user enumeration attempt from <HOST>$
    Mar 31 09:34:23 server-name.com.au fail2ban[3501]: ^%(__prefix_line_wp)sPingback error .* generated from <HOST>$
    Mar 31 09:34:23 server-name.com.au fail2ban[3501]: failed!

    Could it have something to do with the action. My jail default action is action = %(action_mwl)s should I set something different for [wordpress]?

    Also I did some googling and came across something about established connections, not sure if this would cause any issues. I run my server using HTTPS with keepalive_timeout 70; in my nginx server block.

    Any help would be greatly appreciated.

    Thank you.

    I am having the same issue. I believe it is setup correctly. Fail2ban works for SSH etc.

    Here are my logs after failed attempts:

    Mar 16 06:53:33 server-user wordpress(domain.com.au)[9254]: Authentication failure for test from 168.1.6.52
    Mar 16 06:53:36 server-user wordpress(domain.com.au)[9604]: Authentication failure for erh from 168.1.6.52
    Mar 16 06:53:40 server-user wordpress(domain.com.au)[9281]: Authentication failure for fgnr from 168.1.6.52
    Mar 16 06:53:47 server-user wordpress(domain.com.au)[9254]: Authentication failure for fgnr from 168.1.6.52

    I used a VPN so it didnt ignore my IP. Here is my wordpress.conf as provided:

    before = common.conf
    
    [Definition]
    
    _daemon = wordpress
    
    failregex = ^%(__prefix_line)sAuthentication failure for .* from <HOST>$
                ^%(__prefix_line)sBlocked authentication attempt for .* from <HOST>$
                ^%(__prefix_line)sBlocked user enumeration attempt from <HOST>$
                ^%(__prefix_line)sPingback requested from <HOST>$
    
    ignoreregex =

    And my jail.local setting for wordpress

    #WordPress Plugin addition
    [wordpress]
    enabled = true
    port = http,https
    filter = wordpress
    logpath = /var/log/auth.log
    maxretry = 3

    I don’t understand why it’s not working. I am assuming has something to do with regex in the wordpress.conf, but I can’t understand that very well.

    Any ideas?

    Thanks

    Forum: Plugins
    In reply to: [W3 Total Cache] Slow TTFB?
    Thread Starter tmacka88

    (@tmacka88)

    I disabled Object Cache and this fixed my TTFB issues. So just now have Page, Database and browser cahing.

Viewing 12 replies - 1 through 12 (of 12 total)