Solve internal server error for wordpress

Many times we face the issue of internal server error for many wordpress sites. To Solve internal server error for wordpress sites. You can use the following techniques and tips. First do not hurry to take action. Before doing anything you need to take database backup first then you need to see the apache server logs and mysql db slow logs. If you are using the shared hosting then you can check the access and error logs.

we face the issue of internal server error for wordpress for many wordpress sites. To Solve internal server error for wordpress sites. first check error log

HTTP 500 Internal Server Errors , if you seeing on the sites. then do not get worried. Internal Server Error is one of the common WordPress errors. All types of errors can be fixable so don’t worry. There should be some reasons behind internal server errors.

Solve internal server error for wordpress
Solve internal server error for wordpress

Note: First take the database backup and If possible to take the filesystem backup easily then take filesystem backup.

Solve internal server error for wordpress

PHP memory limit issue

Many times php memory limit will cause the internal server error. If you have dedicated server then you can easily change the php memory limit. you need increase the memory limit and restart the apache server. Many times if you use the new theme or new plugin. After activating the theme or plugin you might face the internal server error issue. Because new theme or plugin might need more memory for execution.

But if you are using the shared hosting then you need to set memory limit in your own php.ini file and put that file into your root folder of hosting.

Check the .htaccess file

Due to some issue your .htaccess file is corrupted which is present in your root directory folder of wordpress installation. Before doing anything first take backup of .htaccess file using filezilla or any ftp client. Then rename the .htaccess file to .htaccess-old and after that login to wordpress admin panel. Go to Permalink section and save it again. That will regenerate the .htaccess file again.

I think this will solve your issue.

Deactivate all the plugins

If you are able to login to wordpress admin panel then go to plugin section and deactivate all the plugins. It is possible, any plugin is breaking your site. If you are not able to login to wordpress admin panel then follow the following steps.

Use ftp client and go to wp-content folder and rename the plugins folder to plugins-backup. Then create the empty plugins folder in same place.

This way you are deactivating the all the plugins. I think this will solve your issue 100%.

Delete or Deactivate used theme

Many times I faced the issue when I activate the new theme. Site stops working. Not too worry. Just use any ftpclient and delete the new theme from themes folder. First take backup of your theme folder.

Contact to your hosting provider

If you are using the shared hosting then only you can contact to your hosting provider. Write a email about your site issue and when that happened.

I Hope above article will help you about solving the issue. Still you are facing issue then check the http error and access logs. You can write to me about issue.

Using above steps you will able to Solve internal server error for wordpress.

Add Link to gallery image in wordpress

WordPress gives you to create gallery and show on any page. You just need to multiple image and show as a gallery. You can show the images as attachment of gallery image without any URL. I will show you in this article about add the link to gallery image.  When you upload the single image then you can able to attach or add the link to that image and use in your post. you can link it to a custom URL under attachment display settings.

You can upload image from add post form or you can add the image from media uploader section. When you upload the single image then you can add the custom title, URL, description to image but If you want similar functionality for gallery then that is not supported by wordpress yet.

Add Link to gallery image in wordpress

For adding the custom links functionality to wordpress gallery images, you can install and activate WP Gallery Custom Links plugin.

Plugin Overview

If you’ve ever had a WordPress gallery of staff, product, or other images and needed to link them to other pages but couldn’t, this plugin is for you!

This plugin adds a “Gallery Link URL” field when editing images. If the image is included in a gallery, the “Gallery Link URL” value will be used as the link on the image instead of the raw file or the attachment post. There are also several additional options (see “Usage” below).

Add Link to each gallery image in wordpress
Add Link to each gallery image in wordpress

It’s designed to work even if customizations have been made via the post_gallery filter; instead of replacing the entire post_gallery function, it calls the normal function and simply replaces the link hrefs in the generated output. By default, any Lightbox or other onClick events on custom links will be removed to allow them to function as regular links.

How to Use the Plugin

  • See the custom fields added in the screenshots section at http://wordpress.org/extend/plugins/wp-gallery-custom-links/screenshots/.
  • For each gallery image, you can specify a custom Gallery Link URL.
  • Use “[none]” as the Gallery Link URL to remove the link for that gallery image.
  • For each gallery image, you can select a Gallery Link Target (“Same Window” or “New Window”).
  • For each gallery image, you can select how to handle Lightbox and other onClick events (“Remove” or “Keep”).
  • Use

    to ignore the custom links on an entire gallery.

  • Use

    and

    to open all images in an entire gallery in a new window/the same window, respectively.

  • Use

    to keep Lightbox or other onClick events on all custom-linked images in an entire gallery.

  • Use

    to remove links on all images in an entire gallery.

I personally liked this plugin and I used in some of my projects. This plugin gives developer to modify the there functionality using there api. This plugin supports and API. You can use plugin api in your wordpress theme and custom code.

Many websites need to image gallery in there site so you can use this plugin for sure.

Create custom meta fields using Custom Field Suite plugin

In wordpress we can Create custom meta fields using Custom Field Suite wordpress plugin. wordpress supports custom post type and meta fields in the CMS. Now wordpress supports the custom post type and custom meta fields in the CMS. custom meta field is great feature in wordpress. We can use the meta fields for multiple custom purpose. I am using meta fields in many projects for achieving the custom user requirements.

Custom meta fields are used for add the custom data with specific posts and pages. We can attach any type of data through meta fields. It is very useful feature of wordpress. Custom Field Suite is great wordpress plugin which, makes really simple for you to create custom meta boxes visually for you posts, pages or any custom post types.

custom-meta-box1

It is a wonderful free plugin and have great documentation for you to get start. You can easily create text, text area, wysiwyg, color, select, file upload, user, relationship and loops using visual UI and with minimal code you could display the values in your theme.

Create custom meta fields using Custom Field Suite plugin

The placement rules help you to define, in which scenarios you want to display the custom meta boxes in each content type. You can choose from post type, user roles, exact post or taxonomy terms.

custom-meta-box2 Create custom meta fields
Create custom meta fields

The plugin also have an export and import feature, so it is easy for developers to move from development box to actual server.

URL : http://wordpress.org/extend/plugins/custom-field-suite/
Home : http://uproot.us
Documentation : http://uproot.us/custom-field-suite/documentation/

Remove short words from wordpress permalink URL

WordPress itself creates the permalink. WordPress permalinks are very important for SEO purpose. Short words are sometimes are not good for seo so you might need to remove the short words from permalink. Using the following code you can remove the short words from wordpress permalink URL.

Using code you can Remove short words from wordpress permalink.

You just need to add the following code functions.php file.

add_filter('sanitize_title', 'remove_short_words');
function remove_short_words($slug) {
 if (!is_admin()) return $slug;
 $slug = explode('-', $slug);
 foreach ($slug as $k => $word) {
 if (strlen($word) < 3) {
 unset($slug[$k]);
 }
 }
 return implode('-', $slug);
}

 

Source Link :wpsnipp.com

 

disable automatic updates of wordpress

WordPress is very popular and most used CMS in the world. Many times we do some custom development with wordpress so we need to disable automatic updates of wordpress. Sometimes when we update the wordpress then it will break your site. It is very important, when you update the worpdress version with wordpress updates. You need to test the updates on local box or QA box first.

disable automatic updates of wordpress

For disable the automatic the update you need to open the wp-config.php file and put following into that file.

define( 'AUTOMATIC_UPDATER_DISABLED', true );

After adding above line automatic updates will be disabled and If you want to do the wordpress update then you need to update the wordpress installation manually.

I think, before every wordpress updation. First the take the database and filesystem backup and then test on local box. Then do the wordpress version updation.

WordPress release is coming with new features

WordPress is very popular CMS which is widely used in the web world. There are millions of websites build using wordpress CMS. Every month there is new update and new version is coming. Last month wordpress released the 3.7 wordpress version. New release will be 3.8 wordpress version coming with new features. It is very focused and important wordpress release by WP Team.

WordPress release with new features is coming . Last month wordpress released 3.7 wordpress version. New release will be wordpress version with new feature.

WordPress release with new features

In wordpress 3.8 version there are very important UI changes will be planned in new upcoming version. Team is planning to release the new version in 2013 December End. Many New features available for testing by development environment. If you want to download the development version and test it then use following URL:

To test WordPress trunk with a test install:

To check out the latest WP codebase, try this checkout command:

svn co http://core.svn.wordpress.org/trunk/

For More information Check URL.

New Fancy and great UI changes in WordPress Admin

The MP6 plugin included in the  WordPress core in 3.8. It was used in WordPress.com sites, If you want to use it your current wordpress then download the plugin. It will change the WordPress admin interface a modern, optimized, and polished new look that it deserves.

wp-3-8-admin-ui WordPress release with new features
WordPress release with new features

The current admin UI came with two color, MP6 uses Open Sans font which will be shipped with WordPress 3.8. MP6 also brings great improvements to buttons, forms, and the overall appearance of the admin interface making it prettier and user friendly.

Great Themes preview Experience

Theme preview the one to most used the important feature of wordpress CMS. Now in current wordpress version we are seeing lot of text content along with theme preview images.  WordPress.com itself uses some nice wordpress plugins like theme experience plugin (codename Thx38) Now wp development team is adding this plugin feature in to the core feature. This wp plugin will change the theme screens in WordPress admin area. It has larger theme screenshots and clean UI interface. Theme search is moved to the top right corner of the screen. To try this as a plugin on WordPress 3.7 or earlier, you would need to install MP6 plugin first.

wp-3-8-theme-screens WordPress release with new features
WordPress release with new features

New Look to Dashboard

WP dev team changed the dashboard screen totally in 3.8 release. If you earlier used the  Dashboard plugin by @lessbloat then you will know about the new look of dashboard. Dashboard plugin is also included into the core code of wp. They removed the unwanted widget and added some useful and quick widgets in dashboard.

For example, the incoming links widget will be removed. ‘Right now’ widget will be replaced by ‘Activity’ widget. QuickPress on the dashboard screen will be renamed to Quick Draft and will be much simpler.

wp-3-8-dashboard-screen

New Fast and Easier Widget Area Manager

Widgets are used every where is wp cms. We use the widget in header, footer, sidebar, post area. Now we can drag and drop the widgets. Using multiple widget is sometimes it becomes difficult to drag and drop a widget into the multiple sidebars. Along with the WordPress new version 3.8, The Widgets UI will allow admin to easily choose the sidebar they want to add a widget to without dragging it across different sidebars. The new widget interface will be very user friendly.

wp-3-8-widget-chooser

There are many bug fixes and other small features are coming in 3.8 version. I am really waiting for the new wordpress version. I am looking for better user and role management in wordpress so it will became full featured CMS like Drupal. WordPress is improving but still lot of new ideas and features needs to include in wordpress still. That is a path.

Ref Links:

http://www.wptavern.com/breaking-new-features-selected-to-merge-into-wordpress-3-8-core

http://www.wptavern.com/wordpress-3-8-development-heats-up-with-discussion-of-new-core-features

http://www.wptavern.com/wordpress-3-8-merge-window-closed-new-features-now-locked-in

http://wpmu.org/wordpress-3-8-features/

Best WordPress Theme Demo Bar Plugins

Many wordpress theme developers need to create the WP theme demo on showing there wordpress theme. Theme demo is more important to show the users how wordpress theme is looking on live site. WP template designers want to show there all wordpress themes in one wordpress installation. There are many wordpress plugins which gives you facility show wordpress theme demo to users.

Many wordpress theme developers wordpress themes every day. Many WordPress Theme Demo Bar Plugins which gives you facility show wordpress theme demo to user.

Best WordPress Theme Demo Bar Plugins

I collected the some nice and best wordpress theme demo bar plugins for This is a theme demo bar plugins would be shown on top of page, allow users to preview another theme.

WordPress Theme Demo Bar

WordPress Theme Demo Bar WordPress Theme Demo Bar Plugins
WordPress Theme Demo Bar Plugins

WordPress Theme Demo Bar is a plugin for wordpress that allows any wordpress theme to be previewed without activating it. A demo bar would be shown on top of page, allow users to preview another theme. The demo bar is customizable at admin panel. More than 1 extra CSS files can be loaded too.

IJM Theme Bar

IJM Theme Bar  Best WordPress Theme Demo Bar Plugins
Best WordPress Theme Demo Bar Plugins

