We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

error when deleting user [Fixed] | Forum

Ricky
Ricky Dec 25 '13
please i see this when deleting user from the admin section...

Error 500
Internal Server Error.


please can someone help me     

The Forum post is edited by Alia Jan 15 '14
Alia Team
Alia Dec 25 '13
Ricky, you will need to enable DEBUG mode in config.php to find out what the real error is.
More info: http://www.oxwall.org/forum/topic/4661
Ricky
Ricky Dec 25 '13
ok


Ricky
Ricky Dec 25 '13
please my dev and debugging mode is on can u help me please www.campusghana.net
Alia Team
Alia Dec 25 '13
Ricky I will not be able to help you since the 500phtml error appears when you delete user from admin panel. And I don't have access to your admin panel.

You need to delete the user yourself. This time with enabled DEBUG mode you should get the real error instead of 500 one. Let me know what it is.
Ricky
Ricky Dec 25 '13
ok


Alia Team
Alia Dec 26 '13
Were you able to resolve this?
Ricky
Ricky Dec 28 '13
yes


David Brockwell
David Brockwell Jan 9 '14
I'm getting this problem also, received this message.


Message:Invalid parameters were provided!File:/home/davbro/public_html/secondliferesidents/ow_plugins/privacy/classes/event_handler.phpLine:110Trace:#0 /home/davbro/public_html/secondliferesidents/ow_core/event_manager.php(193): PRIVACY_CLASS_EventHandler->removeUserPrivacy(Object(OW_Event)) #1 /home/davbro/public_html/secondliferesidents/ow_system_plugins/base/bol/user_service.php(688): OW_EventManager->trigger(Array, Object(OW_Event)) #2 /home/davbro/public_html/secondliferesidents/ow_system_plugins/admin/components/user_list.php(94): BOL_UserService->deleteUser(Object(OW_Event)) #3 /home/davbro/public_html/secondliferesidents/ow_system_plugins/admin/controllers/users.php(203): ADMIN_CMP_UserList->__construct('3', true) #4 [internal function]: ADMIN_CTRL_Users->index(Object(ADMIN_UserListParams)) #5 /home/davbro/public_html/secondliferesidents/ow_core/request_handler.php(266): ReflectionMethod->invokeArgs(Array) #6 /home/davbro/public_html/secondliferesidents/ow_core/application.php(330): OW_RequestHandler->dispatch(Object(ADMIN_CTRL_Users), Array) #7 /home/davbro/public_html/secondliferesidents/index.php(65): OW_Application->handleRequest() #8 {main}Type:InvalidArgumentException

ben
ben Jan 12 '14
I cant delete user from admin and user cant delete their own profile
The Forum post is edited by ben Jan 12 '14
Alia Team
Alia Jan 13 '14
David, thank you for the report. I was able to reproduce this. Passed to development team.
Alia Team
Alia Jan 15 '14
Guys, error was caused by Privacy plugin.
We have updated "Privacy" plugin a couple of hours ago. New update of the plugin contains the fix to this issue.

http://www.oxwall.org/store/item/68
Georges Parizeau
Georges Parizeau Mar 20 '14
I have a similar problem, user and admin cant delete . 


Here is the code dump:  


