eZ Community » Forums » Install & configuration » [ eZ 4.7 ] Installation : package...
expandshrink

[ eZ 4.7 ] Installation : package step problem

[ eZ 4.7 ] Installation : package step problem

Sunday 24 November 2013 2:33:28 pm - 2 replies

Hello everyone,

Sorry to ask for something that may have already been treated in the past but I can't find any information about it and that's driving me crazy :

I just wanted to install eZ 4.7, but I'm stuck at the "site package" step, which reports when I select "plain site" :

Error

Invalid package

Remote repository URL: http://packages.ez.no/ezpublish/4.7/4.7.0

So, I just don't know what to do, as manual upload reports a problem too :

Uploaded file is not an eZ Publish package

Could that be linked to a missing requirement on the server ? (Apache). Zlib seems installed, and I just notice "AcceptPathInfo" is "disabled or running in CGI mode".

Any idea/suggestion/good word to save my mind from going completely crazy ? big-smile.gif Emoticon 

Thanks !

Thursday 12 December 2013 7:22:00 pm

Hi Jordan,

I just had a similar problem with the latest community edition and I've addressed the cause of this problem.

Basically, because the eZ Publish package archives use "\0" as the placeholders in entry path, so such entries can't be extracted successfully.

The following files need to be changed to fix it:

ez/kernel/classes/ezpackage.php

 @@ -1137,7 +1137,7 @@ class eZPackage
             // Search for the files we want to extract
             foreach( $archive as $entry )
             {
-                if ( in_array( $entry->getPath(), $fileList ) )
+                if ( in_array( trim($entry->getPath(),DIRECTORY_SEPARATOR), $fileList ) )
                 {
                     if ( !$archive->extractCurrent( $archivePath ) )
                     {

lib/ezc/Archive/src/entry.php

 @@ -196,11 +196,11 @@ class ezcArchiveEntry
     {
         if ( $withPrefix )
         {
-            return $this->fileStructure->path;
+            return trim($this->fileStructure->path);
         }
         else
         {
-            return $this->getPathWithoutPrefix( $this->fileStructure->path, $this->prefix );
+            return $this->getPathWithoutPrefix( trim($this->fileStructure->path), $this->prefix );
         }
     }

Thursday 12 December 2013 7:23:07 pm

You can also review the changes at the following URLs:

https://github.com/zerustech/ezpublish/commit/1d02542a36d66dd0daa8463350f7367a0d601144

https://github.com/zerustech/zetacomponents/commit/f7952fa4acd8c47d8b4436c2f9d996ba1e694445

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from