Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Major
-
Resolution: Won't Fix
-
Affects Version/s: 1.5
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
Description
On the main page of civicrm I get the following errors
- warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /home/shoushuc/public_html/modules/civicrm/CRM/Core/BAO/UFGroup.php on line 901.
- warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /home/shoushuc/public_html/modules/civicrm/CRM/Core/BAO/UFGroup.php on line 901.
Sorry. A non-recoverable error has occurred.
Database Error Code: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ) ORDER BY name' at line 4, 1064
error
Array
(
[callback] => Array
(
[0] => CRM_Core_Error
[1] => handle
)
[code] => -2
[message] => DB Error: syntax error
[mode] => 16
[debug_info] => SELECT id, name
FROM civicrm_state_province
WHERE ( country_id IN () )
ORDER BY name
[nativecode=1064 ** You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') )
ORDER BY name' at line 4]
[type] => db_error
[user_info] => SELECT id, name
FROM civicrm_state_province
WHERE ( country_id IN () )
ORDER BY name
[nativecode=1064 ** You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') )
ORDER BY name' at line 4]
[to_string] => [db_error: message="DB Error: syntax error" code=-2 mode=callback callback=CRM_Core_Error::handle prefix="" info="SELECT id, name
FROM civicrm_state_province
WHERE ( country_id IN () )
ORDER BY name
[nativecode=1064 ** You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') )
ORDER BY name' at line 4]"]
I've gone over and over my config file and all seems to be ok.
Sorry if I'm just missing something obvious
Phil