Error |
X

Congrats, You are Subscribed to Receive Updates.

Cannot reinitialise JQuery DataTable

Cannot reinitialise JQuery DataTable . DataTables warning: table id={id} – Cannot reinitialise DataTable. This is a common error sometimes we couldn’t solve it. There is some reason behind it for the warning. The error occurs when we pass it directly. $('#example').dataTable( { paging: false } ); $('#example').dataTable( { searching: false } ); For some cases it will help you to solve it. $('#example').dataTable( { paging: ...

Illegal string offset Warning PHP

Illegal string offset Warning PHP. Whenever you see this error. you will feel that its messed up our code. But its a simple mistake we did it on the array of parameter.  Normally we have an array with key and its value as like the following one. <?php $test_array = array( 'first_key' => 'first', 'second_key' => 'second', 'third_key' => 'third', 'four_key' => 'four' ); ?> ...

Fixing ‘Can’t use function return value in write context’ in PHP

Fixing ‘Can’t use function return value in write context’ in PHP.  The error comes when your php is lower than 5.5. Yes, if you upgrade your php version the problem may be solved.   if  you dont want to upgrade your php,  than check the error line,  you have write something similar to the following one. empty(trim($variable)) Instead of this function,  just write like the ...

Check Whether a Page is 404 or not Using PHP

Check Whether a Page is 404 or not Using PHP
Check Whether a Page is 404 or not Using PHP. Here in certain situations we need to know the page it whether 404 or not. Here I have some simple php codes to  find it through programmatically. Just use the following code to detect it yourself. $kv_uri = 'https://www.kvcodes.com/testin-url-for-404-error' ; $kv_res = kv_get_page_title($kv_uri); The above code will call a function with parameter of our url ...

WordPress Form Validation with WordPress Error Class

WordPress Form Validation with WordPress Error Class
WordPress Form Validation with WordPress Error Class  is one of the way to handle the Form validations without using jQuery and AJAX. Here is a short example with HTML form and WordPress validations. Let’s move to the code work. Create a sample form just like the following one. <form name="kv-contact" id="kv-contact" method="post" action="" > <table name="form_table_find_aPlate" > <tr> <td>Name <span class="star-form"> * </span></td> <td> <input ...

Solution for “The plugin generated x characters of unexpected output during activation”

Solution for “The plugin generated x characters of unexpected output during activation” is very simple. Most of the time, we face such unavoidable errors and warnings to disturb you while coding.  The most Irritating error for me is ” If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.”. Lets move to our topic. In certain ...

E-Mail Message required Error Solution – Opencart

E-Mail Message required Error Solution – Opencart
Hi , those who come across the problem during your sending mail from your admin section. Here i have some suggestions and tried methods to solve your issue. It may help you to solve the problem. The first foremost aspect is getting form data’s using jQuery is one of the problem, because, in default, jquery gets value of a html textarea. But Here we are ...

Menu

Sidebar