Error: Unknown column 'activated' in 'where clause' - sql

I wanted to login into the bWAPP ...but the login page was not opening ....it showed that there was no database for bWAPP........ SO I created one in phpmyadmin and added a table named 'users' with 4 columns namely
Login
Password
Name
Email address
Now I am able to access the login page but when I try to log in... it shows me the following error
Error: Unknown column 'activated' in 'where clause'

Related

ActiveRecord::StatementInvalid in Summaries#index

PG::UndefinedColumn: ERROR: column summaries.user does not exist
LINE 1: SELECT "summaries".* FROM "summaries" WHERE "summaries"."use...
I'm trying to make a view restriction, where only the admin can see all the records in an app

How do I give a community user permission to PersonAccount Fields?

I have a User with a Customer Community Plus Login User License. I am getting the following error when running some code as this user that inserts a new Account record:
Insert failed. First exception on row 0; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, BCH_AccountTrigger: execution of AfterInsert
caused by: System.DmlException: Insert failed. First exception on row 0; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, DDH.HC_ProgramEligibility_Trigger: execution of AfterInsert
caused by: DDH.HC_SQuery.SQueryException: Permission Denied: cannot read [Account] object field(s) {PersonBirthdate}
When I do the same as a System Admin, Everything works as expected. How do I give access to PersonBirthdate to this Customer Community Plus Login User via a permission set?
I tried searching the Object Settings for this field and could not find it.

Magento 1.9 site where "SQL ERROR: SQLSTATE[42S22]" keeps showing up after daily reindex (and in other instances)

I own a Magento CE 1.7 based website where we keep getting variations of the following error, usually after the daily morning site reindex:
"SQL ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'main_table.data' in 'field list'
SQL QUERY: SELECT DISTINCT main_table.data, main_table.lifetime, main_table.expire, main_table.priority, additional_table.*, IFNULL(al.value, main_table.frontend_label) AS store_label FROM eav_attribute AS main_table
INNER JOIN catalog_eav_attribute AS additional_table ON additional_table.attribute_id = main_table.attribute_id
LEFT JOIN eav_attribute_label AS al ON al.attribute_id = main_table.attribute_id AND al.store_id = 1 WHERE (main_table.entity_type_id (...)"
I have a website down detector set up so that I can know immediately when the site is unavailable. However it obviously doesn't detect whenever the site is unusable due to errors such as “SQL ERROR: SQLSTATE[42S22]”. That means that my team must be constantly manually (!!!) monitoring if the site is indeed working properly (by clicking on product and category links)!
Usually we surpass the error by just cleaning the cache or performing a new reindex.
My questions are the following:
1 - Is there a way of automatically perform a detection of this type of errors in Magento so that - if it happens - a cache cleaning (or a site reindex) is immediately run and an alert is sent to the webmaster?
2 – If such an error is detected, is there a way of it not be shown to the person accessing the site? That is, if the error is detected, is it possible to immediately display a message (“We’ll be back soon”) while the cache is being cleaned or the site reindexed?
I will be grateful for any help you can provide.
Thank you!

How to delete a particular field record on access database

I wonder to know how to delete a particular field record
ds_Subject.Tables("iswe").Rows(0).Item(2).Delete()
This is what I've tried but it gave me an error
An unhandled exception of type 'System.MissingMemberException' occurred in Microsoft.VisualBasic.dll
Additional information: Public member 'Delete' on type 'DBNull' not found.
You can only delete a row.
ds_Subject.Tables("iswe").Rows(0).Delete()
If you want to change the contents of a particular column, do an assignment
ds_Subject.Tables("iswe").Rows(0)("columnname") = <your value>

Database ERROR QLSTATE[HY000] in cake php

I am trying to create the new data for our project in cakephp. i am having the following database error.
Database Error
Error: SQLSTATE[HY000]: General error: 1364 Field 'id' doesn't have a default value
Notice: If you want to customize this error message, create app\View\Errors\pdo_error.ctp
it's keep showing the ID doesn't have the default value and we can't make any change to the ID since it's our PK . Any help would be appreciate !!!!