Project

General

Profile

Bug #6650

infinite loop on recycle bin empty

Added by Anonymous over 6 years ago. Updated over 6 years ago.

Status:
Bug resolved
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
30/08/2013
Due date:
% Done:

0%

Estimated time:
Complexity:
Normal

Description

when emptying the recycle bin (one object or more):

[hold tight!]

Fatal error: Maximum function nesting level of '100' reached, aborting! in /home/kmoerman/Code/chamilo-dev/common/libraries/plugin/pear/MDB2/Driver/mysqli.php on line 543

Call Stack:
    0.0002     680992   1. {main}() /home/kmoerman/Code/chamilo-dev/index.php:0
    0.2140   17394600   2. common\libraries\Application::launch() /home/kmoerman/Code/chamilo-dev/index.php:87
    0.2371   21805368   3. repository\RepositoryManagerPermanentDeleterComponent->run() /home/kmoerman/Code/chamilo-dev/common/libraries/php/shared/application.class.php:777
    0.2371   21805592   4. repository\RepositoryManagerDeleterComponent->run() /home/kmoerman/Code/chamilo-dev/repository/php/lib/repository_manager/component/permanent_deleter.class.php:22
    0.3532   34160984   5. repository\content_object\event\Event->delete() /home/kmoerman/Code/chamilo-dev/repository/php/lib/repository_manager/component/deleter.class.php:73
    0.3585   34425504   6. repository\ContentObject->delete() /home/kmoerman/Code/chamilo-dev/repository/content_object/event/php/lib/event.class.php:1046
    0.3585   34427112   7. common\libraries\DoctrineDatabase->transactional() /home/kmoerman/Code/chamilo-dev/repository/php/lib/content_object.class.php:1039
    0.3586   34428360   8. Doctrine\DBAL\Connection->transactional() /home/kmoerman/Code/chamilo-dev/common/libraries/php/shared/storage/implementation/doctrine/database.class.php:2404
    0.3586   34428440   9. common\libraries\{closure}() /home/kmoerman/Code/chamilo-dev/common/libraries/plugin/Doctrine/DBAL/Connection.php:803
    0.3586   34428520  10. call_user_func() /home/kmoerman/Code/chamilo-dev/common/libraries/php/shared/storage/implementation/doctrine/database.class.php:2391
    0.3586   34428576  11. repository\{closure}() /home/kmoerman/Code/chamilo-dev/common/libraries/php/shared/storage/implementation/doctrine/database.class.php:2391
    0.3598   34429216  12. repository\content_object\event\Event->delete() /home/kmoerman/Code/chamilo-dev/repository/php/lib/content_object.class.php:1032
    0.3639   34431112  13. repository\ContentObject->delete() /home/kmoerman/Code/chamilo-dev/repository/content_object/event/php/lib/event.class.php:1046
    0.3640   34432720  14. common\libraries\DoctrineDatabase->transactional() /home/kmoerman/Code/chamilo-dev/repository/php/lib/content_object.class.php:1039
    0.3640   34433968  15. Doctrine\DBAL\Connection->transactional() /home/kmoerman/Code/chamilo-dev/common/libraries/php/shared/storage/implementation/doctrine/database.class.php:2404
    0.3640   34433968  16. common\libraries\{closure}() /home/kmoerman/Code/chamilo-dev/common/libraries/plugin/Doctrine/DBAL/Connection.php:803
    0.3640   34434048  17. call_user_func() /home/kmoerman/Code/chamilo-dev/common/libraries/php/shared/storage/implementation/doctrine/database.class.php:2391
    0.3640   34434104  18. repository\{closure}() /home/kmoerman/Code/chamilo-dev/common/libraries/php/shared/storage/implementation/doctrine/database.class.php:2391
    0.3640   34434616  19. repository\content_object\event\Event->delete() /home/kmoerman/Code/chamilo-dev/repository/php/lib/content_object.class.php:1032
    0.3681   34436744  20. repository\ContentObject->delete() /home/kmoerman/Code/chamilo-dev/repository/content_object/event/php/lib/event.class.php:1046
    0.3681   34438352  21. common\libraries\DoctrineDatabase->transactional() /home/kmoerman/Code/chamilo-dev/repository/php/lib/content_object.class.php:1039
    0.3681   34439600  22. Doctrine\DBAL\Connection->transactional() /home/kmoerman/Code/chamilo-dev/common/libraries/php/shared/storage/implementation/doctrine/database.class.php:2404
    0.3681   34439600  23. common\libraries\{closure}() /home/kmoerman/Code/chamilo-dev/common/libraries/plugin/Doctrine/DBAL/Connection.php:803
    0.3681   34439680  24. call_user_func() /home/kmoerman/Code/chamilo-dev/common/libraries/php/shared/storage/implementation/doctrine/database.class.php:2391
    0.3681   34439736  25. repository\{closure}() /home/kmoerman/Code/chamilo-dev/common/libraries/php/shared/storage/implementation/doctrine/database.class.php:2391
    0.3681   34440248  26. repository\content_object\event\Event->delete() /home/kmoerman/Code/chamilo-dev/repository/php/lib/content_object.class.php:1032
    0.3723   34442376  27. repository\ContentObject->delete() /home/kmoerman/Code/chamilo-dev/repository/content_object/event/php/lib/event.class.php:1046
    0.3723   34443984  28. common\libraries\DoctrineDatabase->transactional() /home/kmoerman/Code/chamilo-dev/repository/php/lib/content_object.class.php:1039
    0.3723   34445232  29. Doctrine\DBAL\Connection->transactional() /home/kmoerman/Code/chamilo-dev/common/libraries/php/shared/storage/implementation/doctrine/database.class.php:2404
    0.3723   34445232  30. common\libraries\{closure}() /home/kmoerman/Code/chamilo-dev/common/libraries/plugin/Doctrine/DBAL/Connection.php:803
    0.3723   34445312  31. call_user_func() /home/kmoerman/Code/chamilo-dev/common/libraries/php/shared/storage/implementation/doctrine/database.class.php:2391
    0.3723   34445368  32. repository\{closure}() /home/kmoerman/Code/chamilo-dev/common/libraries/php/shared/storage/implementation/doctrine/database.class.php:2391
    0.3723   34445880  33. repository\content_object\event\Event->delete() /home/kmoerman/Code/chamilo-dev/repository/php/lib/content_object.class.php:1032
    0.3764   34448008  34. repository\ContentObject->delete() /home/kmoerman/Code/chamilo-dev/repository/content_object/event/php/lib/event.class.php:1046
    0.3765   34449616  35. common\libraries\DoctrineDatabase->transactional() /home/kmoerman/Code/chamilo-dev/repository/php/lib/content_object.class.php:1039
    0.3765   34450864  36. Doctrine\DBAL\Connection->transactional() /home/kmoerman/Code/chamilo-dev/common/libraries/php/shared/storage/implementation/doctrine/database.class.php:2404
    0.3765   34450864  37. common\libraries\{closure}() /home/kmoerman/Code/chamilo-dev/common/libraries/plugin/Doctrine/DBAL/Connection.php:803
    0.3765   34450944  38. call_user_func() /home/kmoerman/Code/chamilo-dev/common/libraries/php/shared/storage/implementation/doctrine/database.class.php:2391
    0.3765   34451000  39. repository\{closure}() /home/kmoerman/Code/chamilo-dev/common/libraries/php/shared/storage/implementation/doctrine/database.class.php:2391
    0.3765   34451512  40. repository\content_object\event\Event->delete() /home/kmoerman/Code/chamilo-dev/repository/php/lib/content_object.class.php:1032
    0.3808   34453640  41. repository\ContentObject->delete() /home/kmoerman/Code/chamilo-dev/repository/content_object/event/php/lib/event.class.php:1046
    0.3808   34455248  42. common\libraries\DoctrineDatabase->transactional() /home/kmoerman/Code/chamilo-dev/repository/php/lib/content_object.class.php:1039
    0.3808   34456496  43. Doctrine\DBAL\Connection->transactional() /home/kmoerman/Code/chamilo-dev/common/libraries/php/shared/storage/implementation/doctrine/database.class.php:2404
    0.3808   34456496  44. common\libraries\{closure}() /home/kmoerman/Code/chamilo-dev/common/libraries/plugin/Doctrine/DBAL/Connection.php:803
    0.3808   34456576  45. call_user_func() /home/kmoerman/Code/chamilo-dev/common/libraries/php/shared/storage/implementation/doctrine/database.class.php:2391
    0.3808   34456632  46. repository\{closure}() /home/kmoerman/Code/chamilo-dev/common/libraries/php/shared/storage/implementation/doctrine/database.class.php:2391
    0.3808   34457144  47. repository\content_object\event\Event->delete() /home/kmoerman/Code/chamilo-dev/repository/php/lib/content_object.class.php:1032
    0.3853   34459272  48. repository\ContentObject->delete() /home/kmoerman/Code/chamilo-dev/repository/content_object/event/php/lib/event.class.php:1046
    0.3854   34460880  49. common\libraries\DoctrineDatabase->transactional() /home/kmoerman/Code/chamilo-dev/repository/php/lib/content_object.class.php:1039
    0.3854   34462128  50. Doctrine\DBAL\Connection->transactional() /home/kmoerman/Code/chamilo-dev/common/libraries/php/shared/storage/implementation/doctrine/database.class.php:2404
    0.3854   34462128  51. common\libraries\{closure}() /home/kmoerman/Code/chamilo-dev/common/libraries/plugin/Doctrine/DBAL/Connection.php:803
    0.3854   34462208  52. call_user_func() /home/kmoerman/Code/chamilo-dev/common/libraries/php/shared/storage/implementation/doctrine/database.class.php:2391
    0.3854   34462264  53. repository\{closure}() /home/kmoerman/Code/chamilo-dev/common/libraries/php/shared/storage/implementation/doctrine/database.class.php:2391
    0.3854   34462776  54. repository\content_object\event\Event->delete() /home/kmoerman/Code/chamilo-dev/repository/php/lib/content_object.class.php:1032
    0.3896   34464904  55. repository\ContentObject->delete() /home/kmoerman/Code/chamilo-dev/repository/content_object/event/php/lib/event.class.php:1046
    0.3896   34466512  56. common\libraries\DoctrineDatabase->transactional() /home/kmoerman/Code/chamilo-dev/repository/php/lib/content_object.class.php:1039
    0.3896   34467760  57. Doctrine\DBAL\Connection->transactional() /home/kmoerman/Code/chamilo-dev/common/libraries/php/shared/storage/implementation/doctrine/database.class.php:2404
    0.3896   34467760  58. common\libraries\{closure}() /home/kmoerman/Code/chamilo-dev/common/libraries/plugin/Doctrine/DBAL/Connection.php:803
    0.3896   34467840  59. call_user_func() /home/kmoerman/Code/chamilo-dev/common/libraries/php/shared/storage/implementation/doctrine/database.class.php:2391
    0.3896   34467896  60. repository\{closure}() /home/kmoerman/Code/chamilo-dev/common/libraries/php/shared/storage/implementation/doctrine/database.class.php:2391
    0.3896   34468408  61. repository\content_object\event\Event->delete() /home/kmoerman/Code/chamilo-dev/repository/php/lib/content_object.class.php:1032
    0.3939   34470536  62. repository\ContentObject->delete() /home/kmoerman/Code/chamilo-dev/repository/content_object/event/php/lib/event.class.php:1046
    0.3939   34472144  63. common\libraries\DoctrineDatabase->transactional() /home/kmoerman/Code/chamilo-dev/repository/php/lib/content_object.class.php:1039
    0.3939   34473392  64. Doctrine\DBAL\Connection->transactional() /home/kmoerman/Code/chamilo-dev/common/libraries/php/shared/storage/implementation/doctrine/database.class.php:2404
    0.3939   34473392  65. common\libraries\{closure}() /home/kmoerman/Code/chamilo-dev/common/libraries/plugin/Doctrine/DBAL/Connection.php:803
    0.3939   34473472  66. call_user_func() /home/kmoerman/Code/chamilo-dev/common/libraries/php/shared/storage/implementation/doctrine/database.class.php:2391
    0.3939   34473528  67. repository\{closure}() /home/kmoerman/Code/chamilo-dev/common/libraries/php/shared/storage/implementation/doctrine/database.class.php:2391
    0.3939   34474040  68. repository\content_object\event\Event->delete() /home/kmoerman/Code/chamilo-dev/repository/php/lib/content_object.class.php:1032
    0.3982   34476168  69. repository\ContentObject->delete() /home/kmoerman/Code/chamilo-dev/repository/content_object/event/php/lib/event.class.php:1046
    0.3982   34477776  70. common\libraries\DoctrineDatabase->transactional() /home/kmoerman/Code/chamilo-dev/repository/php/lib/content_object.class.php:1039
    0.3982   34479024  71. Doctrine\DBAL\Connection->transactional() /home/kmoerman/Code/chamilo-dev/common/libraries/php/shared/storage/implementation/doctrine/database.class.php:2404
    0.3982   34479024  72. common\libraries\{closure}() /home/kmoerman/Code/chamilo-dev/common/libraries/plugin/Doctrine/DBAL/Connection.php:803
    0.3982   34479104  73. call_user_func() /home/kmoerman/Code/chamilo-dev/common/libraries/php/shared/storage/implementation/doctrine/database.class.php:2391
    0.3982   34479160  74. repository\{closure}() /home/kmoerman/Code/chamilo-dev/common/libraries/php/shared/storage/implementation/doctrine/database.class.php:2391
    0.3982   34479672  75. repository\content_object\event\Event->delete() /home/kmoerman/Code/chamilo-dev/repository/php/lib/content_object.class.php:1032
    0.4025   34481800  76. repository\ContentObject->delete() /home/kmoerman/Code/chamilo-dev/repository/content_object/event/php/lib/event.class.php:1046
    0.4026   34483408  77. common\libraries\DoctrineDatabase->transactional() /home/kmoerman/Code/chamilo-dev/repository/php/lib/content_object.class.php:1039
    0.4026   34484656  78. Doctrine\DBAL\Connection->transactional() /home/kmoerman/Code/chamilo-dev/common/libraries/php/shared/storage/implementation/doctrine/database.class.php:2404
    0.4026   34484656  79. common\libraries\{closure}() /home/kmoerman/Code/chamilo-dev/common/libraries/plugin/Doctrine/DBAL/Connection.php:803
    0.4026   34484736  80. call_user_func() /home/kmoerman/Code/chamilo-dev/common/libraries/php/shared/storage/implementation/doctrine/database.class.php:2391
    0.4026   34484792  81. repository\{closure}() /home/kmoerman/Code/chamilo-dev/common/libraries/php/shared/storage/implementation/doctrine/database.class.php:2391
    0.4026   34485304  82. repository\content_object\event\Event->delete() /home/kmoerman/Code/chamilo-dev/repository/php/lib/content_object.class.php:1032
    0.4026   34485440  83. repository\content_object\event\Event::can_be_deleted() /home/kmoerman/Code/chamilo-dev/repository/content_object/event/php/lib/event.class.php:1031
    0.4026   34485440  84. repository\content_object\event\Event::any_appointments_for_event() /home/kmoerman/Code/chamilo-dev/repository/content_object/event/php/lib/event.class.php:998
    0.4026   34485440  85. repository\content_object\event\Event::retrieve_timeslot_ids_for_event() /home/kmoerman/Code/chamilo-dev/repository/content_object/event/php/lib/event.class.php:274
    0.4026   34485440  86. repository\content_object\event\Event::retrieve_timeslots_for_event() /home/kmoerman/Code/chamilo-dev/repository/content_object/event/php/lib/event.class.php:235
    0.4027   34488792  87. common\libraries\Mdb2Database->retrieve_objects() /home/kmoerman/Code/chamilo-dev/repository/content_object/event/php/lib/event.class.php:261
    0.4027   34489048  88. common\libraries\Mdb2Database->retrieve_object_set() /home/kmoerman/Code/chamilo-dev/common/libraries/php/shared/storage/implementation/mdb2/database.class.php:896
    0.4027   34489048  89. common\libraries\Mdb2Database->retrieve_result() /home/kmoerman/Code/chamilo-dev/common/libraries/php/shared/storage/implementation/mdb2/database.class.php:956
    0.4027   34489048  90. common\libraries\Mdb2ConditionTranslator::render() /home/kmoerman/Code/chamilo-dev/common/libraries/php/shared/storage/implementation/mdb2/database.class.php:914
    0.4027   34489264  91. common\libraries\ConditionTranslator::render() /home/kmoerman/Code/chamilo-dev/common/libraries/php/shared/storage/implementation/mdb2/condition_translator.class.php:19
    0.4029   34692024  92. common\libraries\Mdb2EqualityConditionTranslator->translate() /home/kmoerman/Code/chamilo-dev/common/libraries/php/shared/storage/condition_translator.class.php:62
    0.4031   34692344  93. common\libraries\Mdb2Database::quote() /home/kmoerman/Code/chamilo-dev/common/libraries/php/shared/storage/implementation/mdb2/condition/equality_condition.class.php:99
    0.4033   34693000  94. MDB2_Driver_Common->quote() /home/kmoerman/Code/chamilo-dev/common/libraries/php/shared/storage/implementation/mdb2/database.class.php:1431
    0.4033   34693160  95. MDB2_Driver_Datatype_Common->quote() /home/kmoerman/Code/chamilo-dev/common/libraries/plugin/pear/MDB2.php:3311
    0.4033   34694304  96. MDB2_Driver_Datatype_Common->_quoteText() /home/kmoerman/Code/chamilo-dev/common/libraries/plugin/pear/MDB2/Driver/Datatype/Common.php:1260
    0.4034   34695136  97. MDB2_Driver_mysqli->escape() /home/kmoerman/Code/chamilo-dev/common/libraries/plugin/pear/MDB2/Driver/Datatype/Common.php:1316
    0.4034   34695136  98. MDB2_Driver_Common->getConnection() /home/kmoerman/Code/chamilo-dev/common/libraries/plugin/pear/MDB2/Driver/mysqli.php:275
    0.4034   34695136  99. MDB2_Driver_mysqli->connect() /home/kmoerman/Code/chamilo-dev/common/libraries/plugin/pear/MDB2.php:1851

