The collections view shows this error (translated from German): A server error prevented the contents of this table from loading. For more information, see your browser's console, the MODX Manager log and/or the PHP server log.
The modx error log is empty. The developer tools show this error:
Failed to load resource: the server responded with a status of 500 ()
/connectors/index.php:1
500
modx.grid.js?mv=303pl:205
onStoreException @ modx.grid.js?mv=303pl:205
I have two installations with the same configuration in this part. PHP version is the same: 8.0.2x
One has MODX version 3.0.1 which works fine without any problems. the other has the 3.0.3 and there is the problem. The collections are identical, also the snippet for the renderer.
This is the server error message: AH01071: Got error 'PHP message: PHP Parse error: syntax error, unexpected token "<", expecting end of file in [/var/www/vhosts/***/core/cache/includes/elements/modx/revolution/modsnippet/50.include.cache.php](https://***/smb/file-manager/code-editor?currentDir=***core%2Fcache%2Fincludes%2Felements%2Fmodx%2Frevolution%2Fmodsnippet&subscriptionId=1531&file=50.include.cache.php&redirect=%2Fsmb%2Flog-file%2Fbrowser%2Fid%2F1534) on line 2', referer: https://***/manager/?a=resource/update&id=16
That’s crazy: the cache file is a bit different from the original snippet. The snippet code can be found above.
And this is the code in the cache file:
There is another entry in the server error log – seems I should ask at first the provider support what that means. (AH01630: client denied by server configuration)
NOPE, that has nothing to do with this problem. The error message is: AH01630: client denied by server configuration: [/var/www/vhosts/***/core/docs/changelog.txt]
Removed the first line and saved the snippet. Cleared the cache – checked the cache: is empty.
Called the resource again: double <?php in the cached file (and no extra spaces in the first lines).
Instead of deleting the first line in the snippet (the <?php) I commented it out. Now the collection view works fine and the cached file looks this at first lines:
Other snippets outside the collection extra work without problems WITH the first line.
I think there is a conflict between MODX 3.0.3 and the Collections extra.
Hmm … I’m not a programmer. I see only one difference: the correct working 3.0.1 and the problematic 3.0.3, both with the same PHP version, same collection extra, same collection view and same renderer snippet.
This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.