Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an exeption or a test on the migration error User Notice: Undefined property: Proxies\__CG__\Chamilo\CourseBundle\Entity\CQuiz::$attempts #5351

Open
NicoDucou opened this issue Apr 10, 2024 · 0 comments

Comments

@NicoDucou
Copy link
Member

In Chamilo master on the 2024/04/10 when doing a migration we get an error that block the migration. Just by launching the migration again it works and it is getting through.
The error is :

Version20231012185600 checking quiz 3038 as resource node 
[error] Migration Chamilo\CoreBundle\Migrations\Schema\V200\Version20231012185600 failed during Execution. Error: "User Notice: Undefined property: Proxies\__CG__\Chamilo\CourseBundle\Entity\CQuiz::$attempts"

In __CG__ChamiloCourseBundleEntityCQuiz.php line 71:
                                                                                                
  User Notice: Undefined property: Proxies\__CG__\Chamilo\CourseBundle\Entity\CQuiz::$attempts  

There should be a exception or a test on the User Notice: Undefined property: Proxies_CG_\Chamilo\CourseBundle\Entity\CQuiz::$attempts to avoid blocking the migration.

@NicoDucou NicoDucou added the Bug label Apr 10, 2024
@NicoDucou NicoDucou added this to the 2.0 milestone Apr 10, 2024
@christianbeeznest christianbeeznest self-assigned this Apr 10, 2024
christianbeeznest added a commit to christianbeeznest/chamilo-lms that referenced this issue Apr 10, 2024
christianbeeznest added a commit that referenced this issue Apr 10, 2024
Internal: Fix migration error handling for quizzes - refs #5351
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants