Posts

Showing posts with the label PHP

Real Estate 7 "Warning: Cannot assign an empty string to a string offset"

Image
screenshot from ThemeForest Are you one of the devs or company which is using the Popular real Real Estate 7  in WordPress, well you might also face an issue about an error that looks like this below. "Warning: Cannot assign an empty string to a string offset —  class.wp-scripts.php " We write this article to help those who is currently facing the issue so what we do is locate the error line from class.wp-scripts.php  and make sure you replace it with the following code. Original Code: /*$l10n[ $key ] = html_entity_decode( (string) $value, ENT_QUOTES, 'UTF-8' );*/ Replace with this Code: if (!empty($value)) { $l10n[$key] = html_entity_decode( (string) $value, ENT_QUOTES, 'UTF-8'); } also, make sure that you are using a PHP version 7.0 or 7.1 and above so you can enjoy using this theme RE7 without any problems, and also before you start installing the demo of the themes make sure that you activate all the suggested plugins mention on the theme. Booking Calend...

How to Remove URL Text Field on WordPress Default Comment Box?

Image
This is one of the common question for every blogger which is using the WordPress CMS platform for blogging, and by default it has 4 field in comment section below each post (Name, Email, Website, and Comment). Now as we all know that not all users or visitors got a personal website so some blogger asking "How to Remove the Website Text Field on WordPress". Just copy the code below; add_filter('comment_form_default_fields', 'remove_url');  function remove_url($fields)  {  if(isset($fields['url']))  unset($fields['url']);  return $fields;  } and add this code to your functions.php, go to your WordPress backend area, and click Themes>Editor and look for the function.php and paste the code then that's it.

How To Create Login System Using PHP with MySQL Database FREE

Image
Most of the coders especially to a beginner the main thing when developing a web application is to start planning how the system works, what is the purpose, create visual design, plan the database for, and many more, and the next thing to do is, of course, the important part of building a web application is the LOGIN SYSTEM and REGISTRATION  so in this tutorial we will show you how to create a login code using PHP with MYSQL database using mysqli method.] **NOTE: To copy the code, please highlight the code snippet provided on this tutorial right click and copy. DB-CONFIG.PHP Create a file and name it as db-config.php  this will be useful because we are going to communicate on the database. <?php define('DB_SERVER', 'localhost:3036'); define('DB_USERNAME', 'root'); define('DB_PASSWORD', 'rootpassword'); define('DB_DATABASE', 'database'); $db = mysqli_connect(DB_SERVER,DB_USERNAME,DB_PASSWORD,DB_DATABASE);...