Message:SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'photo_comments-36' for key 'entity'File:/home1/valpinco/public_html/tripdegarsbi/forum/ow_core/database.phpLine:331Trace:#0 .../forum/ow_core/database.php(331): PDOStatement->execute() #1 .../forum/ow_core/database.php(564): OW_Database->execute('INSERT INTO `ow...', Array) #2 .../forum/ow_core/database.php(601): OW_Database->insert('INSERT INTO `ow...', Array) #3 .../forum/ow_core/base_dao.php(216): OW_Database->insertObject('ow_newsfeed_act...', Object(NEWSFEED_BOL_Action)) #4 .../forum/ow_plugins/newsfeed/bol/service.php(140): OW_BaseDao->save(Object(NEWSFEED_BOL_Action)) #5 .../forum/ow_plugins/newsfeed/classes/event_handler.php(307): NEWSFEED_BOL_Service->saveAction(Object(NEWSFEED_BOL_Action)) #6 [internal function]: NEWSFEED_CLASS_EventHandler->action(Object(OW_Event)) #7 .../forum/ow_core/event_manager.php(193): call_user_func(Array, Object(OW_Event)) #8 .../forum/ow_plugins/photo/bol/photo_service.php(635): OW_EventManager->trigger(Object(OW_Event)) #9 .../forum/ow_plugins/photo/classes/event_handler.php(850): PHOTO_BOL_PhotoService->triggerNewsfeedEventOnMultiplePhotosAdd(Array, '130', Object(PHOTO_BOL_PhotoAlbum)) #10 [internal function]: PHOTO_CLASS_EventHandler->onBeforePhotoDelete(Object(OW_Event)) #11 .../forum/ow_core/event_manager.php(193): call_user_func(Array, Object(OW_Event)) #12 .../forum/ow_plugins/photo/bol/photo_service.php(535): OW_EventManager->trigger(Object(OW_Event)) #13 .../forum/ow_plugins/photo/bol/photo_album_service.php(457): PHOTO_BOL_PhotoService->deletePhoto('35') #14 .../forum/ow_plugins/photo/bol/photo_album_service.php(347): PHOTO_BOL_PhotoAlbumService->deleteAlbum('11') #15 .../forum/ow_plugins/photo/bol/photo_album_service.php(323): PHOTO_BOL_PhotoAlbumService->deleteEntityAlbums(130, 'user') #16 .../forum/ow_plugins/photo/classes/event_handler.php(602): PHOTO_BOL_PhotoAlbumService->deleteUserAlbums(130) #17 [internal function]: PHOTO_CLASS_EventHandler->onUserUnregister(Object(OW_Event)) #18 .../forum/ow_core/event_manager.php(193): call_user_func(Array, Object(OW_Event)) #19 .../forum/ow_system_plugins/base/bol/user_service.php(688): OW_EventManager->trigger(Object(OW_Event)) #20 .../forum/ow_system_plugins/admin/components/user_list.php(94): BOL_UserService->deleteUser('130', true) #21 .../forum/ow_system_plugins/admin/controllers/users.php(203): ADMIN_CMP_UserList->__construct(Object(ADMIN_UserListParams)) #22 [internal function]: ADMIN_CTRL_Users->index(Array) #23 .../forum/ow_core/request_handler.php(266): ReflectionMethod->invokeArgs(Object(ADMIN_CTRL_Users), Array) #24 .../forum/ow_core/application.php(330): OW_RequestHandler->dispatch() #25 .../forum/index.php(65): OW_Application->handleRequest() #26 {main}Type:PDOException

ross Team
ross Mar 21 '14
go to ow_plugins/photo/bol/photo_service.php

find 635 line, 


there will be this code only:  OW::getEventManager()->trigger($event);

 replace it with try

{

        OW::getEventManager()->trigger($event);

}

catch (Exception $e){}

    }


in 1.6.1 the photo plugin will another logic and this fix will be deleted as you won't need it

Georges Parizeau
Georges Parizeau Mar 21 '14
This is not what I found on line 635. 


This is what I have on line 635:  * @param $hash       


However, I found a match on lines:  217, 1069, 1119, 1221, 1269 !

Georges Parizeau
Georges Parizeau Mar 22 '14
I still need help to fix that bug. 

Anyone can Help me ?


ross Team
ross Mar 23 '14
There should be this piece of code: 


 $event = new OW_Event('feed.action', array(            'pluginKey' => 'photo',            'entityType' => 'multiple_photo_upload',            'entityId' => $this->getPhotoUploadKey($album->id),            'userId' => $userId        ), array(            'photoIdList' => $photoIdList        ));

before this line: 

 OW::getEventManager()->trigger($event);


Georges Parizeau
Georges Parizeau Mar 24 '14
Outch ! 


When I try this, It crashed my site. Only getting a white page!


I have removed the changes :(

ross Team
ross Mar 27 '14
Georges, please PM me your admin and CPanel access details, I'll take a look at the problem.