Category: blogs

  • Asking authentication when we try to access homepage on WP Engine

    Recently, I migrated a site from the flywheel to WP Engine using Migrate Guru plugin.

    After migration, I was asked to add browser authentication when I try to access the homepage. It was not asking the authentication when I try to access wp-admin.

    Below is the screenshot what I was getting.

    So I connected WP Engine’s support guy. And in my case there was a third party plugin was creating the issue. After deactivating that plugin, issue was fixed.

  • Fix – svn: error: The subversion command line tools are no longer provided by Xcode.

    Recently I got the following error on my Mac Terminal when I tried svn command.

    svn: error: The subversion command line tools are no longer provided by Xcode.

     

    To fix this, run following commands:

    sudo rm -rf /Library/Developer/CommandLineTools
    xcode-select --install

     

    Wait for the software to be installed. And you are done.

    Ref.:https://stackoverflow.com/questions/60869347/mac-command-line-tools-11-4-no-longer-has-svn

     

  • Download folder/files from server using ssh terminal

    You will need SCP installed on your system.

    Run the following command from your terminal

    scp -r username@host:/path/to/folder /Destination/path/of/local/machine/

    If you access the server via pem key, then command will be

    scp -r -i /path/to/pemkey.pem username@host:/path/to/folder /Destination/path/of/local/machine/

    That’s it.

  • How to setup Stripe test account on MemberPress

    MemberPress forces to have a valid account to connect with stripe which is great for the LIVE site.

    But when it comes to testing payment using a test account, then also MemberPress forces to have a valid account.

    But there is a workaround to setup test account without an account which has not all the data filled in the Sandbox account.

    When you open your MemberPress -> Settings -> Payments tab, the URL will end up like:

    /wp-admin/admin.php?page=memberpress-options#mepr-integration

    Then change it manually to /wp-admin/admin.php?page=memberpress-options&display-keys and click back to the Payments tab.

    You’ll see the fields where you’ll be able to add the keys manually. Copy/paste them from your Stripe and then go to Stripe DashBoard -> Developers -> Webhooks and click “Add Endpoint” button: https://prntscr.com/rsgtw9

    Then paste the Webhook URL from MemberPress and add these events: https://prntscr.com/rsguc1

    Save everything and you should have the manual test connection completed.

    If you use any caching plugin, don’t forget to set it as explained in How to Set Up Popular Caching Plugins with MemberPress? and you should be good to go. 🙂

     

    That’s it

  • Fix – ERROR 2006 (HY000) while importing database in MySQL

    While importing big database in MySQL, you might get the error as shown below:

    ERROR 2006 (HY000) at line 3387 in file: 'path_to_the_db_dump.sql': MySQL server has gone away

    Step 1:

    Open a terminal and find a config file for MySQL by command locate my.cnf.

    You will get the list of files. Open your responsible file.

    If you don’t know the responsible file then open all the files ;). There is no harm to add our solution in all the related config file.

    Step 2:

    Add following line to my.cnf file.

    max_allowed_packet=64M

    Restart your MySQL using below command.

    sudo service mysql restart 
    OR
    brew services restart mysql

    That’s it!!!!