Skip to content
This repository was archived by the owner on Aug 31, 2022. It is now read-only.
This repository was archived by the owner on Aug 31, 2022. It is now read-only.

PHP Notice when doing multiple file uploads #31

@bart-webleads

Description

@bart-webleads

Hi all,

Created a simple module, a few text fields and with multiple images.
When adding a new record, with images, this notice occours:
Notice: Undefined property: stdClass::$9
After this a PDO exception is thrown because of a Integrity constraint violation on the 'sequence' Column...

I'm using forkcms 3.6.0, with mulitple languages.

By the way... Great module! This is going to save me lot of backend coding time, thanks!

Regards,
Bart.

--[long error report]---

Notice: Undefined property: stdClass::$9 in /project/forkcms/htdocs/backend/modules/user_reviews/actions/add.php on line 145 Call Stack: 0.0000 658840 1. {main}() /project/forkcms/htdocs/index.php:0 0.0074 1127432 2. Kernel->handle() /project/forkcms/htdocs/index.php:38 0.0076 1143272 3. ApplicationRouting->handleRequest() /project/forkcms/htdocs/app/Kernel.php:533 0.0660 4197776 4. Backend->display() /project/forkcms/htdocs/app/routing.php:135 0.0660 4197776 5. BackendAction->execute() /project/forkcms/htdocs/backend/core/engine/backend.php:31 0.1172 6090256 6. BackendUserReviewsAdd->execute() /project/forkcms/htdocs/backend/core/engine/action.php:81 0.1443 8460896 7. BackendUserReviewsAdd->validateForm() /project/forkcms/htdocs/backend/modules/user_reviews/actions/add.php:38 Notice: Trying to get property of non-object in /project/forkcms/htdocs/backend/modules/user_reviews/actions/add.php on line 145 Call Stack: 0.0000 658840 1. {main}() /project/forkcms/htdocs/index.php:0 0.0074 1127432 2. Kernel->handle() /project/forkcms/htdocs/index.php:38 0.0076 1143272 3. ApplicationRouting->handleRequest() /project/forkcms/htdocs/app/Kernel.php:533 0.0660 4197776 4. Backend->display() /project/forkcms/htdocs/app/routing.php:135 0.0660 4197776 5. BackendAction->execute() /project/forkcms/htdocs/backend/core/engine/backend.php:31 0.1172 6090256 6. BackendUserReviewsAdd->execute() /project/forkcms/htdocs/backend/core/engine/action.php:81 0.1443 8460896 7. BackendUserReviewsAdd->validateForm() /project/forkcms/htdocs/backend/modules/user_reviews/actions/add.php:38

--[/long error report]---

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions