Category Tech & Tutorials

How to Know What is Error in wordpress Website?

To identify errors on your WordPress website, follow these steps:

  1. Enable WordPress Debugging: In your WordPress installation, locate the wp-config.php file and open it in a text editor. Look for the line that says “define(‘WP_DEBUG’, false);” and change it to “define(‘WP_DEBUG’, true);”. This enables the debugging mode in WordPress, which will display error messages on your site.
  2. Reproduce the Error: Visit the page or perform the action that is causing the issue on your website. This will trigger the error and generate the error message.
  3. View Error Messages: After reproducing the error, refresh the page, and you should see specific error messages displayed on your website or in the browser’s console. These error messages will provide information about the nature of the error and where it occurred.
  4. Check the Error Logs: If error messages are not displayed on your website, you can check the error logs on your web server. The location of the error logs depends on your hosting provider and server configuration. Common places to look for error logs are the “error_log” file or the “logs” directory in your hosting account. Contact your hosting provider if you’re unsure where to find the error logs.
  5. Troubleshoot the Error: Once you have identified the error message, search for it online to find possible solutions. WordPress forums, developer documentation, and plugin/theme support forums can be helpful resources. Look for the specific error message or any relevant codes or keywords mentioned in the error message.
  6. Disable Plugins and Themes: If the error is caused by a specific plugin or theme, try disabling them one by one to pinpoint the source of the issue. Temporarily switch to a default WordPress theme (such as Twenty Twenty-One) and deactivate plugins to see if the error persists.
  7. Restore from Backup: If you made recent changes to your website, such as installing a new plugin or updating WordPress, and the error occurred afterward, consider reverting those changes by restoring your website from a backup. This can help undo any modifications that may have caused the error.

If you are unable to resolve the error on your own, consider seeking assistance from a WordPress developer or support community who can provide more targeted help based on the specific error message and circumstances.

To identify errors on your WordPress website:

  1. Enable WordPress Debugging: Open the wp-config.php file and change “define(‘WP_DEBUG’, false);” to “define(‘WP_DEBUG’, true);”. This displays error messages.
  2. Reproduce the Error: Trigger the issue on your website.
  3. View Error Messages: Check for error messages displayed on your site or in the browser’s console.
  4. Check Error Logs: Look for error logs on your web server. Contact your hosting provider for assistance.
  5. Troubleshoot the Error: Search online for the error message to find solutions. Use WordPress forums and plugin/theme support.
  6. Disable Plugins and Themes: Temporarily disable plugins and switch to a default theme to identify the source of the error.
  7. Restore from Backup: If recent changes caused the error, restore your website from a backup.

If unable to resolve the error, seek assistance from a WordPress developer or support community.

How to Increase Upload Size in All In One Plugin

How to increase size All In One Plugin in WordPress By Code Edit

Read More
How To Fix A Stuck All-in-One WP Migration Import Plugin In WordPress

Download Old Version of Plugin Install the Older Plugin – Version 6.7

The best tool for migrating your WordPress website from one host to another is without a doubt the All-in-One WP Migration plugin. It really is simple; I used it myself just a few days ago to move my website. The usage of this plugin is easily explained in our excellent tutorial. Obviously, you can contact our team to have the migration done for you if you just bought hosting from NameHero. This plugin is ideal if you want to do it yourself because it won’t happen immediately.

However, there are two potential issues with the import process:

The import gets “stuck” at 100% because your WordPress installation’s upload limit is too low. You can fix the first issue by changing your PHP upload limits in the NameHero tutorial I linked above. The solution is to modify the following two variables in your PHP settings on cPanel:

upload_max_filesize and post_max_size ought to handle upload limitations. However, what happens if the plugin stops the import? Then you can’t do anything. As a result, you must find a different method to restore backups.

Using Backup Restore instead The solution to the “stuck import” issue is to use a different method to get your file into the All-in-One migration plugin. It requires that you upload your export file to the ai1wm-backups folder in wp-content and then use the “Backup” option to locate the file and restore it.

Sadly, only the earlier version of the plugin, which included it for free, can use this feature. It has been upgraded to the paid tier in more recent plugin versions. Fortunately, the older versions of the plugin are freely accessible on the WordPress website, where a complete changelog and repository of all previous versions are kept. This is the method for you if you have a small website and don’t want to pay the fee to make up for a slow import process.

Installing the Older Version of a Plugin: Version 6.7 The WordPress plugin repository stores all of a plugin’s previous versions. Version 6.7 of the All-in-One WP Migration plugin is available for download. Make a zip file from the downloaded files and folders. The older version of the plugin can be manually installed using WordPress’s “Plugin Upload” feature from this point on.

Uploading your Export File to wp-content/ai1wm-backups In contrast to uploading a file through the WordPress interface, you can now upload it through cPanel on NameHero’s file manager or any custom file manager your hosting provider offers. There shouldn’t be any size restrictions this time. Place the exported file in the following WordPress installation folder:

wp-content/ai1wm-backups If you have already installed the plugin’s version 6.7, you won’t need to create this folder because it should already exist. After you have finished uploading, you can now go to the All-in-One WP Migration plugin’s “Backups” section. There, you should find this file, which you can restore without a hitch!

Should You Purchase the Plugin’s Premium Version?
The ability to import files larger than 512 MB is, in my opinion, the main advantage of the premium version of the All-in-One WP Migration plugin. This refers to the size of the backup file that the plugin will import, not the upload limit set by your web host. If your website is larger than 512 MB, it is quite large, and you should think about purchasing the plugin’s premium version. I think it’s totally worth it to have such a simple process when considering how difficult it can be to switch web hosts.

In the interim, this solution ought to be of use to you if you run a small website and your import keeps getting stuck while uploading!

An aside: For optimal security, you should either update or remove the plugin after you finish.

How to Edit the Comments Background on a WordPress Blog

Go To Theme Customize

go to Appearance → Customize → Additional CSS:

Paste Code In Text Aria

#respond #commentform textarea {
background-color: #1A0000;
}
#respond #commentform .text,
#respond #commentform textarea {
color: #FFFFFF !important;
	font-size : 20px;
}


For Selected Text

::selection {
  color: black;
  background: white;
}

Note : Change Backgroud Color and Font Color With Your Choise
How to Change Password/Username of phpMyAdmin

how to change Password and username of phpMyAdmin In WordPress

Go to your hosting provider Control pannel

then go to database and change the password

then go to file manager of your website look config.php file

edit this file

