Forums / General / Is eZ Flow working with eZ Publish 4.1 ?

Is eZ Flow working with eZ Publish 4.1 ?

Author Message

Hakim Bouras

Sunday 26 April 2009 11:53:23 am

Hi,

I am desesperately trying to install eZ Publish 4.1 with ezflow. I have made many tries :
- multilingual, host setting
- multilingual, URL setting
- english only, host setting
- english only, URL setting

(I have tried these installation both with the SVN files, and the 4.1.0 official installation package).

For all of these tries, each time I tried to edit the home page, I did not have access to the blocks (left zone, right zone).

I thought that I have something wrong on my machine (although it has the requirements specified for installing a 4.1 version of ezp) so I also tried to install the version 4.03 - which is working properly : I was then able to see the left and right zone panels and edit the blocks settings for the home page.

Does someone could confirm whether eZ Flow is working or not with eZ Publish 4.1 ? And if it is working, any clues about which setting I should look at to have it working for me too... :-)

Thank you very much for your help,
Hakim

PS: I followed the indication of Lukasz (rewrite rules), and I am using the last version of ezsession.php

Łukasz Serwatka

Monday 27 April 2009 12:38:18 am

Hi,

Yes, eZ Flow it is working with eZ Publish 4.1 fine. I think something was overlooked in your setup.

Could you describe how are you tried to install eZ Publish 4.1, what access mode do you use with eZ Flow and how does your re-write rules look like? Do you get any JavaScript errors in content/edit for frontpages in Firebug?

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Hakim Bouras

Monday 27 April 2009 11:15:53 am

Hi Lukasz,

Thank you for your answer.

I downloaded the following installation package "ezpublish-4.1.0-with_ezc-gpl.zip".

I am using the following installation settings:

- System:OK
- Image system: ImageGD
- Mail:SMTP
- Database: MySQL Improved
- Language: eng-GB
- Site: ezflow_site 

and I choose Host access mode.

I replaced the ezsession.php file with the newest one available on SVN 4.1 stable.

When I try to edit the home page, I can see th two following errors in the FF console:
<b>
Error : YAHOO.lang.extend failed, please check that all dependencies are included.
Source : http://site-410.hb/extension/ezwebin/design/ezwebin/javascript/yui/build/yahoo-dom-event/yahoo-dom-event.js
Line : 7

Error : YAHOO.util.Get is undefined
Source : http://site-410.hb/content/edit/57/2/eng-GB
Line : 484
</b>
I am using FireFox 3.0.8

My virtual host settings are :

<VirtualHost *:80>

    <Directory "D:\Data\site\trunk-410">
		Options Indexes FollowSymLinks
		AllowOverride all
		Order Allow,Deny
		Allow from all
    </Directory>

    DocumentRoot "D:\Data\site\trunk-410"
	
    <IfModule mod_php5.c>
        php_admin_flag safe_mode Off
        php_admin_value register_globals    0
        php_value magic_quotes_gpc  0
        php_value magic_quotes_runtime  0
        php_value allow_call_time_pass_reference 0
    </IfModule>
 
    DirectoryIndex index.php
 
    <IfModule mod_rewrite.c>
        RewriteEngine On
	RewriteRule content/treemenu/? /index_treemenu.php [L] 
        Rewriterule ^/var/storage/.* - [L]
        Rewriterule ^/var/[^/]+/storage/.* - [L]
        RewriteRule ^/var/cache/texttoimage/.* - [L]
	RewriteRule ^/var/[^/]+/cache/public/.* - [L]
        RewriteRule ^/var/[^/]+/cache/texttoimage/.* - [L]
        Rewriterule ^/design/[^/]+/(stylesheets|images|javascript)/.* - [L]
        Rewriterule ^/share/icons/.* - [L]
	Rewriterule ^/extension/[^/]+/design/[^/]+/(flash|stylesheets|images|javascripts?)/.* - [L]
        Rewriterule ^/packages/styles/.+/(stylesheets|images|javascript)/[^/]+/.* - [L]
	RewriteRule ^/packages/styles/.+/thumbnail/.* - [L]
        RewriteRule ^/favicon\.ico - [L]
        RewriteRule ^/robots\.txt - [L]
	        # Uncomment the following lines when using popup style debug.
        	# RewriteRule ^/var/cache/debug\.html.* - [L]
	        # RewriteRule ^/var/[^/]+/cache/debug\.html.* - [L]
        RewriteRule .* /index.php
    </IfModule>

	ServerName site-410.hb
	ServerAlias admin.site-410.hb		

</VirtualHost>

Looking at the system information in the admin interface return:

eZ Publish
Site: site-410.hb
Version: 4.1.0 (4.1.0)
SVN revision: 19785
Extensions: ezflow , ezwebin , ezoe , ezodf
PHP
Version: 5.2.8 (Details)
Extensions: bcmath, calendar, com_dotnet, ctype, session, filter, ftp, hash, iconv, json, odbc, pcre, Reflection, date, libxml, standard, tokenizer, zlib, SimpleXML, dom, SPL, wddx, xml, xmlreader, xmlwriter, apache2handler, apc, curl, gd, gettext, imap, mbstring, exif, mcrypt, mime_magic, ming, mysqli, pdf, PDO, pdo_mysql, pgsql, soap, sockets, SQLite, xmlrpc, xsl, zip, ps, paradox
Miscellaneous: Safe mode is off.
Basedir restriction is off.
Global variable registration is off.
File uploading is enabled.
Maximum size of post data (text and files) is 64M.
Script memory limit is 64M.
Maximum execution time is 60 seconds.
PHP Accelerator
Name:APC
Version: 3.1.0-dev
Status: Enabled.
PHP autoload functions

   1. ezpAutoloader::autoload
   2. ezcBase::autoload

Web server (software)
Name: Apache
Version: Apache/2.2.11 (Win32) DAV/2 mod_ssl/2.2.11 OpenSSL/0.9.8i mod_autoindex_color PHP/5.2.8
Modules: core, mod_win32, mpm_winnt, http_core, mod_so, mod_actions, mod_alias, mod_asis, mod_auth_basic, mod_auth_digest, mod_authn_anon, mod_authn_default, mod_authn_file, mod_authz_default, mod_authz_groupfile, mod_authz_host, mod_authz_user, mod_cgi, mod_dav, mod_dav_fs, mod_dir, mod_env, mod_expires, mod_headers, mod_include, mod_info, mod_isapi, util_ldap, mod_log_config, mod_mime, mod_mime_magic, mod_negotiation, mod_rewrite, mod_setenvif, mod_speling, mod_status, mod_vhost_alias, mod_ssl, mod_autoindex_color, mod_php5
Web server (hardware)
CPU: Intel(R) Core(TM)2 Duo CPU P8400 @ 2.26GHz 2261 MHz
Memory: B
Database
Type: mysql
Server: mysql.hb
Socket path: Not in use.
Database name: site-410
Connection retry count: 0
Character set: utf-8 (Internal)
Slave database (read only)
There is no slave database in use. 

Also, what is kind of surprising is that if I make the same test with the version 4.0.3, everything works fine.

Let me know if there is any further test I can make on my side.

Thank you for your help,
Hakim

Łukasz Serwatka

Monday 27 April 2009 12:31:24 pm

Hi Hakim,

JavaScript libraries are not loaded. Your VH setup has missing a re-write rule

Rewriterule ^/extension/[^/]+/design/[^/]+/(stylesheets|images|javascript|flash|lib?)/.* - [L]

In your case lib folder is missing in the re-write rules thus the yui is not loaded.

You mention before that you have added that re-write rule. To me it is still missing.

Just replace existing line with line above.

Rewriterule ^/extension/[^/]+/design/[^/]+/(flash|stylesheets|images|javascripts?)/.* - [L]

Restart apache and you should be there ;)

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Hakim Bouras

Monday 27 April 2009 2:03:27 pm

Hi Lukasz,

Thanks a lot for your help. It is working fine now :-)

I feel a bit stupid since after you gave me the info some days ago, I decided to verify all my rewrite rules in the doc :
http://ez.no/doc/ez_publish/technical_manual/4_0/installation/virtual_host_setup

and I used the rewrite rule provided there for eZ Flow thinking it was the same you gave me... (it actually fixed the problem of flash viewer I had and I thought it was fine...)

Well, I added a comment with the new rewrite rule that you provide.

I am now going to enjoy this very powerful extension,

Thanks again,
Hakim