Tuesday 15 May 2012 12:13:16 pm - 9 replies
Hello,
i'm trying to install EzPublish 2012.4 on OpenSuse 12.1 with PHP 5.3.8 and MySQL 5.5.23, but I can't pass the step with Site Selection Package.
I selected "eZ Flow (without demo content) (ver. 2.4-0)". When I press "Next", I see:
"Package 'ezflow_site_clean' and it's dependencies have been downloaded successfully. Press 'Next' to continue."
When I press Next button, i 'm going back to previous step: site package selection with this error:
Please choose a site package you would like to test or base your site on.
Error
No site package chosen.
However, i can see the ezflow_site_clean folder in var/storage/packages. No PHP error is logged.
Is anyone has an idea for this issue ?
Thanks
Patrice André
Modified on Tuesday 15 May 2012 3:06:05 pm by Patrice André
Friday 18 May 2012 12:26:12 pm
Hi Patrice,
You may want to edit the settings/override/site.ini.append.php file (create it, along with the directory structure if it does not exist), and place the following in it :
[DebugSettings] DebugOutput=enabled [TemplateSettings] Debug=enabled ShowUsedTemplates=enabled SowXHTMLCode=disabled DevelopmentMode=enabled
Then resume the installation, the Debug Output (bottom of the page), should give you more precised/detailed error messages (feel free to share them with us on this thread).
Cheers !
Friday 18 May 2012 1:58:31 pm
Hi Nicolas,
thank you for your answer.
I solved the problem thanks the debugging mode.
In my warning.log, this line appeared:
preg_replace(): Compilation failed: POSIX collating elements are not supported at offset 1 in /home/patrice/Workspace/xproject/lib/ezi18n/classes/ezchartransform.php on line 407
Then I added escape character before "." in regex at line 397 and 425 of ezchartransform.php file.
So I have now:
static function commandUrlCleanup( $text, $charsetName )
{
$sep = eZCharTransform::wordSeparator();
$sepQ = preg_quote( $sep );
$text = preg_replace( array( "#[^a-zA-Z0-9_!\.-]+#",
"#^[\.]+|[!\.]+$#", # Remove dots at beginning/end
"#\.\.+#", # Remove double dots
"#[{$sepQ}]+#", # Turn multiple separators into one
"#^[{$sepQ}]+|[{$sepQ}]+$#" ), # Strip separator from beginning/end
array( $sep,
$sep,
$sep,
$sep,
"" ),
$text );
return $text;
}
static function commandUrlCleanupIRI( $text, $charsetName )
{
// With IRI support we keep all characters except some reserved ones,
// they are space, ampersand, semi-colon, forward slash, colon, equal sign, question mark,
// square brackets, parenthesis, plus.
//
// Note: Space is turned into a dash to make it easier for people to
// paste urls from the system and have the whole url recognized
// instead of being broken off
$sep = eZCharTransform::wordSeparator();
$sepQ = preg_quote( $sep );
$prepost = " ." . $sepQ;
if ( $sep != "-" )
$prepost .= "-";
$text = preg_replace( array( "#[ \\\\%\#&;/:=?\[\]()+]+#",
"#^[\.]+|[!\.]+$#", # Remove dots at beginning/end
"#\.\.+#", # Remove double dots
"#[{$sepQ}]+#", # Turn multiple separators into one
"#^[{$prepost}]+|[{$prepost}]+$#" ),
array( $sep,
$sep,
$sep,
$sep,
"" ),
$text );
return $text;
}
Friday 18 May 2012 2:08:51 pm
That is good news !
This might be a bug, by the way. Have you tried to find related issues/bug-reports in http://issues.ez.no/ezpublish ? If none exists, you may want to report it. And since you have a working patch, it would be ideal if you submitted a pull-request for this (the process is detailed here : http://share.ez.no/learn/ez-publish/how-to-contribute-to-ez-publish-using-git )
Cheers !
Monday 21 May 2012 10:36:25 pm
Hi Nicolas,
I posted this issue http://issues.ez.no/IssueView.php?Id=19440&activeItem=1 and a pushed my little contribution in github https://github.com/patdec/ezpublish/commit/70e9d4bd608687bf09501c69211c9ddab5739fbb.
I hope it's done according to the rules.
Thank you for your help and guidelines
Tuesday 22 May 2012 2:19:02 pm
Quote from Patrice André :I posted this issue http://issues.ez.no/IssueView.php?Id=19440&activeItem=1 and a pushed my little contribution in github https://github.com/patdec/ezpublish/commit/70e9d4bd608687bf09501c69211c9ddab5739fbb.
I hope it's done according to the rules.
Thank you for your help and guidelines
Excellent Patrice.
We'll have a look into it shortly !
@everyone : here is Patrice's pull-request : https://github.com/ezsystems/ezpublish/pull/347
Well done, thanks !
You must be logged in to post messages in this topic!