/** Database password */
define( ‘DB_PASSWORD’,………. change password here same as previous changed database password in hosting control pannel

then save.

You Can Use Same Password of datebase Usename and password for phpMyAdmin

for changing username, you can create new database with new username according to hostinger

How to Change SSH, Filezila, Filemanager Password?

go to Control Pannel of Your Hosting Provider

Look And Change SSH Password

This Changed Password working for SSH, Filezila, Filemanager

How to change Startup Logo in WordPress
ContactForm in WordPress without Plugin

How to Create Contact Us Form In WordPress Without Pluggins?

How to receive email on Direct on your Email inbox

Here is Step by Step Tutorial and Source Code Free to Use.

Step 1

Open File Manager in Your Website (if You have not Installed File Manager in Your Website, go to Plugins to Download and install File Manager In WordPress, You can Also Explore WordPress Files By Your Hosting Provider Control Pannel)

Create a New Folder and also Create a New PHP File inside New Folder.

Sample :- File Name : "Conatct.php", Folder Name "contact", Location : "public_html/conatct/contact.php"

(Note :- This is sample only. You can use diffrent PHP File Name and Folder Name and File locations.)

Step 2

Copy this PHP Code and Paste it to inside PHP File by Edit File Right Clicking on PHP File, Then Edit By Highlighted Text Inside Code Then Save It.


<?php
$conPage='https://youwebsite.com/contact/'; //Add Your website contact page url,

$domNam=str_replace('www.','',$_SERVER['SERVER_NAME']);
$refEr=$_SERVER['HTTP_REFERER'];

if($conPage==$refEr){ // validate get only data from your mention website url;

$parameter = $_SERVER['QUERY_STRING'];
$idArray = explode('&',$parameter);
?><?php

$to = 'your@email.com'; //Change to Your Email Address, Where You Receive Contact Emails;

$subject = "Contact - $domNam";

$from = 'your@website.com'; //Change to Your Source Email Address, receiving Emails From This Email Address;
 
$headers  = 'MIME-Version: 1.0' . "\r\n";  // To send HTML mail, the Content-type header must be set
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
 // Create email headers
$headers .= "From: '$domNam' ".$from."\r\n".
    'Reply-To: '.$from."\r\n" .
    'X-Mailer: PHP/' . phpversion();
 
// Custome html form fiels visible into your email
$message = '<table width="690" cellspacing="0" cellpadding="0" border="0" align="center"><tbody><tr><td bgcolor="#F0F0F0">
<table width="640" cellspacing="0" cellpadding="0" border="0" align="center">
<tbody><tr><td height="16"></td></tr><tr>
<td style="font-family: arial,Arial,sans-serif;text-transform:uppercase;font-size: 25px;">
<b>'.str_replace('www.','',$_SERVER['SERVER_NAME']).'</b></td></tr><tr><td height="16"></td></tr>'; ?>
<?php
 foreach ($idArray as $index => $avPair) { list($ignore, $value) = explode("=", $avPair); $id[$index] = $value;  $message .='
<tr>
<td align="left" bgcolor="#FFFFFF"><div style="border-style:solid;border-width:1px;border-color:#cccccc;    margin-bottom: -1px;">
<table width="625" cellspacing="0" cellpadding="0" border="0" align="center"><tbody><tr><td height="15" colspan="3"></td>
</tr><tr><td width="15"></td><td width="600"><div style="font-family:arial,Arial,sans-serif"><table cellspacing="0" cellpadding="0" border="0">
<tbody><tr><td width="100" style="color:#787878;text-transform: capitalize;font-size:13px;"><b>'. str_replace('-',' ',$ignore).': </b>
</td><td width="15"></td><td><div style="color:#929292;line-height:24px;font-size: 14px;">'. urldecode(str_replace('+',' ',$id[$index])).'
</div></td></tr></tbody></table></div></td><td width="15"></td></tr><tr><td height="15" colspan="3"></td></tr></tbody></table>
</div></td></tr>'; } ?><?php
$message .= '<tr><td height="16"></td></tr><tr><td align="left"><table cellspacing="0" cellpadding="0" border="0" align="center">
<tbody><tr><td width="498"><div style="font-family:arial,Arial,sans-serif;font-size:11px;color:#999999;line-height:13px;text-align: center;"> ©  '.date('Y').' Developed by <a style="color: #999999;text-decoration: none;" href="https://shrimuktsarsahib.com/" target="_blank">PB INDIA</a></div>
</td></tr></tbody></table></td></tr><tr><td height="22"></td></tr></tbody></table></td></tr></tbody></table>';

 if(mail($to, $subject, $message, $headers)){
//echo '<h2 style="font-family: system-ui;"><b>Your Message was Sent Successfully</h2>';
echo"<br>";
echo "<p style='text-align: center;font-family: system-ui;'>Your Message was Sent Successfully</p>";
header( 'refresh:1;url='.$_SERVER["HTTP_REFERER"] );
 }
 else  { echo 'Error Unable to send message. Please try again.';  header( 'refresh:1;url='.$_SERVER["HTTP_REFERER"] );
}
?><?php } else {echo "<p>Sorry, You are not allowed to access this page!</p>";  exit(); } ?>

Step 3

Create a Contact Page in WordPress Website. Edit this Page add “Custom html” by Searching html in Post Creation Tools

Copy This Code and Paste it to your New Contact Page with Custome HTML Blog


<!DOCTYPE html>
<html lang="en">
<body>
    <form action="https://yourwebsite.com/folder/contact.php" method="get"> //change php file link here
        <p><label><span><input type="text" name="your-name" value="" size="40" required="required"
                        placeholder="Name"></span></label></p>
        <p><label><span><input type="text" name="your-email" value="" size="40" required="required"
                        placeholder="Enter Your Email"></span></label></p>
        <p><label><span><input type="text" name="your-message" aria-invalid="false" size="40"
                        style="border: radius 50px" placeholder="Enter Message Here"></label></p>
        <p><button class="btn" type="submit">Submit</button></p>
    </form>
</body>
</html>

Now You Can Check Your Contact Form was Successfully Work.

if facing any problem please comment only for contact form related comment. do not type other promotional comment here.

Thanks For Visite ❤

How to reduse Blog Post Size in WordPress on Frontpage?

First You Know What is Main Contents in Post Coding

  1. the_post()
  2. the_excerpt() Source

Replace Code “the_post()” by the_excerpt() in “……..” in Them File Editor.

burning mode
How to exit from Burning Mode in Compaq S2021A Monitor?

(100% Solved)

I accidentally put it on DVI mode in the monitor settings. So I pressed some buttons on it to reset it. But the monitor is now only blinking colors like red, white, black and gold. how to exit blinking, i pressed the button many times but not working, Motherboard L9372-1N/48.7E203.01 Interface bd l9137-1m

burning mode

First You know why this problem has come.

Two functions have been given by the company to source the monitor, first automatic and second manual. And there are two source options available in Moniot one is VGA and the other is DVI. If you connect cable to any source by keeping it in auto mode, then automatically you will not have any problem in connecting any cable. But when you put the monitor in manual mode and select the DVI source and connect the VGA cable to the port instead of DVI, you will automatically get the problem of colorblinking (burning mode).

How to solve this problem ? 100% Verified Answer

First you need DVI (input to moniter) cable

In my case i bought this HDMI (Female) TO DVI (Male) wire from Amazon.

  1. Connect HDMI cable in output source in Laptop or cpu
  2. Then connect HDMI TO DVI cable to HDMI Cable Female Side
  3. Then connect HDMI TO DVI to with DVI Port Side monior
display color blinking
Direct LInk :- HDMI TO DVI

In your case according to your cpu output port or other output source you can buy vga to dvi, hdmi (male) to dvi (male), dp to dvi, …. other convertion cable other port to dvi. use this cable from VGA To DVI .

Your Problem will be solv 10000%…. if yur probles was solved then comment here for congrtulations

Thank reading This Post. Hope Your Monitor Burning Mode Problem Solved

Suggest to Monitor Companies Please make hard Reset Button On Backside of LCD Pannel, will everything can rest

Thanks…

How to Print Input Type In PHP

Use This Code To Type and Print or echo input value In PHP

<form action="" method="post">
<input type="text" name="nm">
<input type="submit" name="sub">
</form>
<?php
if (isset($_POST['sub']))
{
echo $_POST['nm'];
}
?>