Bug #6678
open
after merge dev-> stable: can no longer add documents or files
10%
Description
Fatal error: Class 'repository\content_object\document\DocumentDataManager' not found in /home/kmoerman/Code/chamilo-stable/common/libraries/php/shared/condition/variable/properties.class.php on line 98 Call Stack: 0.0003 675880 1. {main}() /home/kmoerman/Code/chamilo-stable/index.php:0 0.2054 17218568 2. common\libraries\Application::launch() /home/kmoerman/Code/chamilo-stable/index.php:87 0.2118 18497632 3. application\weblcms\WeblcmsManagerCourseViewerComponent->run() /home/kmoerman/Code/chamilo-stable/common/libraries/php/shared/application.class.php:782 0.3032 22899376 4. application\weblcms\Tool::factory_and_launch() /home/kmoerman/Code/chamilo-stable/application/weblcms/php/lib/weblcms_manager/component/course_viewer.class.php:122 0.3039 22992256 5. common\libraries\SubManager::launch() /home/kmoerman/Code/chamilo-stable/application/weblcms/php/lib/tool/tool.class.php:154 0.3087 23596544 6. application\weblcms\tool\document\DocumentToolPublisherComponent->run() /home/kmoerman/Code/chamilo-stable/common/libraries/php/shared/sub_manager.class.php:340 0.3091 23694752 7. application\weblcms\ToolComponent::launch() /home/kmoerman/Code/chamilo-stable/application/weblcms/tool/document/php/lib/component/publisher.class.php:21 0.3091 23695000 8. common\libraries\SubManager::launch() /home/kmoerman/Code/chamilo-stable/application/weblcms/php/lib/tool/tool_component.class.php:177 0.3104 23766568 9. application\weblcms\ToolComponentPublisherComponent->run() /home/kmoerman/Code/chamilo-stable/common/libraries/php/shared/sub_manager.class.php:340 0.3138 23906288 10. repository\viewer\CreatorComponent->run() /home/kmoerman/Code/chamilo-stable/application/weblcms/php/lib/tool/component/publisher.class.php:29 0.3439 30529800 11. repository\viewer\CreatorComponent->get_creation_form() /home/kmoerman/Code/chamilo-stable/repository/viewer/php/lib/manager/component/creator.class.php:40 0.3484 31694224 12. repository\ContentObjectForm::factory() /home/kmoerman/Code/chamilo-stable/repository/viewer/php/lib/manager/component/creator.class.php:133 0.3492 31945744 13. repository\ContentObjectForm->__construct() /home/kmoerman/Code/chamilo-stable/repository/php/lib/content_object_form.class.php:692 0.3505 31957328 14. repository\content_object\file\FileForm->build_creation_form() /home/kmoerman/Code/chamilo-stable/repository/php/lib/content_object_form.class.php:81 0.3644 33836144 15. repository\quota\Calculator->get_available_user_disk_quota() /home/kmoerman/Code/chamilo-stable/repository/content_object/file/php/lib/form/content_object.class.php:42 0.3645 33836432 16. repository\quota\Calculator->get_used_user_disk_quota() /home/kmoerman/Code/chamilo-stable/repository/quota/php/lib/calculator.class.php:150 0.3645 33836568 17. repository\DataManager::get_used_disk_space() /home/kmoerman/Code/chamilo-stable/repository/quota/php/lib/calculator.class.php:63 0.4013 44814768 18. common\libraries\DataManager::record() /home/kmoerman/Code/chamilo-stable/repository/php/lib/data_manager/data_manager.class.php:992 0.4017 44814768 19. common\libraries\DoctrineDatabase->record() /home/kmoerman/Code/chamilo-stable/common/libraries/php/shared/storage/data_manager.class.php:193 0.4017 44816864 20. common\libraries\DoctrineConditionVariableTranslator::render() /home/kmoerman/Code/chamilo-stable/common/libraries/php/shared/storage/implementation/doctrine/database.class.php:1659 0.4017 44817088 21. common\libraries\ConditionVariableTranslator::render() /home/kmoerman/Code/chamilo-stable/common/libraries/php/shared/storage/implementation/doctrine/condition_variable_translator.class.php:21 0.4019 44843464 22. common\libraries\DoctrineFunctionConditionVariableTranslator->translate() /home/kmoerman/Code/chamilo-stable/common/libraries/php/shared/storage/condition_variable_translator.class.php:47 0.4019 44844288 23. common\libraries\DoctrineConditionVariableTranslator::render() /home/kmoerman/Code/chamilo-stable/common/libraries/php/shared/storage/implementation/doctrine/condition_variable/function.class.php:36 0.4019 44844432 24. common\libraries\ConditionVariableTranslator::render() /home/kmoerman/Code/chamilo-stable/common/libraries/php/shared/storage/implementation/doctrine/condition_variable_translator.class.php:21 0.4020 44845176 25. common\libraries\DoctrinePropertyConditionVariableTranslator->translate() /home/kmoerman/Code/chamilo-stable/common/libraries/php/shared/storage/condition_variable_translator.class.php:47 0.4020 44845176 26. common\libraries\PropertiesConditionVariable->get_alias() /home/kmoerman/Code/chamilo-stable/common/libraries/php/shared/storage/implementation/doctrine/condition_variable/property.class.php:17
Updated by Anonymous over 9 years ago
- Subject changed from after merge dev-> stable: can no longer add documents to after merge dev-> stable: can no longer add documents or files
follow up: when adding a File, similar issue
Fatal error: Class 'repository\content_object\document\DataManager' not found in /home/kmoerman/Code/chamilo-stable/common/libraries/php/shared/storage/data_class/composite_data_class.class.php on line 122 Call Stack: 0.0002 675928 1. {main}() /home/kmoerman/Code/chamilo-stable/index.php:0 0.2531 17218568 2. common\libraries\Application::launch() /home/kmoerman/Code/chamilo-stable/index.php:87 0.2597 18497632 3. application\weblcms\WeblcmsManagerCourseViewerComponent->run() /home/kmoerman/Code/chamilo-stable/common/libraries/php/shared/application.class.php:782 0.3605 22899376 4. application\weblcms\Tool::factory_and_launch() /home/kmoerman/Code/chamilo-stable/application/weblcms/php/lib/weblcms_manager/component/course_viewer.class.php:122 0.3610 22992256 5. common\libraries\SubManager::launch() /home/kmoerman/Code/chamilo-stable/application/weblcms/php/lib/tool/tool.class.php:154 0.3646 23596544 6. application\weblcms\tool\document\DocumentToolPublisherComponent->run() /home/kmoerman/Code/chamilo-stable/common/libraries/php/shared/sub_manager.class.php:340 0.3649 23694752 7. application\weblcms\ToolComponent::launch() /home/kmoerman/Code/chamilo-stable/application/weblcms/tool/document/php/lib/component/publisher.class.php:21 0.3649 23695000 8. common\libraries\SubManager::launch() /home/kmoerman/Code/chamilo-stable/application/weblcms/php/lib/tool/tool_component.class.php:177 0.3660 23766568 9. application\weblcms\ToolComponentPublisherComponent->run() /home/kmoerman/Code/chamilo-stable/common/libraries/php/shared/sub_manager.class.php:340 0.3687 23906288 10. repository\viewer\CreatorComponent->run() /home/kmoerman/Code/chamilo-stable/application/weblcms/php/lib/tool/component/publisher.class.php:29 0.3919 30529776 11. repository\viewer\CreatorComponent->get_creation_form() /home/kmoerman/Code/chamilo-stable/repository/viewer/php/lib/manager/component/creator.class.php:40 0.3954 31694248 12. repository\ContentObjectForm::factory() /home/kmoerman/Code/chamilo-stable/repository/viewer/php/lib/manager/component/creator.class.php:133 0.3964 32021160 13. repository\ContentObjectForm->__construct() /home/kmoerman/Code/chamilo-stable/repository/php/lib/content_object_form.class.php:692 0.4145 34067568 14. repository\content_object\document\DocumentForm->setDefaults() /home/kmoerman/Code/chamilo-stable/repository/php/lib/content_object_form.class.php:92 0.4145 34067880 15. repository\content_object\document\Document->get_filename() /home/kmoerman/Code/chamilo-stable/repository/content_object/document/php/lib/form/content_object.class.php:91 0.4145 34068024 16. common\libraries\CompositeDataClass->get_additional_property() /home/kmoerman/Code/chamilo-stable/repository/content_object/document/php/lib/data_class/content_object.class.php:82 0.4145 34068024 17. common\libraries\CompositeDataClass->check_for_additional_properties() /home/kmoerman/Code/chamilo-stable/common/libraries/php/shared/storage/data_class/composite_data_class.class.php:61
Updated by Anonymous over 9 years ago
I get this error (DocumentDataClass not found) when adding a File or a Document in the weblcms Document tool, and in the Make functionality of the repository. The folder repository/content_object/document/php/lib/data_manager and the corresponding entries in the autoloader class have been removed from the stable repo.
Simply re-adding this folder, and completing the autoloader fixes this issue. I will refrain from pushing this fix until further suggestions, given Sven's post in the mailing list concering this report.
Updated by Sven Vanpoucke over 9 years ago
Have you tried removing the document content object with the lynx package manager or just removing the folder and reinstalling?
Updated by Anonymous over 9 years ago
I will try your suggestions. However, to be clear: this happened on my local machine after a clean install of the stable repo.
Updated by Sven Vanpoucke over 9 years ago
Probably because the document repo is still active and you've installed the document repository without this being completely compatible with c4
Updated by Sven Vanpoucke over 9 years ago
Just tried it on a test-installation where the document content object is not included and this seems to be working here.
Updated by Anonymous over 9 years ago
Indeed, with the document CO removed, the issue disappears. i wasn't aware the document CO was deprecated
Updated by Sven Vanpoucke over 9 years ago
I wasn't sure it would still be working or not. Apparently it doesn't. I guess we do still have to provide it in the C4 version to support the upgrade.
Updated by Ludwig Theunis over 9 years ago
- Priority changed from Normal to High
I'm trying to upgrade from C3 to C4. The upgrade completes without errors. However after upgrade the same error occurs, the documents give trouble.
Investigating the problem, in the content _object table the type of a document is still document. As I understand it should be converted to either page, or file.
If I check the document content_object code wich is pulled with the latest code. It seams this is the C3 content object, I don't see any code of upgrade...
When I compare this to the code of dev before the merge, there was code to upgrade the document content_object present.
So it seams that some how the dev code of document is not merged to the current stable....
So I think in C4 the document content object should still be there with the upgrade code, only for the upgrade....
I will try the upgrade by copying the document code from the old dev.....
Updated by Ludwig Theunis over 9 years ago
- Project changed from Courses to Repository
- Status changed from New to Needs testing
- % Done changed from 0 to 10
I have branched and merged the chamilo-document-dev from chamilo-archive so the document also has a 4 version.
After upgrading people should be aware they have to deactivate the document.
I will do a test upgrade with this....
Updated by Ludwig Theunis over 9 years ago
- Priority changed from High to Normal
With the merge of the content-object document from chamilo-archive, the upgrade is succesfully carried out, the content object document is deactivated automatically.
Updated by Sven Vanpoucke over 9 years ago
But this will stile pose a problem when installing a new version of C4 since the document object is included and will be registered during installation.
Updated by Hans De Bisschop over 9 years ago
Easy enough to fix, will commit and push it asap