Saturday, November 29, 2014

How to fix wordpress White Screen Death

If you have been using WordPress for a few years, then you have encountered the white screen of death at least once. The WordPress white screen of death is one of those extremely annoying problems like. The reason why this issue is frustrating for users is because it locks you out of your WordPress admin panel. Because there is no error output in most cases, you are left clueless to figure out what is the issue. The worst thing about white screen of death is that sometimes it will only affect a certain part of your site. For example, you may only see the white screen of death on your WordPress admin while everything else works fine. In other cases, you may only see it on a specific post whereas everything else runs just fine. In this article, we will show you how to fix the WordPress white screen of death by looking at a few possible solutions.
Note: Before you make any changes to your site, make sure you have sufficient backups.

Why do you get this error?

Majority of the time when you see a white screen of death, it means that you exhausted the memory limit. This could be caused by a plugin that you may be using that is not functioning properly. It could also be caused by a poorly coded theme that you are using. It could also mean that there is an issue with your web hosting server. Since the problem can be caused by any number of things, it may require a lot of troubleshooting.

Does the problem occur on your other sites?

If you have multiple sites, then the first thing you should do is to make sure that the white screen of death is happening across the board or just on this one domain. If the issue is with all of your sites, then it is a strong indicator that your web hosting provider is having some issues. However, if the issue is only with one of your sites, then this could be an issue with a plugin or theme that you are running. If the issue is only happening with a single post or page, then you know it is definitely a problem with your specific site.

Increasing the Memory Limit

Usually this issue happens because your memory is being exhausted.

Disabling All Plugins

If increasing the memory limit did not help, or if you have a high memory limit like 256M or 512M, then you need to start troubleshooting. In our experience of troubleshooting this issue, we have always found that the issue is either with a specific plugin or a theme. Let’s go ahead and disable all the plugins.
If this fixes the issue, then enable one plugin at a time to get to the bottom of the issue.

Replace Theme with a Default Theme

If the plugin troubleshooting doesn’t fix the issue, then you should try replacing your current theme with a default twenty ten theme. The best way to do this is by backing up your theme folder. Then deleting the theme. WordPress will automatically fall back to the default theme.
Alternatively, you can go in your phpMyAdmin and update the database tables in wp_options table. The following table names would have to be updated:
template, stylesheet, and current_theme. Change the value to twentyeleven.
If this fixes the issue, then you should look at your theme’s functions.php file. If there are extra spaces at the bottom, then you should consider fixing it. If you are using a poorly coded function in your theme’s functions.php file, then it can cause this as well.

Other Fixes

If none of the above fixes it, then you should try to re-install a fresh copy of WordPress. While it is unlikely, but it is always possible that a core file may have been corrupted.
You can also use the WordPress debug function to see what type of errors are being outputted. Add the following code in your wp-config.php file.
1error_reporting(E_ALL); ini_set('display_errors', 1);
2 
3define( 'WP_DEBUG', true);
Once you add this, the blank screen will now have errors, warnings, and notices. These may be able to help you determine the root cause.
Sometimes, you may have access to the backend, but the front-end of the site has white screen of death. This can happen because of a caching plugin. Simply empty your cache.
If you have a white screen of death only on a very long post page, then you should also try to clearing cache. Another trick that we have found to work is increasing the recursion and backtrack limit. You can paste the following code in your wp-config.php file. Or in some servers you will be required to modify your PHP.INI file.
1/** Trick for long posts */
2ini_set('pcre.recursion_limit',20000000);
3ini_set('pcre.backtrack_limit',10000000);
We understand that this is a very frustrating error, and we hope that one of the tricks above fixed the issue for you. What have you tried that seemed to work for you? If you found another solution to work, then please let us know. We would be happy to expand on this resource, so others do not have to waste as much time finding a solution.

Thursday, November 27, 2014

How to create ,insert, reverse, delete and display doubly linklist

#include<iostream.h>
#include<conio.h>
#include<malloc.h>
#include<process.h>
void create_list();
void display();
void addatbeg( );
void addafter(int);
void del(int);
void rev();



struct node{
        char name[20]; //name
        int r_no; //roll no
        int con_no; // contact no.
       struct node *next;
       struct node *prev;
}* start;

int main(){

int choice,n,position,i;
int a;
int b;
start=NULL;
while(1)
{
cout<<"1. Create List"<<endl;
cout<<"2. Display List"<<endl;
cout<<"3. Add at Begining"<<endl;
cout<<"4. Add in middle"<<endl;
cout<<"5. Deletion"<<endl;
cout<<"6. Reverse"<<endl;
cout<<"7. Quit Program"<<endl;


cin>>choice;
switch(choice)
{
case 1:
cout<<"How many Nodes you Want? "<<endl;
cin>>n;
for (i=1;i<=n;i++)
{

create_list();
}
break;
case 2:
display();
break;
case 3:
    

addatbeg();
break;
case 7:
exit(0);
case 4:
    

cout<<"Enter position";
cin>>position;
addafter(position);
break;
case 5:
     int m;
     cout<<"enter Element to be deleted"<<endl;
     cin>>m;
     del(m);
     break;
     case 6:
          rev();
          display();
          break;
     default:
cout<<"Wrong Choice"<<endl;
}
}
getch();
return 0;
}
void create_list()
{
struct node *q,*tmp;
tmp=(node *)malloc(sizeof(struct node));
cout<<"Enter name"<<endl;
cin>>tmp->name;
cout<<"Enter the roll no: "<<endl;
cin>>tmp->r_no;
cout<<"Enter contact no"<<endl;
cin>>tmp->con_no;

tmp->next=NULL;
if(start==NULL)
{
tmp->prev=NULL;
start=tmp;
}
else
{
q=start;
while(q->next!=NULL)
q=q->next;
q->next=tmp;
tmp->prev=q;
}
}
void display()
{
struct node *q;
if(start==NULL)
{
cout<<"Empty List"<<endl;
return;
}
q=start;
cout<<"List is: "<<"\n"<<endl;
while(q!=NULL)
{
cout<<q->name<<"\t";
cout<<q->r_no<<"\t";
cout<<q->con_no<<"\t";
q=q->next;
}
cout<<"\n";
}
void addatbeg()
{
struct node *tmp;
tmp=(node *)malloc(sizeof(struct node));

cout<<"enter name"<<endl;
cin>>tmp->name;
cout<<"enter roll no"<<endl;
cin>>tmp->r_no;
cout<<"enter con_no."<<endl;
cin>>tmp->con_no;

tmp->prev=NULL;
tmp->next=start;
start->prev=tmp;
start=tmp;
}
void addafter(int pos)
{
struct node *tmp, *q;
tmp=(node *)malloc(sizeof(struct node));
int i;
q=start;
for(i=1;i<pos-1;i++)
{
q=q->next;
if(q==NULL)
{
cout<<"There are less elements"<<pos;
return;
}
}
tmp=(node *)malloc(sizeof(struct node));
cout<<"Enter Name"<<endl;
cin>>tmp->name;
cout<<"Enter roll no"<<endl;;
cin>>tmp->r_no;
cout<<"Enter Contact no"<<endl;
cin>>tmp->con_no;

q->next->prev=tmp;
tmp->next=q->next;
tmp->prev=q;
q->next=tmp;
}

void del(int data)
{
     struct node *q,*tmp;
     if(start->r_no==data)
     {
                          tmp=start;
                          start=start->next;
                          start->prev=NULL;
                          free(tmp);
                          return;
                          }
                          q=start;
                          while(q->next->next!=NULL)
                          {
                                                    if(q->next->r_no==data)
                                                    {
                                                                           tmp=q->next;
                                                    q->next=tmp->next;
                                                    tmp->next->prev=q;
                                                    free(tmp);
                                                    return;
                                                    }
                                                    q=q->next;
                                                    }
                                                    if(q->next->r_no==data)
                                                    {
                                                                           tmp=q->next;
                                                                          
                                                                           q->next=NULL;
                                                                           free(tmp);
                                                                           return;
                                                                           }
}
void rev()
{
     struct node *p1,*p2;
     p1=start;
     p2=p1->next;
     p1->next=NULL;
     p1->prev=p2;
     while(p2!=NULL)
     {
                    p2->prev=p2->next;
                    p2->next=p1;
                    p1=p2;
                    p2=p2->prev;
                    }
                    start=p1;
}
              
                                                                               

Monday, November 10, 2014

How to add traffic counter widget to your website or blogger?

I have added traffic widget counter to this blog . Its very easy and simple , there are many websites that provide traffic counter widget. If u don't know any website that provide widget then just go to this website http://24counter.com Now follow the below steps:


1. Go to Blogger >Layout>Add New Widget
2. Then copy the HTML from the website and paste it in new Widget. Save it and thats all.
3. Now you will be able to see all visitors that visited or online.

Thursday, November 6, 2014

How to change value of any declared and initialized integer by pointer?

Pointer is a powerful tool in C++. Pointer is a variable which contains address of variable. Let us declare 
a=30;
If we want to change the value of a then we usually type this code ;
a=40;
But using pointer we can change the value of a through its memory location without disturbing a this is the main thing that pointer enable us to make changes.
Here is an example.
#include<iostream>
#include<conio.h>
using namespace std;
int main()
{
    int a=50; //declare and initialize a
    cout<<"The value of a before "<<a;
    int *b; //declare pointer
    b=&a;   //pass address of a to b
    *b=100; //change value of a by pointer
    cout<<"\nThe value of a after changing "<<a;
getch();
}

The output of above program is :

Wednesday, October 29, 2014

How to Buy Domain and Hosting Package Easily in Pakistan?

If you wanna buy a domain and hosting package from godaddy or other companies then its very difficult to pay money if you don't have credit card and paypal account. If you don't have paypal account or credit card ,don't worry you can still buy domain and hosting package very easily in Pakistan. You will find many web hosting companies spreading around the Pakistan, offering services like unlimited bandwidth, and unlimited space, but when you have paid for their services you only find that majority of these hosts provide sub standard services with servers down and slow page load issues. This will never happen with HosterPK servers, as we provide competitive prices, yet our main objective is providing reliability and fast customer support. So if you are looking for a reliable hosting company in Pakistan, having latest features, with fast and reliable services and support then HosterPK  will be your best choice.



 About Hoster PK

HosterPK is a Pakistan based web hosting company, providing both providing reliable hosting services since 2009. Although we are a Rawalpindi based company, but as with any online business we provide services to all Pakistan cities with more than 3000 customers from all over Pakistan including Karachi, Lahore, Islamabad, Peshawar Quetta etc. Since its launch in 2009, HosterPK has achieved a remarkable success, in a very short time, we are currently 3rd largest hosting company in Pakistan with more than 3000 clients. Our vision is to provide internaltion standard services to our clients.
We provide hosting for both of our Linux Servers and Windows Servers, equipped with the latest technologies and features available. Looking for new features and cant find it anywhere? Look no further, because HosterPK definitely has it.


How to Place an Web Hosting Order with HosterPK

Click here HosterPk Website

1. Select your hosting package. You can choose any package based on your budget or your website requirements. Packages include Plan I (with 1GB space with cost of PKR Rs. 1,700/year) Plan II (with 2GB space and cost of PKR Rs. 2,200/year) and unlimited packages.
package
2. Once you have selected the hosting package you can directly click on the “Order Now” button against it to order. However if you need to see complete package details you can click on the ‘Click for More’ button to see full package details.
Order
3. Once you click on the Order Now button you will be taken to the 1st step of the order process.
4. Here you will need to choose a domain name. From the drop down you will be able to choose different extensions like (.com, .net, .org etc). Once domain is selected click on the ‘Click to Continue’ button. If the domain is available it will display ‘Available’ with option to continue. Otherwise ‘Unavailable’ text will be displayed.
Note that if you are trying to transfer your domain name to us (e.g. you are moving from another hosting company to us) then you will need to select the 2nd option i.e. “Transfer your existing domain to us”
Select domain
5. If the domain is available you can check the check mark and click on the ‘Click to Continue’ button to proceed to the next step.
Domain available
6. On the next step you can choose your billing cycle and also if you require a the platform you are interested in. Click on the ‘Click to Continue’ to proceed to next step.
Product configuration 7.The next page is your order summary.You will review your order in this step.
step3Order summary
8. The next page is your signup page with us. You will need to provide your information      e.g. Name, Address etc to signup with us.
Registration form
9. On the next step please choose your preferred payment method and click on the ‘Complete Order’ after accepting our terms of service.
payment
10. Now your order is placed with us. Only the payment needs to be made. You can pay using any payment options listed here: Payment Options

11. Once your deposit is made, simply confirm them using this form: http://www.hosterpk.com/dc
deposit confirmation

 

Wednesday, June 11, 2014

How to increase followers on twitter

Like other online social stages, un-made organizations can't resist the opportunity to take a gander at Twitter as an intends to advertise an item or business. While the utilization of Twitter as a device for social mindfulness (as we've as of late seen in Tunisia and Egypt) is a reviving change from the standard, Twitter is fundamentally only one more stage where organizations with little plan attempt to request potential customer base through discrete and unmistakable promotions. On the off chance that you are attempting to increase a devoted and intuitive after, offer accommodating goodies of exhortation without looking for anything in exchange. Make a curious perception about your life that individuals can identify with. Put forth a destination expression about your business that will start a talk with your adherents. On the off chance that connections are incorporated in your Tweets, connection to accommodating articles or exhortation sections – not to a point of arrival loaded with gimmicky publicizing duplicate or free offers. 









Focus On Quality, Not Quantity

A portion of the dodgy purported "specialists" may encourage you to post Tweets in pieces, so your messages emerge less demanding. I'm certain you've all seen what I'm discussing – an arrangement of 8 or 9 Tweets in succession by the same individual, as an endeavor to catch a substantial fragment of your Tweet bolster. This is inside and out irritating and a deceptive methodology to picking up reputation (if that is the thing that you might want to call it). I quickly erase anyone who actualizes this procedure. On the off chance that you truly need to increase an after that is advantageous instead of spamming Tweet sustains, make quality posts that captivate your group of onlookers. Likewise attempt to post a couple times each week. You can additionally track the execution of your posts for the duration of the day. Not utilizing connections within your Tweets? You can attempt to track the adequacy of your posts by the reactions you accept. So it may be more beneficial to post at 8:30pm, when everybody is finished with supper and more loose. Try different things with booking and figure out when you accept the most reactions.

Use Hash Tags 

By using hashtags in your Tweets, your presents get to be less demanding on find – which can draw in more supporters. For instance, say you need to Tweet in regards to your business. Presently when somebody does a quest for #business, just the posts that used the #business hashtag will appear in the list items. This is a considerably more particular strategy for seeking on Twitter – general clients are exceptionally acquainted with hashtags. This additionally demonstrates to you which clients are utilizing that same hashtag. You can then decide to tail them and trust they tail you back. Hashtags are likewise an incredible approach to Tweet about occasions. On the off chance that you have a substantial gathering of clients who need to utilize Twitter some time recently, throughout, or after an occasion, simply have everybody utilize the same hashtag.

Use Twitter Lists


Notwithstanding, I rapidly turned into a gigantic fan. Twitter records are an incredible path for discovering theme particular individuals to take after. I frequently pursuit records that incorporate compelling individuals in my field, then take after the other Twitter clients on that schedule. Looking through records kills the majority of the diligent work – discovering industry-particular clients. On the off chance that you start to make famous records that draw in numerous adherents, you are more inclined to increase extra investment – because of the reality they are planning to get added to your list(s).

I'm a tremendous aficionado of Twunfollow, a free apparatus that gives you a chance to track those clients who quit tailing you. Tailing somebody who tails you is a general decent karma methodology to utilizing Twitter – unless the client being referred to is a clear sham. However numerous people groups utilize a subtle procedure to re-adjust their "after" to "supporters" degree. Rehash this procedure and you can see that the following:followers degree can rapidly be controled. The hypothesis behind this strategy: having more adherents and after less individuals is an appealing Twitter quality. Apparently the unevenness with this degree suggests you are a prominent Twitter figure and worth a take after appeal. This thusly (again as indicated by some individuals) makes you a more alluring focus for individuals to take after. As I would like to think, this is a secondary school methodology to survey the following:followers degree. I give careful consideration to this degree. Anyhow I stray. Notwithstanding my perspective on this control, Twunfollow is an extraordinary instrument that sends you every day email overhauls on who quits tailing you.

Thursday, June 5, 2014

C++ Program to print heart shape using pointer

#include<iostream>
#include<conio.h>
using namespace std;
int main()
{
char x=3;
char *a;
a=&x;
cout<<"\I\t"<<*a<<"\tProgramming";
getch();
return 0;
}