I just installed the Collections extra and while trying to create a new view, a click on the save button does nothing. The console shows a 500 error for /assets/components/collections/connector.php
.
Apache error log shows:
[php:error] [pid 31148] [client 127.0.0.1:64033] PHP Fatal error: Uncaught TypeError: explode(): Argument #2 ($string) must be of type string, array given in /var/www/html/project/core/components/collections/model/collections/collections.class.php:131
Stack trace:
#0 /var/www/html/project/core/components/collections/model/collections/collections.class.php(131): explode()
#1 /var/www/html/project/core/components/collections/processors/mgr/template/create.class.php(98): Collections->explodeAndClean()
#2 /var/www/html/project/core/model/modx/modprocessor.class.php(647): CollectionsTemplateCreateProcessor->beforeSet()
#3 /var/www/html/project/core/model/modx/modprocessor.class.php(185): modObjectCreateProcessor->process()
#4 /var/www/html/project/core/model/modx/modx.class.php(1770): modProcessor->run()
#5 /var/www/html/project/core/model/modx/modconnectorresponse.class.php(144): modX->runProcessor()
#6 /var/www/html/project/core/model/modx/modconnectorrequest.class.php(86): modConnectorResponse->outputContent()
#7 /var/www/html/project/core/model/modx/modconnectorrequest.class.php(73): modConnectorRequest->prepareResponse()
#8 /var/www/html/project/assets/components/collections/connector.php(23): modConnectorRequest->handleRequest()
#9 {main}
thrown in /var/www/html/project/core/components/collections/model/collections/collections.class.php on line 131, referer: http://localhost/manager/?a=template/create&namespace=collections
I first thought of file/folder permission issues, but after running chmod 755 on everything within the /assets folder the issue still persists.
Interestingly enough while editing the default “Blog” view, hitting save checks out fine with a 200 to the connector.php.
Any ideas?