Elxis CMS Forum

Support => Language => Topic started by: Davide on March 04, 2011, 00:29:14

Title: Multilingual and Seo Pro
Post by: Davide on March 04, 2011, 00:29:14
hello again, i still don't understand the problem that i have with all my site for the first time.

I cannot pass through italian to english language if Seo Pro is enabled.
in this case elxis repeat automaticaly the folder name as follow:

http://www.voncasafalco.it/elxis/en/elxis/elxis/elxis/elxis/elxis/elxis/elxis/elxis/elxis/elxis/elxis/elxis/elxis/elxis/elxis/elxis/elxis/elxis/elxis/elxis/index.php

waiting over the english button the pathway is right
http://www.voncasafalco.it/elxis/en/

What's wrong?
Thank you
Title: Re: Multilingual and Seo Pro
Post by: datahell on March 04, 2011, 08:01:12
As you have elxis in a folder named "elxis" you should open the htaccess file and make sure it looks like this.

RewriteBase /elxis/

RewriteRule ^([ar]{2})/(.*)$ /elxis/index.php?mylang=arabic [QSA,L]
RewriteRule ^([hy]{2})/(.*)$ /elxis/index.php?mylang=armenian [QSA,L]
.....

I strongly suggest you to move the site in the www folder.
Title: Re: Multilingual and Seo Pro
Post by: Davide on March 04, 2011, 10:32:47
will be possible to move it without loosing all the changes? articles and other things?

i just try to apply your suggest adding /elxis/ but it doesn't work anyway.

Also, if i manually open www.voncasafalco.it/elxis/en/index.php the page doesn't exist maybe is the server that cannot create pages?
Title: Re: Multilingual and Seo Pro
Post by: rentasite on March 04, 2011, 11:58:04
will be possible to move it without loosing all the changes? articles and other things?

yes it's possible. move your files, update your configuration.php and also update the paths in your database.
Title: Re: Multilingual and Seo Pro
Post by: Davide on March 04, 2011, 15:25:39
i just try to apply your suggest adding /elxis/ but it doesn't work anyway.

Also, if i manually open www.voncasafalco.it/elxis/en/index.php the page doesn't exist maybe is the server that cannot create pages?

What about that question?
Title: Re: Multilingual and Seo Pro
Post by: acampball on March 05, 2011, 10:13:01
I have decided this issue by adding a line in the file

Code: [Select]
if (empty($lang)) $lang = $mosConfig_lang;


in file /includes/sef.php line 364 (function sefRelToAbs) Elxis 2009.
Title: Re: Multilingual and Seo Pro
Post by: datahell on March 05, 2011, 10:49:14
$lang is never empty!

If you are inside a function to use $lang first call it from the globals:
global $lang;
Title: Re: Multilingual and Seo Pro
Post by: acampball on March 05, 2011, 11:31:47
Pay attention to what file I make changes.

It is here that for some reason, the variable $lang is null
Title: Re: Multilingual and Seo Pro
Post by: datahell on March 06, 2011, 11:11:16
$lang is already in use in that function and it is not null. It is used to calculate the value of the $isoc variable. If it was null elxis would nt have multi-lingual interface. The value is $lang (or $alang for backend) is calculated on Elxis loader file /includes/Core/loader.php
Title: Re: Multilingual and Seo Pro
Post by: acampball on March 07, 2011, 12:59:14
I'm not just amended. I also had the same problem and had to solve this problem quickly. I will try to restore the situation and the impact of write
Title: Re: Multilingual and Seo Pro
Post by: Davide on March 10, 2011, 13:21:39
yes it's possible. move your files, update your configuration.php and also update the paths in your database.

What about updating the paths in the database?
Title: Re: Multilingual and Seo Pro
Post by: Davide on March 10, 2011, 13:41:33
Warning: require_once(/web/htdocs/www.voncasafalco.it/includes/Core/loader.php) [function.require-once]: failed to open stream: No such file or directory in /web/htdocs/www.voncasafalco.it/home/index.php on line 36

