Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-22741

There is a problem with ezpublish on Windows. The problem relates to the usage of backslashes.

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • None
    • 5.2
    • Misc
    • None
    • eZ 5.2, Windows 7

    Description

      Error shown
      File: C:\wamp\www\harmony2\vendor\ezsystems\ezpublish-kernel\eZ\Publish\Core\IO\Handler\Legacy.php
      Line: 530
      Message: Argument '$path' is invalid: Storage directory 'var/ezdemo_site\storage' not found in var/ezdemo_site/storage/images/products/vegetables/254-8-ger-DE/Gemuese.jpg

      Problem
      The storage directory file is set to "var/ezdemo_site
      storage". The backslashes on Windows makes the comparison with the file path not working.

      THE WORKAROUND
      In constructor of the "vendor\ezsystems\ezpublish-kernel\eZ\Publish\Core\IO\Handler\Legacy.php" change to:

      $this->storageDirectory = str_replace( DIRECTORY_SEPARATOR, '/', $storageDirectory );

      Attachments

        Activity

          People

            Unassigned Unassigned
            721f2590-ac9c-436f-850b-802ac4805a55@accounts.ibexa.co Frank Dege
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: