Error 500
Internal Server Error.
please can someone help me
Error 500
Internal Server Error.
please can someone help me
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
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
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
This is what I have on line 635: * @param $hash
However, I found a match on lines: 217, 1069, 1119, 1221, 1269 !
$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);
When I try this, It crashed my site. Only getting a white page!
I have removed the changes :(