I think I have found an issue with “var_site” parameter, in the following context:
eZPlatform 2.0 + Legacy Bridge 2.0 + Netgen Admin UI 2.1
I have found a solution --> please tell me if it’s the right choice ?
Let’s suppose I have a “article” content type with an Image fieldtype.
. If I create an article from the NG Admin UI:
–> the image file wil be stored in “./ezpublish_legacy/var/storage/images/”
–> the Platform UI will crash with an exception “Argument ‘BinaryFile::id’ is invalid”
–> the Frontoffice will crash with an exception “Argument ‘BinaryFile::id’ is invalid”
. If I create an article from the Platform UI:
–> the image file will be stored in “./ezpublish_legacy/var/site/storage/images/”
And I have found the following configurations:
ezpublish: system: site_group: var_dir: var/site
ezpublish: system: ngadminui: var_dir: var
I found the solution with setting the “var_dir” parameter value in ngadminui.yml, with the same value of “var_dir” in ezplatform.yml
var_dir: var/site in both files
–> image files are stored in “./ezpublish_legacy/var/site/storage/images/”, whatever the UI used (Platform or Netgen)
–> no more crash / exception.