3.0.3: Change document to collection, no content anymore

I’m very frustrated with the 3.0.3 now. Issues on issues …

I have the extra Collections, set a collections view and tried now to change a document resource to collection. After that I can’t see any content of this resource.

Error message in the developer tools:

Uncaught TypeError: Cannot read properties of undefined (reading 'bind')
    at collections.grid.ContainerCollections.wrapRenderer (collections.grid.resources.js:151:37)
    at collections.grid.ContainerCollections.getColumns (collections.grid.resources.js:163:39)
    at new collections.grid.ContainerCollections (collections.grid.resources.js:32:24)
    at Object.create (ext-all.js:21:125217)
    at S.createComponent (ext-all.js:21:156282)
    at S.lookupComponent (ext-all.js:21:156201)
    at S.add (ext-all.js:21:154321)
    at S.<anonymous> (ext-all.js:21:154293)
    at Object.each (ext-base.js:21:6081)
    at S.add (ext-all.js:21:154250)

Error message in modx error protocol:

[2023-02-10 14:21:07] (ERROR @ /var/www/vhosts/…/core/src/Revolution/modPhpThumb.php : 335) PHP warning: Undefined array key "sia"
[2023-02-10 14:21:07] (ERROR @ /var/www/vhosts/…/core/src/Revolution/modPhpThumb.php : 335) PHP warning: Undefined array key "sia"
[2023-02-10 14:21:07] (ERROR @ /var/www/vhosts/…/core/src/Revolution/modPhpThumb.php : 335) PHP warning: Undefined array key "down"
[2023-02-10 14:21:07] (ERROR @ /var/www/vhosts/…/core/src/Revolution/modPhpThumb.php : 335) PHP warning: Undefined array key "down"
[2023-02-10 14:21:07] (ERROR @ /var/www/vhosts/…/core/src/Revolution/modPhpThumb.php : 337) PHP warning: Undefined array key "down"
[2023-02-10 14:21:07] (ERROR @ /var/www/vhosts/…/core/src/Revolution/modPhpThumb.php : 337) PHP warning: Undefined array key "down"
[2023-02-10 14:21:07] (ERROR @ /var/www/vhosts/…/core/src/Revolution/modPhpThumb.php : 339) PHP warning: Undefined array key "down"
[2023-02-10 14:21:07] (ERROR @ /var/www/vhosts/…/core/src/Revolution/modPhpThumb.php : 339) PHP warning: Undefined array key "down"
[2023-02-10 14:21:07] (ERROR @ /var/www/vhosts…/core/src/Revolution/modPhpThumb.php : 305) PHP warning: Undefined array key "HTTP_IF_MODIFIED_SINCE"
[2023-02-10 14:21:07] (ERROR @ /var/www/vhosts/…/core/src/Revolution/modPhpThumb.php : 305) PHP warning: Undefined array key "HTTP_IF_MODIFIED_SINCE"

Is there a way to solve this?

Additional information:

I first tried to create a new collection view. This failed, nothing happened.
Then I duplicated the blog view and changed ist. This worked.
After all I can’t change a document to a collection: empty editing area.

I deleted the new collection view. Now I can change a document resource to a collection.
Tried to import the (before exported) new collection view: no content in the editing area.

Must be an issue with creating new collection views. But how to solve this?

which php version?
maybe its more collections having issues with the php version, than its an MODX version issue.

I even couldn’t create a collections view on php 8.1, while on 7.4 it did work.

This is a known issue. There are some linked pull requests here:

It’s PHP Version 8.0.22

Maybe that’s the problem. Will try a bit with settings, it seems that a renderer produces issues.

I’m getting this in 3.0.3 (PHP8.1) but it doesn’t seem related to Collections as I’ve not edited or created a new view…

(ERROR @ .../public_html/core/src/Revolution/modPhpThumb.php : 305) PHP warning: Undefined array key "HTTP_IF_MODIFIED_SINCE"

These warnings are not related to Collections. modPhpThumb is used to create image thumbnails.
This PR fixed the issue (and MODX 3.0.4 contains the updated code).

1 Like