This is based on the ‘Easy Theme Switcher’ plugin by sergiovilar. It will add a theme demo bar to the top of your site listing every theme you have installed. When a visitor clicks one of these theme names the EST plugin will start a new session and apply that theme’s style sheet to your site giving the visitor a live theme demo.

Comments: I personally used the theme demo bar for many years.

social media bookmark in wordpress without javascript

All scripts and social media plugin add extra javascript code to site. I have best solution for adding social media bookmark in wordpress without javascript.

social media bookmark in wordpress without javascript

I used many types for social bookmark plugins for sharing the content. I tried a some best services like those provided by AddThis and ShareThis. All the scripts and social media bookmarks are adding the some extra javascript code to website. Some social media buttons will add the swf/ flash code to website which to too heavy. So Adding the multiple javascript files for each social media bookmark is not a good solution.

My suggestion is, use anchor links with parameters added to the href attribute (which is basically what you get anyway once those JavaScripts have done their work).

Following code are important in wordpress for sharing the content to social media sites:
<?php the_title(); ?> // It will return the Post/Article Title
<?php the_permalink(); ?> // It will return the Post/Article Permalink or URL
<?php the_excerpt(); ?> // It will return the Post/Article Description
<?php the_post_thumbnail(); ?> // It will return the Post/Article Thumbnail Image

For Facebook: social media bookmark in wordpress without javascript

Facebook Share

<a href="http://www.facebook.com/sharer.php?s=100&amp;p[title]=<?php the_title(); ?>&amp;p[summary]=<?php the_excerpt(); ?>&amp;p[url]=<?php the_permalink(); ?>&amp;&p[images][0]=<?php the_post_thumbnail(); ?>"><img src="http://images.purabtech.in/facebook_32.png" title="Facebook" alt="Facebook" /></a>

For Twitter: social media bookmark in wordpress without javascript

Twitter Share

<a href="https://twitter.com/share" class="twitter-share-button" data-text="some description goes here.some description goes here.some description goes here.some description goes here.some description goes here." data-url="https://purabtech.in/create-install-script-drupal-module-create-tables/" data-related="anywhere:The Javascript API" data-via="purab">Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>

For Google plus: social media bookmark in wordpress without javascript

Google Plus

<a href="https://plus.google.com/share?url=http://54.214.47.229/test2.html?desc=foobar" onclick="javascript:window.open(this.href,
 '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;"><img
 src="https://www.gstatic.com/images/icons/gplus-64.png" alt="Share on Google+"/></a>

For Linked in: social media bookmark in wordpress without javascript

Linked In Share

<a rel="nofollow" target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=<?php the_permalink() ?>&amp;title=<?php echo urlencode(the_title('','', false)) ?>&amp;source=<?php bloginfo('pingback_url'); ?>&amp;ary=<?php the_excerpt(); ?>" title="LinkedIn">
<img src="http://images.purabtech.in/linkedin_32.png" title="LinkedIn" alt="LinkedIn" /></a>

For delicious: social media bookmark in wordpress without javascript

Delicious Bookmark

<a rel="nofollow" target="_blank" href="http://del.icio.us/post?url=<?php the_permalink() ?>&amp;title=<?php echo urlencode(the_title('','', false)) ?>" title="del.icio.us"><img src="http://images.purabtech.in/delicious_32.png" title="del.icio.us" alt="del.icio.us" /></a>

For Stumbleupon: social media bookmark in wordpress without javascript

Stumbleupon Share

<a rel="nofollow" target="_blank" href="http://www.stumbleupon.com/submit?url=<?php the_permalink() ?>&amp;title=<?php echo urlencode(the_title('','', false)) ?>" title="StumbleUpon"><img src="http://images.purabtech.in/stumbleupon_32.png" title="StumbleUpon" alt="StumbleUpon" /></a>

For Digg: social media bookmark in wordpress without javascript

Digg Share

<a rel="nofollow" target="_blank" href="http://digg.com/submit?phase=2&amp;url=<?php the_permalink() ?>&amp;title=<?php echo urlencode(the_title('','', false)) ?>" title="Digg"><img src="http://images.purabtech.in/digg_32.png" title="Digg" alt="Digg" /></a>

For Pinterest: social media bookmark in wordpress without javascript

Pin It

