Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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 '= -2
- AND .owner_guid IN (
- SELECT guid_one FROM elgg_entity_relationships
- ' at line 1
- QUERY: SELECT m.*, n.string as name, v.string as value from elgg_metadata m JOIN elgg_entities e ON e.guid = m.entity_guid JOIN elgg_metastrings v on m.value_id = v.id JOIN elgg_metastrings n on m.name_id = n.id where m.entity_guid=2 and m.name_id='2' and ( (.access_id = -2
- AND .owner_guid IN (
- SELECT guid_one FROM elgg_entity_relationships
- WHERE relationship='friend' AND guid_two=2
- )) OR (.access_id IN (2)
- OR (.owner_guid = 2)
- OR (
- .access_id = 0
- AND .owner_guid = 2
- )
- ) and .enabled='yes') and ( (.access_id = -2
- AND .owner_guid IN (
- SELECT guid_one FROM elgg_entity_relationships
- WHERE relationship='friend' AND guid_two=2
- )) OR (.access_id IN (2)
- OR (.owner_guid = 2)
- OR (
- .access_id = 0
- AND .owner_guid = 2
- )
- ) and .enabled='yes') ORDER BY m.id ASC
- DatabaseException Object
- (
- [message:protected] => 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 '= -2
- AND .owner_guid IN (
- SELECT guid_one FROM elgg_entity_relationships
- ' at line 1
- QUERY: SELECT m.*, n.string as name, v.string as value from elgg_metadata m JOIN elgg_entities e ON e.guid = m.entity_guid JOIN elgg_metastrings v on m.value_id = v.id JOIN elgg_metastrings n on m.name_id = n.id where m.entity_guid=2 and m.name_id='2' and ( (.access_id = -2
- AND .owner_guid IN (
- SELECT guid_one FROM elgg_entity_relationships
- WHERE relationship='friend' AND guid_two=2
- )) OR (.access_id IN (2)
- OR (.owner_guid = 2)
- OR (
- .access_id = 0
- AND .owner_guid = 2
- )
- ) and .enabled='yes') and ( (.access_id = -2
- AND .owner_guid IN (
- SELECT guid_one FROM elgg_entity_relationships
- WHERE relationship='friend' AND guid_two=2
- )) OR (.access_id IN (2)
- OR (.owner_guid = 2)
- OR (
- .access_id = 0
- AND .owner_guid = 2
- )
- ) and .enabled='yes') ORDER BY m.id ASC
- [string:Exception:private] => exception 'DatabaseException' with message '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 '= -2
- AND .owner_guid IN (
- SELECT guid_one FROM elgg_entity_relationships
- ' at line 1
- QUERY: SELECT m.*, n.string as name, v.string as value from elgg_metadata m JOIN elgg_entities e ON e.guid = m.entity_guid JOIN elgg_metastrings v on m.value_id = v.id JOIN elgg_metastrings n on m.name_id = n.id where m.entity_guid=2 and m.name_id='2' and ( (.access_id = -2
- AND .owner_guid IN (
- SELECT guid_one FROM elgg_entity_relationships
- WHERE relationship='friend' AND guid_two=2
- )) OR (.access_id IN (2)
- OR (.owner_guid = 2)
- OR (
- .access_id = 0
- AND .owner_guid = 2
- )
- ) and .enabled='yes') and ( (.access_id = -2
- AND .owner_guid IN (
- SELECT guid_one FROM elgg_entity_relationships
- WHERE relationship='friend' AND guid_two=2
- )) OR (.access_id IN (2)
- OR (.owner_guid = 2)
- OR (
- .access_id = 0
- AND .owner_guid = 2
- )
- ) and .enabled='yes') ORDER BY m.id ASC' in C:\xampp\htdocs\elgg\engine\lib\database.php:187
- Stack trace:
- #0 C:\xampp\htdocs\elgg\engine\lib\database.php(269): execute_query('SELECT m.*, n.s...', Resource id #43)
- #1 C:\xampp\htdocs\elgg\engine\lib\metadata.php(431): get_data('SELECT m.*, n.s...', 'row_to_elggmeta...')
- #2 C:\xampp\htdocs\elgg\engine\lib\entities.php(241): get_metadata_byname('2', 'disable_reason')
- #3 C:\xampp\htdocs\elgg\engine\lib\entities.php(192): ElggEntity->getMetaData('disable_reason')
- #4 C:\xampp\htdocs\elgg\engine\lib\entities.php(264): ElggEntity->get('disable_reason')
- #5 C:\xampp\htdocs\elgg\engine\lib\users.php(429): ElggEntity->__get('disable_reason')
- #6 C:\xampp\htdocs\elgg\engine\lib\users.php(1706): ElggUser->__get('disable_reason')
- #7 C:\xampp\htdocs\elgg\engine\lib\elgglib.php(923): new_user_enable_permissions_check('permissions_che...', 'user', true, Array)
- #8 C:\xampp\htdocs\elgg\engine\lib\entities.php(2880): trigger_plugin_hook('permissions_che...', 'user', Array, true)
- #9 C:\xampp\htdocs\elgg\engine\lib\entities.php(598): can_edit_entity('2', 2)
- #10 C:\xampp\htdocs\elgg\engine\lib\entities.php(1549): ElggEntity->canEdit(2)
- #11 C:\xampp\htdocs\elgg\engine\lib\entities.php(1595): can_write_to_container('2', 2, false)
- #12 C:\xampp\htdocs\elgg\engine\lib\entities.php(779): create_entity('object', 'plugin', '2', 2, 0, '2')
- #13 C:\xampp\htdocs\elgg\engine\lib\objects.php(121): ElggEntity->save()
- #14 C:\xampp\htdocs\elgg\engine\lib\plugins.php(531): ElggObject->save()
- #15 C:\xampp\htdocs\elgg\mod\access_plus\start.php(31): set_plugin_setting('firstrun', 1, 'access_plus')
- #16 C:\xampp\htdocs\elgg\engine\lib\elgglib.php(728): access_plus_init('init', 'system', NULL)
- #17 C:\xampp\htdocs\elgg\engine\lib\elgglib.php(804): events('init', 'system', '', NULL, true, NULL)
- #18 C:\xampp\htdocs\elgg\engine\start.php(120): trigger_elgg_event('init', 'system')
- #19 C:\xampp\htdocs\elgg\engine\handlers\pagehandler.php(13): require_once('C:\xampp\htdocs...')
- #20 {main}
- [code:protected] => 0
- [file:protected] => C:\xampp\htdocs\elgg\engine\lib\database.php
- [line:protected] => 187
- [trace:Exception:private] => Array
- (
- [0] => Array
- (
- [file] => C:\xampp\htdocs\elgg\engine\lib\database.php
- [line] => 269
- [function] => execute_query
- [args] => Array
- (
- [0] => SELECT m.*, n.string as name, v.string as value from elgg_metadata m JOIN elgg_entities e ON e.guid = m.entity_guid JOIN elgg_metastrings v on m.value_id = v.id JOIN elgg_metastrings n on m.name_id = n.id where m.entity_guid=2 and m.name_id='2' and ( (.access_id = -2
- AND .owner_guid IN (
- SELECT guid_one FROM elgg_entity_relationships
- WHERE relationship='friend' AND guid_two=2
- )) OR (.access_id IN (2)
- OR (.owner_guid = 2)
- OR (
- .access_id = 0
- AND .owner_guid = 2
- )
- ) and .enabled='yes') and ( (.access_id = -2
- AND .owner_guid IN (
- SELECT guid_one FROM elgg_entity_relationships
- WHERE relationship='friend' AND guid_two=2
- )) OR (.access_id IN (2)
- OR (.owner_guid = 2)
- OR (
- .access_id = 0
- AND .owner_guid = 2
- )
- ) and .enabled='yes') ORDER BY m.id ASC
- [1] => Resource id #43
- )
- )
- [1] => Array
- (
- [file] => C:\xampp\htdocs\elgg\engine\lib\metadata.php
- [line] => 431
- [function] => get_data
- [args] => Array
- (
- [0] => SELECT m.*, n.string as name, v.string as value from elgg_metadata m JOIN elgg_entities e ON e.guid = m.entity_guid JOIN elgg_metastrings v on m.value_id = v.id JOIN elgg_metastrings n on m.name_id = n.id where m.entity_guid=2 and m.name_id='2' and ( (.access_id = -2
- AND .owner_guid IN (
- SELECT guid_one FROM elgg_entity_relationships
- WHERE relationship='friend' AND guid_two=2
- )) OR (.access_id IN (2)
- OR (.owner_guid = 2)
- OR (
- .access_id = 0
- AND .owner_guid = 2
- )
- ) and .enabled='yes') and ( (.access_id = -2
- AND .owner_guid IN (
- SELECT guid_one FROM elgg_entity_relationships
- WHERE relationship='friend' AND guid_two=2
- )) OR (.access_id IN (2)
- OR (.owner_guid = 2)
- OR (
- .access_id = 0
- AND .owner_guid = 2
- )
- ) and .enabled='yes') ORDER BY m.id ASC
- [1] => row_to_elggmetadata
- )
- )
- [2] => Array
- (
- [file] => C:\xampp\htdocs\elgg\engine\lib\entities.php
- [line] => 241
- [function] => get_metadata_byname
- [args] => Array
- (
- [0] => 2
- [1] => disable_reason
- )
- )
- [3] => Array
- (
- [file] => C:\xampp\htdocs\elgg\engine\lib\entities.php
- [line] => 192
- [function] => getMetaData
- [class] => ElggEntity
- [type] => ->
- [args] => Array
- (
- [0] => disable_reason
- )
- )
- [4] => Array
- (
- [file] => C:\xampp\htdocs\elgg\engine\lib\entities.php
- [line] => 264
- [function] => get
- [class] => ElggEntity
- [type] => ->
- [args] => Array
- (
- [0] => disable_reason
- )
- )
- [5] => Array
- (
- [file] => C:\xampp\htdocs\elgg\engine\lib\users.php
- [line] => 429
- [function] => __get
- [class] => ElggEntity
- [type] => ->
- [args] => Array
- (
- [0] => disable_reason
- )
- )
- [6] => Array
- (
- [file] => C:\xampp\htdocs\elgg\engine\lib\users.php
- [line] => 1706
- [function] => __get
- [class] => ElggUser
- [type] => ->
- [args] => Array
- (
- [0] => disable_reason
- )
- )
- [7] => Array
- (
- [file] => C:\xampp\htdocs\elgg\engine\lib\elgglib.php
- [line] => 923
- [function] => new_user_enable_permissions_check
- [args] => Array
- (
- [0] => permissions_check
- [1] => user
- [2] => 1
- [3] => Array
- (
- [entity] => ElggUser Object
- (
- [attributes:protected] => Array
- (
- [guid] => 2
- [type] => user
- [subtype] => 0
- [owner_guid] => 0
- [container_guid] => 0
- [site_guid] => 1
- [access_id] => 2
- [time_created] => 1312873815
- [time_updated] => 1330424813
- [last_action] => 1330424870
- [enabled] => yes
- [tables_split] => 2
- [tables_loaded] => 2
- [name] => rob
- [username] => *************
- [password] => *************
- [salt] => 953f2ab6
- [email] => *************
- [language] => de
- [code] => c169a5606902a71cd80a325aeeda9198
- [banned] => no
- [admin] => yes
- [prev_last_action] => 1330424869
- [last_login] => 1330424813
- [prev_last_login] => 1330338687
- )
- [url_override:protected] =>
- [icon_override:protected] =>
- [temp_metadata:protected] => Array
- (
- )
- [temp_annotations:protected] => Array
- (
- )
- [volatile:protected] => Array
- (
- )
- [valid:ElggEntity:private] =>
- )
- [user] => ElggUser Object
- (
- [attributes:protected] => Array
- (
- [guid] => 2
- [type] => user
- [subtype] => 0
- [owner_guid] => 0
- [container_guid] => 0
- [site_guid] => 1
- [access_id] => 2
- [time_created] => 1312873815
- [time_updated] => 1330424813
- [last_action] => 1330424870
- [enabled] => yes
- [tables_split] => 2
- [tables_loaded] => 2
- [name] => rob
- [username] => *************
- [password] => *************
- [salt] => 953f2ab6
- [email] => *************
- [language] => de
- [code] => c169a5606902a71cd80a325aeeda9198
- [banned] => no
- [admin] => yes
- [prev_last_action] => 1330424869
- [last_login] => 1330424813
- [prev_last_login] => 1330338687
- )
- [url_override:protected] =>
- [icon_override:protected] =>
- [temp_metadata:protected] => Array
- (
- )
- [temp_annotations:protected] => Array
- (
- )
- [volatile:protected] => Array
- (
- )
- [valid:ElggEntity:private] =>
- )
- )
- )
- )
- [8] => Array
- (
- [file] => C:\xampp\htdocs\elgg\engine\lib\entities.php
- [line] => 2880
- [function] => trigger_plugin_hook
- [args] => Array
- (
- [0] => permissions_check
- [1] => user
- [2] => Array
- (
- [entity] => ElggUser Object
- (
- [attributes:protected] => Array
- (
- [guid] => 2
- [type] => user
- [subtype] => 0
- [owner_guid] => 0
- [container_guid] => 0
- [site_guid] => 1
- [access_id] => 2
- [time_created] => 1312873815
- [time_updated] => 1330424813
- [last_action] => 1330424870
- [enabled] => yes
- [tables_split] => 2
- [tables_loaded] => 2
- [name] => rob
- [username] => *************
- [password] => *************
- [salt] => 953f2ab6
- [email] => *************
- [language] => de
- [code] => c169a5606902a71cd80a325aeeda9198
- [banned] => no
- [admin] => yes
- [prev_last_action] => 1330424869
- [last_login] => 1330424813
- [prev_last_login] => 1330338687
- )
- [url_override:protected] =>
- [icon_override:protected] =>
- [temp_metadata:protected] => Array
- (
- )
- [temp_annotations:protected] => Array
- (
- )
- [volatile:protected] => Array
- (
- )
- [valid:ElggEntity:private] =>
- )
- [user] => ElggUser Object
- (
- [attributes:protected] => Array
- (
- [guid] => 2
- [type] => user
- [subtype] => 0
- [owner_guid] => 0
- [container_guid] => 0
- [site_guid] => 1
- [access_id] => 2
- [time_created] => 1312873815
- [time_updated] => 1330424813
- [last_action] => 1330424870
- [enabled] => yes
- [tables_split] => 2
- [tables_loaded] => 2
- [name] => rob
- [username] => *************
- [password] => *************
- [salt] => 953f2ab6
- [email] => *************
- [language] => de
- [code] => c169a5606902a71cd80a325aeeda9198
- [banned] => no
- [admin] => yes
- [prev_last_action] => 1330424869
- [last_login] => 1330424813
- [prev_last_login] => 1330338687
- )
- [url_override:protected] =>
- [icon_override:protected] =>
- [temp_metadata:protected] => Array
- (
- )
- [temp_annotations:protected] => Array
- (
- )
- [volatile:protected] => Array
- (
- )
- [valid:ElggEntity:private] =>
- )
- )
- [3] => 1
- )
- )
- [9] => Array
- (
- [file] => C:\xampp\htdocs\elgg\engine\lib\entities.php
- [line] => 598
- [function] => can_edit_entity
- [args] => Array
- (
- [0] => 2
- [1] => 2
- )
- )
- [10] => Array
- (
- [file] => C:\xampp\htdocs\elgg\engine\lib\entities.php
- [line] => 1549
- [function] => canEdit
- [class] => ElggEntity
- [type] => ->
- [args] => Array
- (
- [0] => 2
- )
- )
- [11] => Array
- (
- [file] => C:\xampp\htdocs\elgg\engine\lib\entities.php
- [line] => 1595
- [function] => can_write_to_container
- [args] => Array
- (
- [0] => 2
- [1] => 2
- [2] =>
- )
- )
- [12] => Array
- (
- [file] => C:\xampp\htdocs\elgg\engine\lib\entities.php
- [line] => 779
- [function] => create_entity
- [args] => Array
- (
- [0] => object
- [1] => plugin
- [2] => 2
- [3] => 2
- [4] => 0
- [5] => 2
- )
- )
- [13] => Array
- (
- [file] => C:\xampp\htdocs\elgg\engine\lib\objects.php
- [line] => 121
- [function] => save
- [class] => ElggEntity
- [type] => ->
- [args] => Array
- (
- )
- )
- [14] => Array
- (
- [file] => C:\xampp\htdocs\elgg\engine\lib\plugins.php
- [line] => 531
- [function] => save
- [class] => ElggObject
- [type] => ->
- [args] => Array
- (
- )
- )
- [15] => Array
- (
- [file] => C:\xampp\htdocs\elgg\mod\access_plus\start.php
- [line] => 31
- [function] => set_plugin_setting
- [args] => Array
- (
- [0] => firstrun
- [1] => 1
- [2] => access_plus
- )
- )
- [16] => Array
- (
- [file] => C:\xampp\htdocs\elgg\engine\lib\elgglib.php
- [line] => 728
- [function] => access_plus_init
- [args] => Array
- (
- [0] => init
- [1] => system
- [2] =>
- )
- )
- [17] => Array
- (
- [file] => C:\xampp\htdocs\elgg\engine\lib\elgglib.php
- [line] => 804
- [function] => events
- [args] => Array
- (
- [0] => init
- [1] => system
- [2] =>
- [3] =>
- [4] => 1
- [5] =>
- )
- )
- [18] => Array
- (
- [file] => C:\xampp\htdocs\elgg\engine\start.php
- [line] => 120
- [function] => trigger_elgg_event
- [args] => Array
- (
- [0] => init
- [1] => system
- )
- )
- [19] => Array
- (
- [file] => C:\xampp\htdocs\elgg\engine\handlers\pagehandler.php
- [line] => 13
- [args] => Array
- (
- [0] => C:\xampp\htdocs\elgg\engine\start.php
- )
- [function] => require_once
- )
- )
- [previous:Exception:private] =>
- )
Advertisement
Add Comment
Please, Sign In to add comment