[Solved] “Error saving media attachment.” error in WordPress

WordPress might give this error on uploading an image from media library. It means that wordpress isn’t able to save your file. It is really easy to fix. However, this may not work for all: Go to Settings->Media. Change the path in ‘Store uploads in this folder’ option to ‘wp-content/uploads’ (without the quotes). If this… Continue reading [Solved] “Error saving media attachment.” error in WordPress

Published
Categorized as how-to

[How-To] Changing directory permissions from cPanel

This is not a difficult task but people often don’t know what directory permissions are. While we need not go into depth, just know 0755 is the recommended setting for all directories. For changing a directories permission from cPanel, follow the following steps: Login to your cPanel. Find File Manager and click on it. Select… Continue reading [How-To] Changing directory permissions from cPanel

Published
Categorized as how-to

[SOLVED] Flush(), ob_flush() not working in PHP (Disabling gzip through htaccess)

Flushing the output buffer doesn’t works in PHP sometimes no matter what you do. I had this code which would never work on my server but would perfectly fine on localhost. This was the code. <?php include(‘common.php’); ini_set(‘output_buffering’,’on’); ini_set(‘zlib.output_compression’, 0); //ini_set(‘implicit_flush’,1); ob_implicit_flush(); for($i=0;$i<10;$i++) { echo $i; echo str_repeat(” “, 500); ob_flush(); flush(); sleep(1); } ?>… Continue reading [SOLVED] Flush(), ob_flush() not working in PHP (Disabling gzip through htaccess)

Published
Categorized as php

[Solved] Unable to update .ICEauthority error on booting

I received this error after installing updates and restarting the computer. It was nothing but a file-permission issue. You can easily fix it. To solve it, type the follow these instructions: Go to Application menu->Accessories->Terminal or press Alt+F2 and type gnome-terminal and press enter. In terminal, type: sudo chown username:username .ICEauthority sudo chmod 0644 .ICEauthority Replace username with your… Continue reading [Solved] Unable to update .ICEauthority error on booting