<a href="//www.pinterest.com/pin/create/button/?url=http%3A%2F%2Fwww.flickr.com%2Fphotos%2Fkentbrew%2F6851755809%2F&media=http%3A%2F%2Ffarm8.staticflickr.com%2F7027%2F6851755809_df5b2051c9_z.jpg&description=Next%20stop%3A%20Pinterest" data-pin-do="buttonPin" data-pin-config="above"><img src="//assets.pinterest.com/images/pidgets/pinit_fg_en_rect_gray_20.png" /></a>

For Mixx: social media bookmark in wordpress without javascript

Mixx Share

<a rel="nofollow" target="_blank" href="http://www.mixx.com/submit?page_url=<?php the_permalink() ?>&amp;title=<?php echo urlencode(the_title('','', false)) ?>" title="Mixx"><img src="http://images.purabtech.in/mixx_32.png" title="Mixx" alt="Mixx" />

For Reddit: social media bookmark in wordpress without javascript

Reddit Share

<a rel="nofollow" target="_blank" href="http://reddit.com/submit?url=<?php the_permalink() ?>&amp;title=<?php echo urlencode(the_title('','', false)) ?>" title="Reddit"><img src="http://images.purabtech.in/reddit_32.png" title="Reddit" alt="Reddit" /></a>

For Mail: social media bookmark in wordpress without javascript

Mail to

<a rel="nofollow" target="_blank" href="mailto:?subject=<?php echo urlencode(the_title('','', false)) ?>&amp;body=<?php the_permalink() ?>" title="E-mail this story to a friend!">
<img src="http://images.purabtech.in/email_32.png" title="E-mail this story to a friend!" alt="E-mail this story to a friend!" /></a>

For RSS feed: social media bookmark in wordpress without javascript

RSS feed

<a rel="nofollow" target="_blank" href="https://purabtech.in/feed" title="RSS">
<img src="http://images.purabtech.in/rss_32.png" title="RSS" alt="RSS" /></a>
social media bookmark in wordPress without javascript
social media bookmark in wordPress without javascript

I used following URL as reference.
How to Add the social Bookmark Icons in WordPress theme without wordpress plugins

Create Widgets using Visual Editor via WYSIWYG Widgets plugin

Many times we want to create just simple text and image widget using the wysiwyg editor. using WYSIWYG Widgets create HTML and image or media in text widget.

Create Widgets using Visual Editor

WordPress widgets are very important in CMS. In every CMS like WP and Drupal we have sidebar widgets. In Drupal creating a sidebar is very easy. WordPress cannot give you default and easy create widget or sidebar functionality. Many times we want to create just simple text and image widget using the wysiwyg editor. There are many easy ways to create widget using text widget functionality. We can add the HTML and image or media in text widget.

With text widget we can add the HTML, CSS and images code in text widget and show in sidebar or footer section. But many times admin does not know about CSS and HTML but still admin wants to add the images and formated text in widgets. There is very nice wordpress plugin which will give you ability to add the widget with formated text and images.

WYSIWYG Widgets

Create Widgets using Visual Editor
Create Widgets using Visual Editor

WYSIWYG Widgets or rich text widgets

This plugin adds so called “Widget Blocks” to your website which you can easily display in your widget areas. Edit widget content using the default WordPress visual editor and media uploading functionality. Create widgets like you would create posts or pages.

You can create or edit the widget blocks just like you would edit any post or page, with all the default WordPress editing functions enabled. This way, you can use the visual editor that comes with WordPress to format your widgets. You can even use media uploading to insert images and so forth.

Create Widgets using Visual Editor config
Create Widgets using Visual Editor config

Features:

  • Create beautiful widgets without having to write HTML code
  • Easily insert media into your widget content
  • Add headings, lists, blockquotes and other HTML elements to your widgets using the WordPress visual editor
  • Use WP Links dialog to easily link to any of your pages or posts from a widget
  • Use shortcodes inside your widgets
  • Translation ready

First install the install and activate the WYSIWYG Widgets plugin. Then install and activate the WYSIWYG Widgets plugin. go to Widget Blocks » Add New to create a new widget block. Basically Widget Blocks are custom post types and every post will became new widget. It is very cool and easy to use. It is useful when you are giving the all the control to admin.