This fixes the error temporarily after that more errors come up.
1. You can't access the Binary Summary page in the user dashboard.
2. The User Profile Settings Page will give you the Internal Server Error 500.
3. You can't access the user from the admin dashboard.
---------------------------------------------------------------------------------------
Solution:
1. Add Address in Users Table (DB) as below mentioned format.
Code:
{"address":"","state":"","zip":"","country":"Pakistan","city":""}
2. Add the below values to the user_extras table in DB.
Code:
id: 1
user_id: 1
paid_left: 0
paid_right: 0
free_left: 0
free_paid: 0
created at: (Current time)
updated at: (leave blank)
after the implementation of these solutions, it fixed all errors and the script is running smoothly on my hosting.
Request: Give a thumbs up if this fix works for you guys as well.