Hello dear MODX community, I have a problem with multifile-uploader with MIGX, I do everything according to the article from the documentation - Using resource-specific mediasource and multifile-uploader with MIGX. The error lies in the fact that a notification of this type comes to MODX error.log:
(ERROR @ C:\OSPanel\domains\site\core\src\Revolution\Sources\modFileMediaSource.php : 57) Could not initialize "ResourceMediaPath" Media Source! Unable to create a directory at . mkdir(): Invalid path
But strangely enough, a folder is created and images are successfully loaded into it.
Can you tell me how to remove this entry from error.log, it is very annoying!
Some additional information:
- I have already reinstalled MODX to a newer and cleaner version, it did not give results, the error remains
- The rights to the folder were granted to 755, and also issued the rights to 777, but the error still remains
- I used a Bug fix from Bruno - migxResourceMediaPath create empty folders, but unfortunately the error still comes in error.log
- The error occurs after I create a new document with a template to which Template Variables with MIGX is attached, two error messages appear after creation and then several entries in error.log are re-created at random time
- I specify the basePath and urlPath paths as follows -
[[migxResourceMediaPath? &pathTpl=
assets/resourceimages/{id}/&checkTVs=
resourcealbum&createFolder=
1]]
Before applying the Bugfix from Bruno, I indicated the paths like this -
[[migxResourceMediaPath? &pathTpl=
assets/resourceimages/{id}/&createFolder=
1]]
A few screenshots of the problem: