Forums / Install & configuration / Problem with Language Selection / Virtual Host Mode

Problem with Language Selection / Virtual Host Mode

Author Message

Bert Slachter

Saturday 05 January 2008 6:49:35 am

I'm an ezpublish newbie (to be honest, I'm tired of Typo3). For evaluation purposes I installed a brand new 4.0.0 version / ezwebin site at http://ezpublish.berflo.com

After installation, the Search Function did not work (known problem). To make it work, I had to set ForceVirtualHost to TRUE in site.ini Global Override. Now, the Search function and the complete sample site work fine, BUT: The language selectors on the top left in the header do not work because there is an index.php? generated in the URL and the language selection:

http://ezpublish.berflo.com/index.php?/eng is generated and displays error message
http://ezpublish.berflo.com/eng generates the correct site

Most confusing, the other right-sided buttons in the same header bar (Login, Register, Tag Cloud, etc.) work fine. Just try it and visit my URL.

All other links on the pages generate the correct urls without index.php? I already digged into the different files, but couldn't find a solution.

Can anyone help? Thanks in advance

André R.

Saturday 05 January 2008 9:18:41 am

The url was generated when you installed the site, to change it you simply login to the front page and hit 'site settings'. There should be a language matrix in the bottom with urls and lables.

EDIT: Oh, and don't forget to do it for all your languages (if the site settings object is already translated..)

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Bert Slachter

Monday 07 January 2008 1:26:56 am

Thanks for your comment.However the problem remains. I corrected the URL's, I deleted any */index.php? in all .ini and settings files, I even added an alias URL.

Everything works perfect for one language, but as soon as you use the >>Eng >>Ger >>Dut selectors in the header bar, an /index.php? is generated in the URL and the error message is displayed.

I even made a complete fresh install with one language only, and changed the URL name during installation wizard from ezpublish.berflo.com/index.php? to ezpublish.berflo.com

When I then added a second language via the Admin Panel, again */index.php?/eng is generated instead of *./eng

Again, for me it is difficult to understand why the Login/Register/SiteMap/Tag Cloud links work fine, but the language selectors don't. For me it looks like there is something wrong in the generation of the language links. Unfortunately, I do have to use three languages. So for me this is really a knock-out criteria.

My site is running at a commercial ISP, in the same webspace I am running a complete Typo3 site, Gallery2, Wordpress and Wikipedia without any problems. Only ez makes this kind of hickups. Here's my system information:

Site: ezpublish.berflo.com
Version: 4.0.0 (4.0.0)
SVN revision: 19785
Extensions: ezwebin , ezdhtml , ezodf
PHP
Version: 5.2.3-0.dotdeb.1
Extensions: zip, xmlwriter, libxml, dom, xmlreader, xml, wddx, tokenizer, sysvshm, sysvsem, sysvmsg, session, pcre, SimpleXML, sockets, soap, SPL, shmop, standard, Reflection, posix, mime_magic, mbstring, json, iconv, hash, gettext, ftp, filter, exif, dbase, dba, date, ctype, calendar, bz2, bcmath, zlib, openssl, cgi-fcgi, curl, gd, imap, mcrypt, mhash, mysql, mysqli, PDO, pdo_mysql, suhosin
Miscellaneous: Safe mode is off.
Basedir restriction is on and set to /var/www/NFleischm:/var/www/system/htdocs/:/usr/share/php.
Global variable registration is off.
File uploading is enabled.
Maximum size of post data (text and files) is 20M.
Script memory limit is 148M.
Maximum execution time is 330 seconds.

Here is a copy of my .htaccess file in the ezpublish document root:

# Copy this file to a new file called .htaccess in your eZ Publish root
# to make the site more secure in non-virtualhost mode (index.php used in urls).
#

### php_admin_value and php_value can only be used with mod_php. My ISP has Fast-CGI and these command produce errors. Thus, it's commented out.
#php_value allow_call_time_pass_reference 0

<FilesMatch "(index\.php|\.(gif|jpe?g|png|css|js|html)|var(.+)storage.pdf(.+)\.pdf)$">
order allow,deny
allow from all
</FilesMatch>

RewriteEngine On
RewriteRule content/treemenu/?$ index_treemenu.php
RewriteRule index_treemenu.php - [L]

RewriteRule !\.(gif|jpe?g|png|css|js|html)|var(.+)storage.pdf(.+)\.pdf$ index.php

DirectoryIndex index.php

Bert Slachter

Monday 07 January 2008 3:02:01 am

Oooops - Sorry! I finally found it! Forget my last post, it's working perfectly now!

Francois SIMON

Monday 28 April 2008 11:25:24 pm

Hello,

I have the same kinf of problem, with the tag clouds, i am using different languages, but the tag clouds are language specific, if for example i am in the english page and check the tag clouds, i get the one of the different languages as well, i would like them to be be specific to one language. How can i do it?

Thank you in advance

Bruce Morrison

Tuesday 29 April 2008 12:48:16 am

Hi Francois

I've recently done some work with the tag clouds. Interestingly they are part of the ezwebmin (& possibly ezflow) components and not the core eZ publish distribution. While I can't seem to find a reference I seem to recall they were once user contributions (could be wrong here).

While I didn't come across your issue, I did find some issues with the way the keywords are retrieved and counted. There are much more efficient ways of retrieving the data.

Looking at the template operator ( extension/ezwebin/autoloads/eztagcloud.php )
there appears to be a language filter in the SQL

eZContentLanguage::languagesSQLFilter( 'ezcontentobject' ))

which should limit the keywords in the cloud to those set in site.ini

[RegionalSettings]
SiteLanguageList

Are you using multiple languages within the same siteacess?

http://pubsvn.ez.no/doxygen/trunk/html/ezcontentlanguage_8php-source.html#l00622
http://pubsvn.ez.no/doxygen/trunk/html/ezcontentlanguage_8php-source.html#l00309

HTH
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Francois SIMON

Tuesday 29 April 2008 10:38:53 pm

Hi Bruce

Thank you for your help. Yes I am using multiple languages for the same site acess.

eZ debug

Timing: Jan 18 2025 16:15:36
Script start
Timing: Jan 18 2025 16:15:36
Module start 'content'
Timing: Jan 18 2025 16:15:38
Module end 'content'
Timing: Jan 18 2025 16:15:38
Script end

Main resources:

Total runtime1.3174 sec
Peak memory usage4,096.0000 KB
Database Queries210

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0090 589.0781180.8047
Module start 'content' 0.00911.1650 769.8828684.3594
Module end 'content' 1.17410.1432 1,454.2422345.0313
Script end 1.3173  1,799.2734 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00430.3295210.0002
Check MTime0.00180.1391210.0001
Mysql Total
Database connection0.00180.136410.0018
Mysqli_queries1.217292.39682100.0058
Looping result0.00210.15952080.0000
Template Total1.280197.220.6401
Template load0.00210.160520.0011
Template processing1.278097.009220.6390
Template load and register function0.00020.015710.0002
states
state_id_array0.00100.075810.0010
state_identifier_array0.00240.185020.0012
Override
Cache load0.00190.1420740.0000
Sytem overhead
Fetch class attribute can translate value0.00220.163650.0004
Fetch class attribute name0.00100.075790.0001
XML
Image XML parsing0.00260.197250.0005
class_abstraction
Instantiating content class attribute0.00050.040290.0001
General
dbfile0.00330.2497340.0001
String conversion0.00000.000530.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
18content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
9content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 40
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs