Mandar Apte

UI/UX Designer from Mumbai, Maharashtra, India.

Category: Open Source

In production and development, open source as a development model promotes a universal access via a free license to a product’s design or blueprint, and universal redistribution of that design or blueprint, including subsequent improvements to it by anyone.

  • Error while updating your WordPress Installations Automatically or Getting error while uploading file to WordPress blog “Failed to write file to disk.”, Here is a solution for this errors.

    If you are getting an error while uploading a file or image to your WordPress blog or when automatically updating your WordPress installation, then here is the solution for the same.

    All errors are related to something like this:

    Error 01:

    Error while uploading file, image to WordPress blog “Failed to write file to disk.”

    Error 02:

    Automatic update Failed for WordPress 3.8.2

    OR

    Warning: touch() [function.touch]: Unable to create file ~/root-directory/tmp/wordpress-3.tmp because No such file or directory in /nfs/ccc/hhh/ttt/12345/domains/your-domain-name.com/html/wp-admin/includes/file.php on line 155

    Warning: unlink(~/root-directory/tmp/wordpress-3.tmp) [function.unlink]: No such file or directory in /nfs/ccc/hhh/ttt/12345/domains/your-domain-name.com/html/wp-admin/includes/file.php on line 479
    Download failed.: Destination directory for file streaming does not exist or is not writable.

    Here is the Reason & Solution to the problem:

    (more…)
  • How to Fix ‘Warning: require_once() [function.require-once]: Unable to allocate memory for pool.’ Warning thrown at you while you were trying to login in your WordPress admin page.

    Today, I was trying to log in to my website’s Admin page, but I was stopped by following a warning from WordPress’s

    Unable to allocate memory for pool
    

    The full warning summary was something like this:

    Warning: require_once() [function.require-once]: Unable to allocate memory for pool. in /nnn/000/000/mnt/111111/domains/domainname.com/html/wp-includes/pluggable.php on line 1547
    
    Warning: Cannot modify header information - headers already sent by (output started at /nnn/000/000/mnt/111111/domains/domainname.com/html/wp-includes/pluggable.php:1547) in /nnn/000/000/mnt/111111/domains/domainname.com/html/wp-includes/pluggable.php on line 678
    
    Warning: Cannot modify header information - headers already sent by (output started at /nnn/000/000/mnt/111111/domains/domainname.com/html/wp-includes/pluggable.php:1547) in /nnn/000/000/mnt/111111/domains/domainname.com/html/wp-includes/pluggable.php on line 679
    
    Warning: Cannot modify header information - headers already sent by (output started at /nnn/000/000/mnt/111111/domains/domainname.com/html/wp-includes/pluggable.php:1547) in /nnn/000/000/mnt/111111/domains/domainname.com/html/wp-includes/pluggable.php on line 680
    
    Warning: Cannot modify header information - headers already sent by (output started at /nnn/000/000/mnt/111111/domains/domainname.com/html/wp-includes/pluggable.php:1547) in /nnn/000/000/mnt/111111/domains/domainname.com/html/wp-includes/pluggable.php on line 896
    
    (more…)
  • WordPress (WP) Custom Designed Login Logo gets truncated or cropped after WordPress is updated to 3.8+

    Background:

    It seems the custom-designed logo of the login form gets cropped or truncated if you update your WordPress installation to 3.8 or later.

    Just for background & history of the WordPress login form, the logo was something rectangular in shape, as shown below:

    Orginal WordPress Login Logo

    My custom design of my Studio’s logo was the right fit & was working fine, as shown below:

    WordPress Custom Login Logo Fix - Correct Custom Logo after code update
    (more…)
  • Automating WordPress Website Maintenance.

    Assumptions, Prerequisites & Basic Knowledge
    I assume you have decent web design and development knowledge, including HTML and CSS for Ice on Cake, and a working knowledge of PHP. I believe you have deployed your WordPress website on an online live server.

    Introduction to Automated WordPress Maintenance
    This tutorial & my blog post will help you to automate your workflow of updating 100s of WordPress websites without any extra effort. Even when you are sleeping or working on your next big project, your website will do all the work without any from your side. All scripts listed below will help you automate updating WordPress Major & Minor Core Source Code, Themes, Plugins, Database, WordPress site-wide trash cleanup & SPAM Comments removal.

    First Step:
    Towards Automated WordPress Source Code / Core update inclusion of official major & minor releases.

    WordPress.org introduced Automatic Minor Core updates in 3.7. These features remove hassle & extra steps from updating the website to the next dot release of WordPress Website Installation.

    (more…)
  • How to Automatically Empty WordPress Trash.

    This wp-config.php function controls the days before WordPress permanently deletes posts, pages, attachments & comments from the trash bin.

    This function will automate the process of deleting WordPress Trash & you will not have to press the ‘Empty Trash’ button again for your installation.

    Default WordPress Trash Settings:
    The default is 30 days.

    define( 'EMPTY_TRASH_DAYS', 30 ); // 30 days default
    
    (more…)
  • Indent Multiple Lines of Code on Mac using Xcode. Fix Code Tab Indention on Mac using XCode?

    The problem is when you have flat multiple lines of code & you want all of the code indent in one click of a button without going through every word or line by pressing the button ‘Tab’.

    So I put down few notes containing tutorial to how to indent multiple line of code within one click or one second, Here is how.

    Method 01:
    Select the code you want to Indent

    (more…)
  • What is WordPress Salt? A WordPress Security or Secret Key Generator (WordPress Tip for Optimum Security)

    Introduction to WordPress Security Keys
    WordPress introduced security keys in the WordPress 2.6 Release to better encrypt information stored in the user’s cookies.

    Security Keys will look like these examples, but don’t use the duplicate keys given below:

    define( 'AUTH_KEY',         't`DK%X:>xy|e-Z(BXb/f(Ur`8#~UzUQG-^_Cs_GHs5U-&Wb?pgn^p8(2@}IcnCa|' );
    define( 'SECURE_AUTH_KEY',  'D&ovlU#|CvJ##uNq}bel+^MFtT&.b9{UvR]g%ixsXhGlRJ7q!h}XWdEC[BOKXssj' );
    define( 'LOGGED_IN_KEY',    'MGKi8Br(&{H*~&0s;{k0<S(O:+f#WM+q|npJ-+P;RDKT:~jrmgj#/-,[hOBk!ry^' );
    define( 'NONCE_KEY',        'FIsAsXJKL5ZlQo)iD-pt??eUbdc{_Cn<4!d~yqz))&B D?AwK%)+)F2aNwI|siOe' );
    define( 'AUTH_SALT',        '7T-!^i!0,w)L#JK@pc2{8XE[DenYI^BVf{L:jvF,hf}zBf883td6D;Vcy8,S)-&G' );
    define( 'SECURE_AUTH_SALT', 'I6`V|mDZq21-J|ihb u^q0F }F_NUcy`l,=obGtq*p#Ybe4a31R,r=|n#=]@]c #' );
    define( 'LOGGED_IN_SALT',   'w<$4c$Hmd%/*]`Oom>(hdXW|0M=X={we6;Mpvtg+V.o<$|#_}qG(GaVDEsn,~*4i' );
    define( 'NONCE_SALT',       'a|#h{c5|P &xWs4IZ20c2&%4!c(/uG}W:mAvy<I44`jAbup]t=]V<`}.py(wTP%%' );
    

    Benefits of WordPress ‘Salt’

    (more…)
  • Reduce MySQL Database size by managing WordPress Post Revisions count (WordPress Tip for Optimum Performance)

    Description:
    The WordPress revisions system records each saved draft or published update. You can see what changes were made in each revision by dragging a slider (or using the Next/Previous buttons). The display indicates what changed in each revision—what was added, what remained unchanged, and what was removed. Lines added or removed are highlighted, and individual character changes are highlighted. Click the ‘Restore This Revision’ button to restore a revision.

    Introduction to feature called revisions:
    As stated above, ‘Revisions’ are posts stored drafts for future proofreading of blog posts. It creates multiple copies of the blog posts you are working on in your MySQL Database in plain English. So it naturally affects & increases the size of your WordPress’s MySQL Database size in megabytes.

    Suggestion:
    So I would suggest using the following code to successfully control the WordPress Post Revision Count to ultimate ‘3’ to stop it from growing above & creating clutter in your WordPress Database.

    Specification:
    Put the following code in your WordPress Installation’s wp-config.php file to limit the number of post-revision WordPress stores in the database. Old revisions are automatically deleted.

    (more…)
  • How to repair and optimise MySQL Databases through phpMyAdmin for optimum WordPress Performance.

    Introduction
    As we use & utilise our WordPress website running with MySQL database, it gets cluttered & overheads with extra information or data in database tables. Sometimes, it crashes on its burden. So what we should do in the first place is repair & optimise it for optimum performance.

    So, Here is how to do it…!!!

    Warning & Precautions
    First, back up all of your websites and relevant databases so that if something goes wrong, you have a backup copy of your server files and databases.

    Initial Step:
    The Initial Step is to Sign in to your web hosting’s phpMyAdmin MySQL Database Portal and Select your choice of database. First, note down your MySQL tables’ overheads and database size to compare them in the future after optimisation.

    Step 01:

    wordpress databse optimise 1
    (more…)
  • How to selectively or enable & disable ‘WordPress Automatic Background Updates’ while modifying code in the WordPress root wp-config.php file & Your theme’s functions.php file

    Introduction to WordPress’s New Functionality Automatic Background Updates:
    WordPress 3.7 introduced automatic background updates to promote greater security and streamline the update process. By default, only minor releases are enabled for maintenance and security purposes, as well as translation file updates. The default behaviour in WordPress 3.7 is the automatic core update for minor versions, i.e., from 3.7.0 to 3.7.1. WordPress’s Graphical User Interface (GUI) does not offer configuration options. To change the behaviour, modify the wp-config.php file in your WordPress root installation or add filters to your theme’s functions.php file.

    In WordPress, there are four types of automatic background updates:

    1. Core updates
    2. Plugin updates
    3. Theme updates
    4. Translation file updates

    Core Updates
    Core updates are subdivided into three types:

    1. Core development updates, known as the “bleeding edge.”
    2. Minor core updates, such as maintenance and security releases, e.g. 3.7.1
    3. Major core release updates, e.g. 3.7

    But If you want to turn them on or off selectively, here is how you will do it,

    Turn them on or off via wp-config.php

    Enable Automatic Updates for core – development, major, and minor versions

    (more…)