History

#1

Updated by Anonymous over 6 years ago

the recurring pattern:

0.3585   34427112   7. common\libraries\DoctrineDatabase->transactional() /home/kmoerman/Code/chamilo-dev/repository/php/lib/content_object.class.php:1039
0.3586   34428360   8. Doctrine\DBAL\Connection->transactional() /home/kmoerman/Code/chamilo-dev/common/libraries/php/shared/storage/implementation/doctrine/database.class.php:2404
0.3586   34428440   9. common\libraries\{closure}() /home/kmoerman/Code/chamilo-dev/common/libraries/plugin/Doctrine/DBAL/Connection.php:803
0.3586   34428520  10. call_user_func() /home/kmoerman/Code/chamilo-dev/common/libraries/php/shared/storage/implementation/doctrine/database.class.php:2391
0.3586   34428576  11. repository\{closure}() /home/kmoerman/Code/chamilo-dev/common/libraries/php/shared/storage/implementation/doctrine/database.class.php:2391
0.3598   34429216  12. repository\content_object\event\Event->delete() /home/kmoerman/Code/chamilo-dev/repository/php/lib/content_object.class.php:1032
0.3639   34431112  13. repository\ContentObject->delete() /home/kmoerman/Code/chamilo-dev/repository/content_object/event/php/lib/event.class.php:1046
#2

Updated by Anonymous over 6 years ago

happens only with empty appointment objects

#3

Updated by Anonymous over 6 years ago

  • Status changed from New to Bug resolved

resolved

in file repository/content_object/event/php/lib/event.class.php
change

parent::delete()

to
parent::delete(count($this->get_content_object_versions()) == 1)

Also available in: Atom PDF