Post by lombert » Tue Oct 17, 2017 5:03 pm

OC 2.3.0.2

http://www.rubank.se (default)
https://www.hyvlar.se (secondary)

Hi

I have a working Multi Store with two domains. Both have same 5 language. When changing language in (default) all works just as it should. But when I change language in (secondary) then it jumps back to (default) with the language that was the last used for that store.

I can't find what I have done wrong. Any one with any idea?

Newbie

Posts

Joined
Tue Aug 08, 2017 3:24 am

Post by yodapt » Wed Oct 18, 2017 1:11 am

That is not supposed to happen. Do you have OCMods or VQMods installed? can you check if any of them is changing /catalog/common/language.php or /system/library/response.php?

Opencart Developer - My Extension Showcase
Contact me at aeon.yoda@gmail.com


User avatar
Active Member

Posts

Joined
Fri Jun 17, 2011 6:39 pm


Post by lombert » Thu Oct 19, 2017 2:56 am

Yes, I have some vqmod. How can I see if they changes the php-files? Is it the folder vqcache?

The only one with "language" in vqcache is;
vq2-admin_controller_localisation_language
vq2-admin_language_en-gb_common_column_left
vq2-admin_language_en-gb_common_header
vq2-admin_language_sv-se_common_column_left

vq2-admin_view_template_localisation_language_form.tpl

vq2-system_storage_modification_admin_language_en-gb_en-gb
vq2-system_storage_modification_admin_language_sv-se_sv-se

No one with "response".

Newbie

Posts

Joined
Tue Aug 08, 2017 3:24 am

Post by yodapt » Thu Oct 19, 2017 5:46 am

Then the culprit could be the .htaccess file. Can you paste it's contents, if you're using it?

Opencart Developer - My Extension Showcase
Contact me at aeon.yoda@gmail.com


User avatar
Active Member

Posts

Joined
Fri Jun 17, 2011 6:39 pm


Post by lombert » Thu Oct 19, 2017 5:46 pm

I think it's the standard type.

Code: Select all

# 1.To use URL Alias you need to be running apache with mod_rewrite enabled.

# 2. In your opencart directory rename htaccess.txt to .htaccess.

# For any support issues please visit: http://www.opencart.com

Options +FollowSymlinks

# Prevent Directoy listing
Options -Indexes

# Prevent Direct Access to files
<FilesMatch "(?i)((\.tpl|\.ini|\.log|(?<!robots)\.txt))">
 Require all denied
## For apache 2.2 and older, replace "Require all denied" with these two lines :
# Order deny,allow
# Deny from all
</FilesMatch>

# SEO URL Settings
RewriteEngine On
# If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/

RewriteBase /
# RewriteRule ^googlebase.xml$ index.php?route=extension/feed/google_base [L]
RewriteRule ^system/download/(.*) index.php?route=error/not_found [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]

### Additional Settings that may need to be enabled for some servers
### Uncomment the commands by removing the # sign in front of it.
### If you get an "Internal Server Error 500" after enabling any of the following settings, restore the # as this means your host doesn't allow that.

# 1. If your cart only allows you to add one item at a time, it is possible register_globals is on. This may work to disable it:
# php_flag register_globals off

# 2. If your cart has magic quotes enabled, This may work to disable it:
# php_flag magic_quotes_gpc Off

# 3. Set max upload file size. Most hosts will limit this and not allow it to be overridden but you can try
# php_value upload_max_filesize 999M

# 4. set max post size. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
# php_value post_max_size 999M

# 5. set max time script can take. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
# php_value max_execution_time 200

# 6. set max time for input to be recieved. Uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
# php_value max_input_time 200

# 7. disable open_basedir limitations
# php_admin_value open_basedir none
Have one other how "All In One Seo For Opencart" recommend but I have not activate it.

Code: Select all

# SEO URL Settings
RewriteEngine On
RewriteBase / # If you have installed opencart in a subdirectory then write it in place of 'sub-directory-name'
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]

Newbie

Posts

Joined
Tue Aug 08, 2017 3:24 am
Who is online

Users browsing this forum: No registered users and 9 guests