(“SQLSTATE[HY000]: General error: 1005 Can’t create table (errno: 121 “Duplicate key on write or update”)”)

I am getting the error (“SQLSTATE[HY000]: General error: 1005 Can’t create table (errno: 121 “Duplicate key on write or update”)”) on my Laravel project i have three migrations which are following users migration business_profiles migration ads migration When I try to run migration command on terminal of my visual studio code it shows me following … Read more

htmlspecialchars() expects parameter 1 to be string, object given (view: c:\xampp\htdocs\blog1\resources\views\email-verification.blade.php)

I am using a blade file called email-verification.blade.php to send laravel emails and when i run this file the following errors comes on the browser htmlspecialchars() expects parameter 1 to be string, object given I am not getting any solution please provide me the solution. Answer It’s looking that you are using wrong syntax under … Read more

Could not find package laravel/laravel with version 7.0

Error [InvalidArgumentException] Could not find package laravel/laravel with version 7.0 in a version installable using your PHP version, PHP extens ions and Composer version.   Answer Following is the correct way of downloading a specific version of laravel composer create-project laravel/laravel blog “7.*” Ravindra KumarRavindra is a passionate full stack developer and dedicated blogger with … Read more

Warning: Invalid version react-native@0.64.2 for expo sdkVersion 43.0.0. Use react-native@0.64.3

Warning: Invalid version react-native@0.64.2 for expo sdkVersion 43.0.0. Use react-native@0.64.3 I am working on a React-Native Project and using expo, Everything was working fine but when i started to write more code related to my project it started to show a warning : Invalid version react-native@0.64.2 for expo sdkVersion 43.0.0. Use react-native@0.64.3 and my project stopped … Read more

autoload() is no longer supported PHPapp\PHPMailerAutoload.php

[Solved] __autoload() is no longer supported, use spl_autoload_register() instead in c:\xampp\htdocs\PHPapp\PHPMailerAutoload.php on line 37

If you are facing the following error

autoload() is no longer supported, use spl_autoload_register() instead in c:\xampp\htdocs\PHPapp\PHPMailerAutoload.php on line 37

We are here to solve your error. This error can be occurred on localhost and web hosting server as well.Following are the solution of this error

Solution

This error is occurred due to compatibilities of PHP Versions. You are using the old version of PHPMailer so you need to change php version as per you php files so try to upgrade or downgrade the php version .I changed my PHP version from 8.0 to  7.3 and my files started working fine. 

Read more