thrownewUserFormException("Expect a SELECT statement in ".FE_TYPEAHEAD_SQL." - got: ".$sqlTest,ERROR_BROKEN_PARAMETER);
thrownewUserFormException(
json_encode([ERROR_MESSAGE_TO_USER=>'"Expect a SELECT statement',ERROR_MESSAGE_SUPPORT=>"Expect a SELECT statement in ".FE_TYPEAHEAD_SQL." - got: ".$sqlTest]),
thrownewUserFormException("getcwd() failed or SITE_PATH undefined or chdir('$sitePath') failed.",ERROR_IO_CHDIR);
thrownewUserFormException(
json_encode([ERROR_MESSAGE_TO_USER=>'getcwd() failed or SITE_PATH undefined or chdir() failed',ERROR_MESSAGE_SUPPORT=>"getcwd() failed or SITE_PATH undefined or chdir('$sitePath') failed."]),
ERROR_IO_CHDIR);
}
}
// Read record first.
// Read record first.
...
@@ -82,7 +85,10 @@ class Delete {
...
@@ -82,7 +85,10 @@ class Delete {
$this->db->sql("DELETE FROM $tableName WHERE $primaryKey =? LIMIT 1",ROW_REGULAR,[$recordId]);
$this->db->sql("DELETE FROM $tableName WHERE $primaryKey =? LIMIT 1",ROW_REGULAR,[$recordId]);
}else{
}else{
thrownewUserFormException("Record $recordId not found in table '$tableName'.",ERROR_RECORD_NOT_FOUND);
thrownewUserFormException(
json_encode([ERROR_MESSAGE_TO_USER=>'Record not found in table',ERROR_MESSAGE_SUPPORT=>"Record $recordId not found in table '$tableName'."]),
ERROR_RECORD_NOT_FOUND);
}
}
chdir($cwd);
chdir($cwd);
...
@@ -119,7 +125,9 @@ class Delete {
...
@@ -119,7 +125,9 @@ class Delete {
$samePathFileName=$this->db->sql("SELECT COUNT($primaryKey) AS cnt FROM $tableName WHERE $key LIKE ?",ROW_EXPECT_1,[$file]);
$samePathFileName=$this->db->sql("SELECT COUNT($primaryKey) AS cnt FROM $tableName WHERE $key LIKE ?",ROW_EXPECT_1,[$file]);
thrownewqfq\UserFormException("Recursion too deep ($recursion). Line: $line",ERROR_RECURSION_TOO_DEEP);
thrownewqfq\UserFormException(json_encode([ERROR_MESSAGE_TO_USER=>'Recursion too deep',ERROR_MESSAGE_SUPPORT=>"Recursion too deep ($recursion). Line: $line"]),
thrownewUserFormException("getcwd() failed or SITE_PATH undefined or chdir('$sitePath') failed.",ERROR_IO_CHDIR);
thrownewUserFormException(
json_encode([ERROR_MESSAGE_TO_USER=>'getcwd() failed or SITE_PATH undefined or chdir() failed',ERROR_MESSAGE_SUPPORT=>"getcwd() failed or SITE_PATH undefined or chdir('$sitePath') failed."]),
thrownewUserFormException("getcwd() failed or SITE_PATH undefined or chdir('$sitePath') failed.",ERROR_IO_CHDIR);
thrownewUserFormException(
json_encode([ERROR_MESSAGE_TO_USER=>'getcwd() failed or SITE_PATH undefined or chdir() failed',ERROR_MESSAGE_SUPPORT=>"getcwd() failed or SITE_PATH undefined or chdir('$sitePath') failed."]),
thrownewUserFormException("Error open Database 'mysql:host=".$config[SYSTEM_DB_SERVER].";dbname=".$config[SYSTEM_DB_NAME].";dbuser=".$config[SYSTEM_DB_USER]."'': ".$mysqli->connect_errno.PHP_EOL.$mysqli->connect_error,ERROR_DB_OPEN);
thrownewUserFormException(
json_encode([ERROR_MESSAGE_TO_USER=>'Error open Database',
ERROR_MESSAGE_SUPPORT=>"Error open Database 'mysql:host=".$config[SYSTEM_DB_SERVER].