Fatal error: require_once() [function.require]: Failed opening required '/web/htdocs/www.voncasafalco.it/includes/Core/loader.php' (include_path='.:/php5/lib/php/') in /web/htdocs/www.voncasafalco.it/home/index.php on line 36


I just have mooved all the file to the root folder and that's what happened. Configuration php with www.voncasafalco.it without the final slash or the path change in to // double slash
and just verified that www.voncasafalco.it/includes/Core/loader.php is existing on the server giving: Direct Access to this location is not allowed.

Changed .htaccess from /elxis/ to / and all the language are correct.

On the MySql nothing to change right?
What else i have to do?
Title: Re: Multilingual and Seo Pro
Post by: rentasite on March 10, 2011, 14:00:33
On the MySql nothing to change right?
What else i have to do?

Download the mysql file, and update any paths.
Title: Re: Multilingual and Seo Pro
Post by: Davide on March 10, 2011, 14:43:36
Download the mysql file, and update any paths.

what about the path /home/ ??
Title: Re: Multilingual and Seo Pro
Post by: Davide on March 10, 2011, 14:52:45
changed all the path from .sql backups just before mooving the site.

nothing change still the path /home/ but there's never written any address on the .sql file, only www.voncasafalco.it/images or else.
Title: Re: Multilingual and Seo Pro
Post by: ks-net on March 10, 2011, 17:56:15
Quote
Warning: require_once(/web/htdocs/www.voncasafalco.it/includes/Core/loader.php) [function.require-once]: failed to open stream: No such file or directory in /web/htdocs/www.voncasafalco.it/home/index.php on line 36

Fatal error: require_once() [function.require]: Failed opening required '/web/htdocs/www.voncasafalco.it/includes/Core/loader.php' (include_path='.:/php5/lib/php/') in /web/htdocs/www.voncasafalco.it/home/index.php on line 36

/web/htdocs/www.voncasafalco.it/ -> wrong


/web/htdocs/www.voncasafalco.it/home/  ->IS YOUR SERVER'S PUBLIC HTML!  -> this the correct path


do not mix up relative and absolute paths with  site url etc...
http://www.voncasafalco.it/ it is not mandatory to be the same as /web/htdocs/www.voncasafalco.it/

your server's root and server's public html dir is most likely that is not the same

and seems to be /web/htdocs/www.voncasafalco.it/home/


Title: Re: Multilingual and Seo Pro
Post by: Davide on March 10, 2011, 18:03:43
i don't have the folder /home/ there's as default the folder public_html but in any of my website i never used taht folder just www.myname.it/ and all the content here at the same level of the public_html folder.

So the solution for you is change all the link from www.voncasafalco.it to www.voncasafalco.it/home ?
Title: Re: Multilingual and Seo Pro
Post by: ks-net on March 10, 2011, 18:07:21
Quote
Warning: require_once(/web/htdocs/www.voncasafalco.it/includes/Core/loader.php) [function.require-once]: failed to open stream: No such file or directory in /web/htdocs/www.voncasafalco.it/home/index.php on line 36

this line says other from what your saying...

it says that your index.php is inside home folder and it can not reach /web/htdocs/www.voncasafalco.it/includes/Core/loader.php
Title: Re: Multilingual and Seo Pro
Post by: Davide on March 10, 2011, 18:11:05
ok so what i need is to change elxis searching from /home to / how can i do that?
Title: Re: Multilingual and Seo Pro
Post by: ks-net on March 10, 2011, 18:13:47
i think that in configuration.php
and in sql file you must add this path
/web/htdocs/www.voncasafalco.it/home/

what do you mean there is no home folder?

if you log in trough ftp is not necessary to see home folder... in many cases you don't see the folder in where you are already in... you see
all other inside in it but not the current one...

virtual situation.... you think that you are in top folder ... but actually you are chrooted some where!
Title: Re: Multilingual and Seo Pro
Post by: ks-net on March 10, 2011, 18:26:08
/web/htdocs/www.voncasafalco.it/home/

and the url

http://www.voncasafalco.it/

point to the same folder

don't mix up these ... are different things... one is absolute path the other is url

don't be confused because of www.voncasafalco.it word


your server pull out pages from /web/htdocs/www.voncasafalco.it/home/

this means that url http://www.voncasafalco.it/ ---> pull staff from this path ---> /web/htdocs/www.voncasafalco.it/home/

the same url in an other server  http://www.voncasafalco.it/ ---> might pull staff from path like ---> /var/www/somefolder/someotherfolder/public_html/
Title: Re: Multilingual and Seo Pro
Post by: Davide on March 10, 2011, 18:28:50
just tried but is not working.
may i try to attach here all the .sql file?
Title: Re: Multilingual and Seo Pro
Post by: Davide on March 10, 2011, 18:30:20
i don't realy understand your last post.
Title: Re: Multilingual and Seo Pro
Post by: Davide on March 10, 2011, 18:33:34
from dreamweaver ftp if i put the folder name into the server connection it said that is not right if i put just the hosts is working -> that's means no folder between the main www to the website index page or not?
Title: Re: Multilingual and Seo Pro
Post by: ks-net on March 10, 2011, 18:38:12
dreamweaver?  haaaa!

as i said you are inside home already !

modify your configuration.php

add the path->  /web/htdocs/www.voncasafalco.it/home/
upload as you did with other files  and check
Title: Re: Multilingual and Seo Pro
Post by: ks-net on March 10, 2011, 18:44:53
Quote
from dreamweaver ftp if i put the folder name into the server connection it said that is not right if i put just the hosts is working -> that's means no folder between the main www to the website index page or not?

wrong all...

you try to add a folder... but you need to add the path to configuration.php...

the folder is there... now tell elxis where is the path(in configuration.php) .. where to look for files...
tell elxis where are your files.

your files are inside /web/htdocs/www.voncasafalco.it/home/

thats alll


DO NOT PASTE HERE YOUR SQL FILE  ... IT's USELESS!
Title: Re: Multilingual and Seo Pro
Post by: datahell on March 10, 2011, 19:29:01
Open configuration.php and set the proper value for $mosConfig_absolute_path variable. If you cann't do it send me a personal message with your ftp username/password and I will fix it for you.

NEVER USE DREAMWEAVER WITH ELXIS or any other serious PHP application.
Title: Re: Multilingual and Seo Pro
Post by: Davide on March 10, 2011, 19:55:36
seems start working. give me 1 minute to fix all
Title: Re: Multilingual and Seo Pro
Post by: Davide on March 10, 2011, 20:02:46
ok the problem was on the configuration parameters.

now the website is online but i can't see anything.

i can also enter the administration where is shown all the articles that has to be show in the home page.

Where is the next changes?
Title: Re: Multilingual and Seo Pro
Post by: Davide on March 10, 2011, 20:08:39
what is it:

mysql Errore [1227] : EXECUTE
URI: index3.php?option=com_database&task=monexec&do=stats
Message: Access denied; you need the SUPER privilege for this operation
show innodb status
Title: Re: Multilingual and Seo Pro
Post by: Davide on March 10, 2011, 20:28:42
ok the problem was on the configuration parameters.

now the website is online but i can't see anything.

i can also enter the administration where is shown all the articles that has to be show in the home page.

Where is the next changes?

Solved. The problem was the cache that didn't have /home/ before.

Still only the Sql Error
Title: Re: Multilingual and Seo Pro
Post by: datahell on March 10, 2011, 20:47:33
It is a special feature in Elxis' database monitor that displays db stats.
Your current db user has no enough privileges to perform this task. This is no operation of functional problem, ignore it.
Title: Re: Multilingual and Seo Pro
Post by: Davide on March 10, 2011, 21:36:47
ok all solved! Thanks for your support!