How to fix “Warning: An existing WordPress network was detected.”

How to fix "Warning: An existing WordPress network was detected."

While converting a WordPress single install to multisite, the following error notice was displayed at the Network Setup admin page. Warning: An existing WordPress network was detected. It took me quite some time to finally figure out what I was doing wrong. Mind you, the instruction in Network Setup page clearly stated that the PHP constant definition below should be placed before /* That’s all, stop editing! Happy blogging. */ in … [Continue reading]

How to Destroy a User Session in WordPress

How to Destroy the Session of a Logged in User in WordPress

Below is a PHP function that can programmatically logout or destroy a user session in WordPress taking the user ID as an argument. [php] /** * Destroy the session of a user. * * @param int $user_id */ function pp_destroy_user_session( $user_id ) { // get all sessions for user with ID $user_id $sessions = WP_Session_Tokens::get_instance( $user_id ); // we have got the sessions, destroy them … [Continue reading]

How to Fix Size of XAMPP Installation Folder Getting Bigger

Folder eating up my local drive disk space

In a previous post, i showed us how to find and delete files eating up a PC disk space and in it, we could see that XAMPP was the largest consumer of my PC disk space. One might wonder, how the heck did XAMPP consume such large a size of disk space? turned out if you have xdebug profiling enabled, runtime information about the PHP scripts you execute are written into systems temp folder (by default) which is XAMPP tmp folder in my … [Continue reading]

Find and Delete Files Eating up Your Windows PC Hard Disk Space

Folder eating up my local drive disk space

I recently had a problem where the C-Drive disk space of my Windows 8.1 PC mysteriously got filled up. As a result, I kept getting this error message "you are running very low on disk space". I scan through all my files deleting several large files and uninstalling software that were infrequently used yet the size of the disk space only reduced by few gigabytes. I calculated the size of my files and installed program and no way could they … [Continue reading]

Customizing the Homepage of WooCommerce Storefront and Its Child Themes

WooCommerce Storefront theme

By default, Storefront WooCommerce theme by WooThemes displays a maximum number of four(4) feature, recent, on sale and top rated products in four columns while the product categories are in three columns. This also hold true for its child theme save for Boutique which displays a limit of three homepage products in three columns. In this tutorial, i will show us how to increase the number of feature, recent, on sale and top rated … [Continue reading]

Getting 2Checkout to Play Nice With CloudFlare

Getting 2Checkout to Play Nice With CloudFlare

We use 2Checkout as payment gateway for selling our premium ProfilePress WordPress plugin. When an order is made via 2co, it passes through their fraud review system and subsequently, a POST request is sent to a provided notification URL when the order passes the fraud review. It is this POST request our system will decipher to finally complete the order. On setting up CloudFlare at profilepress.net, orders weren't getting marked as … [Continue reading]

How to Install cURL in Windows Easily

Environmental variable button

From the its website cURL is a command line tool and library for transferring data with URL syntax, supporting DICT, FILE, FTP, FTPS, Gopher, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMB, SMTP, SMTPS, Telnet and TFTP. curl supports SSL certificates, HTTP POST, HTTP PUT, FTP uploading, HTTP form based upload, proxies, HTTP/2, cookies, user+password authentication (Basic, Plain, Digest, CRAM-MD5, NTLM, Negotiate … [Continue reading]

HOST1PLUS VPS Hosting Review

Host1plus hosting review

I recently received a virtual private server (VPS) for free from the fine folks at Host1Plus. Admittedly, I am impressed and pleased with their service. As a developer that pretty much knows his way around servers, it took me few minutes to install a LEMP stack and to migrate a web project of mine to it. If you are coming from the shared hosting world, you might find a virtual private server (VPS) daunting. A VPS provides freedom and … [Continue reading]