• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Ani's Webdev Blog

A learning diary of website development

  • Home
  • Demo
    • Ajax Contact Form
  • WordPress
  • Front-end
  • Backend

WordPress Issues Collection

Modified on: July 7, 2020

Table of contents

  1. Jetpack Blocks Admin Login Solution: Whitelist Your IP
    1. Can’t Update Plugins. Error: Download failed. Destination directory for file streaming does not exist or is not writable
      1. add_query_arg() missing parameters
        1. Do I need to esc_url() when using wp_nonce_url()?

          Jetpack Blocks Admin Login Solution: Whitelist Your IP

          I don’t care much about Jetpack’s new security method until I was locked out of my dashboard this afternoon. Jetpack probably thought that I was trying to hack on something due to multiple log-in activities throughout my WordPress sites.

          Clearly, they are trying to separate between good guys and bad ones based on the number of sites they are trying to access wp-admin area at the same time.

          Well, that’s a good criterion to base on. However, since I have many sites, the multiple login activities are inevitable. Although Jetpack sent me an email to reattempt my login, the button in the email did not work. It said “bad request”. So sad.

          So, I have to add my IP to the Jetpack whitelist to prevent future blocks. Ah wait…if I was already blocked, how could I do anything? Just follow these three simple steps:

          Deactivate Jetpack from your web folder

          So you have cPanel or FTP access, right?

          For FTP user, just go to your WordPress folder > wp-content > plugins.

          You will see the Jetpack from the list. Simply rename it Jetpack-disabled. And you’re done. The plugin is disabled.

          If you choose to visit cPanel, also navigate to your web folder through File Manager > public_html > your WordPress site > wp-content > plugins.

          And similarly, rename the Jetpack to Jetpack-disabled.

          So simple. I love simple things.

          Login again to your site

          Since Jetpack is disabled, you will be able to login normally to your dashboard again.

          Activate Jetpack from your dashboard

          Since you are already login, activating Jetpack won’t get you locked out of the site again.

          Go to Plugins > Jetpack and click activate.

          Whitelist your IP in Jetpack settings

          When Jetpack is activated, go to Jetpack > Settings > Security.

          Expand the Brute force attack protection. You will see your IP address listed there. Simply click Add to Whitelist. 

          And don’t forget to Save Settings.

          You’re done. Your IP is now safe.

          Jetpack block admin login solution whitelist your ip
          Make sure that the IP you use to login is in the Jetpack’s safe zone.

          Can’t Update Plugins. Error: Download failed. Destination directory for file streaming does not exist or is not writable

          This happens when the Temp directory of the host is not found, or the Temp folder url is wrong. Simply update the correct URL in wp-config.php. For Bluehost it is:

          PHP

          add_query_arg() missing parameters

          So from add_query_arg doc:

          Setting any query variable’s value to boolean false removes the key.

          So if the value is false, the key will disappear from url.

          Do I need to esc_url() when using wp_nonce_url()?

          Following wp_nonce_url() doc, it returns a string:

          Escaped URL with nonce action added.

          So the string already escaped. No need to do more.

          Filed Under: Wordpress Tagged With: wordpress issues

          Recent posts

          [WordPress] Let’s Make Plugin E01: A Simple View Count Plugin

          [WordPress] Create custom post type programmatically

          [WordPress] Open Images in Posts into Lightboxes On Clicks (Without Plugins)

          Reader Interactions

          You are here: Home / Wordpress / WordPress Issues Collection

          Leave a Reply Cancel reply

          Your email address will not be published. Required fields are marked *

          Primary Sidebar

          Hi! I am a Vietnamese coder living in Oulu, Finland. Currently I am working with PHP, MySQL, HTML, CSS, and JavaScript. This blog is my learning diary, in which I share knowledge from my own experience or research. Hopefully you can find something useful here and don’t hesitate to open a discussion or leave a feedback!

          FOLLOW MY BLOG

          Thank you for visiting this website! I hope you find something useful here :). Contact me by email: anh@anhkarppinen.com.