Post by mrfifagamer » Mon Oct 31, 2016 2:15 am

OpenCart Version: 2.0.1.1
Issue is on this page: http://www.fifafinity.com/index.php?rou ... duct_id=57

Hello everyone,

Recently I have changed the URL domain of my website and suddenly multiple errors occurred. One of those errors is that the ''Add to card'' button is not working. I tried everything to fix but nothing helped.

Can someone help me out?

Thank you!

New member

Posts

Joined
Sun Aug 23, 2015 6:34 pm

Post by cyclops12 » Mon Oct 31, 2016 3:50 am

You have to register to get to the page you linked to
Have you updated the config.php files and maybe the .htaccess as well if you have any redirects in there

Expert Member

Posts

Joined
Sun Sep 27, 2015 1:10 am

Post by mrfifagamer » Mon Oct 31, 2016 3:59 am

cyclops12 wrote:You have to register to get to the page you linked to
Have you updated the config.php files and maybe the .htaccess as well if you have any redirects in there

I only have updated the config.php files where I have to imput my domain. I did not update the htaccess file.,

what should i do?

Thanks

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))">
 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 ^sitemap.xml$ index.php?route=feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]
RewriteRule ^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

New member

Posts

Joined
Sun Aug 23, 2015 6:34 pm

Post by EvolveWebHosting » Mon Oct 31, 2016 4:05 am

You should only need to update the HTTP and HTTPS sections along with the DIR paths if they have changed. Did you move the physical location of the files via FTP? That is the only time you would need to update the .htaccess file.

Opencart Hosting Plans, Domain Registration, Microsoft and Google Email and More
Visit our website for great deals and most importantly, fast and friendly support - www.evolvewebhosting.com


User avatar
Active Member

Posts

Joined
Fri Mar 27, 2015 11:13 pm
Location - Denver, Colorado, USA

Post by mrfifagamer » Mon Oct 31, 2016 4:19 am

EvolveWebHosting wrote:You should only need to update the HTTP and HTTPS sections along with the DIR paths if they have changed. Did you move the physical location of the files via FTP? That is the only time you would need to update the .htaccess file.
All I did was changing the URLs in config.php - What do I need to do more?

New member

Posts

Joined
Sun Aug 23, 2015 6:34 pm

Post by EvolveWebHosting » Mon Oct 31, 2016 8:46 am

mrfifagamer wrote:
EvolveWebHosting wrote:You should only need to update the HTTP and HTTPS sections along with the DIR paths if they have changed. Did you move the physical location of the files via FTP? That is the only time you would need to update the .htaccess file.
All I did was changing the URLs in config.php - What do I need to do more?
I'm not sure without seeing everything. Did you move the files to another subfolder? If so, the DIR paths need to be updated and the .htaccess file would have to be updated on the RewriteBase line to point to the subfolder.

Opencart Hosting Plans, Domain Registration, Microsoft and Google Email and More
Visit our website for great deals and most importantly, fast and friendly support - www.evolvewebhosting.com


User avatar
Active Member

Posts

Joined
Fri Mar 27, 2015 11:13 pm
Location - Denver, Colorado, USA

Post by mrfifagamer » Mon Oct 31, 2016 11:00 pm

EvolveWebHosting wrote:
mrfifagamer wrote:
EvolveWebHosting wrote:You should only need to update the HTTP and HTTPS sections along with the DIR paths if they have changed. Did you move the physical location of the files via FTP? That is the only time you would need to update the .htaccess file.
All I did was changing the URLs in config.php - What do I need to do more?
I'm not sure without seeing everything. Did you move the files to another subfolder? If so, the DIR paths need to be updated and the .htaccess file would have to be updated on the RewriteBase line to point to the subfolder.
I do not have any coding knowledge, how can I contact you so you can help me? Thanks

New member

Posts

Joined
Sun Aug 23, 2015 6:34 pm

Post by EvolveWebHosting » Mon Oct 31, 2016 11:42 pm

All I did was changing the URLs in config.php - What do I need to do more?[/quote]

I'm not sure without seeing everything. Did you move the files to another subfolder? If so, the DIR paths need to be updated and the .htaccess file would have to be updated on the RewriteBase line to point to the subfolder.[/quote]

I do not have any coding knowledge, how can I contact you so you can help me? Thanks[/quote]

You can email us at sales@evolvewebhost.com

We'll need your FTP login information and we should be able to fix it with that.

Opencart Hosting Plans, Domain Registration, Microsoft and Google Email and More
Visit our website for great deals and most importantly, fast and friendly support - www.evolvewebhosting.com


User avatar
Active Member

Posts

Joined
Fri Mar 27, 2015 11:13 pm
Location - Denver, Colorado, USA
Who is online

Users browsing this forum: patterson123, paulfeakins, SohBH and 18 guests