Forums / Install & configuration / svn/stable/3.7, "Could not fetch addon package..."

svn/stable/3.7, "Could not fetch addon package..."

Author Message

Karl Hegbloom

Friday 09 December 2005 8:17:50 am

When I attempt setup of a shop site, I get the following error. I do not know what it means and cannot find mention of it anywhere on the ez.no web site. Does anybody know what's the matter and how to fix it? I'm using Postgresql 8.0, and Ubuntu 5.10. I have ezpublish checked out from the svn repository, and it's version stable/3.7 fresh as of yesterday. I have made one change, posted at end.

Creating sites

The setup wizard was not able to complete the creation of your selected sites.

The following errors were detected:

* EZSW-050

Could not fetch addon package named products

* EZSW-040

Failed to initialize site package shop

If you think you have fixed the errors you can try and click the "Retry" button.

Index: lib/eztemplate/classes/eztemplatefileresource.php
===================================================================
--- lib/eztemplate/classes/eztemplatefileresource.php	(revision 14313)
+++ lib/eztemplate/classes/eztemplatefileresource.php	(working copy)
@@ -242,7 +242,7 @@
 
             if ( is_readable( $path ) )
             {
-                $text = file_get_contents( $path );
+                $text = eZFile::getContents( $path );
                 $text = preg_replace( "/\n|\r\n|\r/", "\n", $text );
                 $tplINI =& $tpl->ini();
                 $charset = $tplINI->variable( 'CharsetSettings', 'DefaultTemplateCharset' );

Karl Hegbloom

Friday 09 December 2005 11:41:24 am

I installed the tar file of ezpublish-3.7.2, and now it has installed successfully, but only when I did not select any additional features after selecting the shopping site configuration. For the svn 3.7 checkout, the additional features selection page was blank.

I had to increase the php memory_limit to 64M in order to log in as the admin user the first time. I suspect that it can be lowered after that but have not tried yet.

Svitlana Shatokhina

Friday 01 December 2006 7:41:18 am

Hi,

If you download eZ publish stable/3.7 from svn, the packages will not be retrieved (because they are stored separately in some other repository) and "your_ezpublish_stable_3.7_root_directory/packages" directory will be empty. As a result, the setup wizard will not display the list of packages on the "Site functionality" step, then you will get EZSW-050 and EZSW-040 errors on the last step (the setup wizard will stop).

To fix this, you can do the following:

1. Download the latest version of the 3.7 branch from http://ez.no/download/ez_publish, unpack the archive and copy the "packages" directory to "your_ezpublish_stable_3.7_root_directory".
2. Add the following lines to the "site.ini.append.php" file located in the "your_ezpublish_stable_3.7_root_directory/settings/override/" directory:

[SiteAccessSettings]
CheckValidity=true

so that the setup wizard will be initiated when trying to access the site (if the file does not exist, create it).

Best regards,
Sveta

Matthew Carroll

Friday 01 December 2006 2:51:45 pm

Hi Svitlana

It would be useful if the packages could be provided in svn, as well as the main codebase... it is useful to be able to download a complete copy of ezpublish using svn, even if some parts (e.g. online editor) come from separate repositories.

See also:

http://ez.no/community/forum/install_configuration/how_do_i_retrieve_all_packages_for_my_3_8_install

Matthew

http://carroll.org.uk