Elxis CMS Forum
Support => Language => Topic started 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
-
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.
-
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?
-
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.
-
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?
-
I have decided this issue by adding a line in the file
if (empty($lang)) $lang = $mosConfig_lang;
in file /includes/sef.php line 364 (function sefRelToAbs) Elxis 2009.
-
$lang is never empty!
If you are inside a function to use $lang first call it from the globals:
global $lang;
-
Pay attention to what file I make changes.
It is here that for some reason, the variable $lang is null
-
$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
-
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
-
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?
-
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?
-
On the MySql nothing to change right?
What else i have to do?
Download the mysql file, and update any paths.
-
Download the mysql file, and update any paths.
what about the path /home/ ??
-
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.
-
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/
-
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 ?
-
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
-
ok so what i need is to change elxis searching from /home to / how can i do that?
-
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!
-
/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/
-
just tried but is not working.
may i try to attach here all the .sql file?
-
i don't realy understand your last post.
-
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?
-
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
-
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!
-
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.
-
seems start working. give me 1 minute to fix all
-
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?
-
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
-
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
-
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.
-
ok all solved! Thanks for your support!