Sunday, April 24, 2011

Wordpress HTTP Error on Image Upload after Crunching - Fixed

Hi Folks, In Wordpress while uploading a file sometime you may encounter an HTTP Error while crunching file.
Usually this error can be resolved by adding a line of code in htaccess file.

.htaccess file
# BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress



Edit your htaccess file and add the last line of code.
# BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress

AddType x-mapp-php5 .php .php4

Your htaccess file will look like above. Upload it to your wordpress site root.
Try It !! Best of Luck...

Friday, April 22, 2011

Fix for - jQuery Error on IE 8.0 for append function.

While using append() function in jQuery, you may see some errors popping out while loading the page.
This issue usually happens in Internet Explorer 8.0 version and will work perfectly in Firefox. 
 
jQuery Function: 
append: function() {
 return this.domManip(arguments, true, function(elem){
  if (this.nodeType == 1)
        this.appendChild( elem )  });
 },
Replace the append function with the below code,
append: function() {
  return this.domManip(arguments, true, function(elem){
   if (this.nodeType == 1)
           try{this.appendChild( elem )}
           catch(err){ }
  });
 },
 
Hope this will help you ;-) 
 

PHPThumb Error Deprecated: Function eregi() phpthumb.class.php - Fix

While using phpthumb for image resizing functions there may arise some issues if the source image is not working or the source image URL is dead.
The usual error found is "Deprecated: Function ereg_replace() is deprecated in phpthumb.class.php on line 976."

To fix this replace the function with

"if (preg_match('#^'.preg_quote($this->config_document_root).'#', $filename)) {"

Hope this will help you !...
Better Luck ! :-)

Tuesday, April 19, 2011

White flash during page load

In some web page having flash objects, its seen that some times a white flash is displaying on the page load or while navigating between pages.

Fix : Add the below parameters to the flash object/movie


 




Popular Posts