old css and not working cart

GK User
Tue Mar 08, 2016 3:05 pm
Hi,

I first updated my website locally to joomla 3.4.8, virtuemart 3.0.12 and the newest template version. On my local machine everythings works fine.

Now I updated my live website, exactly with same files and did everything exactly the same, but now not everything works. The cart function doesn't work. When adding an item, it doesn't appear to the pop-up. When go the cart itself, the product is there. I think somethings wrong with fancybox, wich is selected in the virtuemart configuration.

Also I noticed that there is some caching issue, because I noticed the add to cart pop up, when selectin a product to buy, has a strange look/style. The css is correct, but it doen'st load it propperly. The thing is I don't have extension for caching, all default is set to none and also cleared my browser cache.

Does someone have an idea what is wrong here?
User avatar
Expert Boarder

GK User
Tue Mar 08, 2016 4:53 pm
Please check the website: https://www.waterpijp-bong.nl/

Try adding an item to the cart. Notice the add-to-cart-popup is awfull.
Also notice after adding an item, the cart counter doens't work. But when you show the cart itself, the item is there...
User avatar
Expert Boarder

GK User
Wed Mar 09, 2016 10:41 am
I just restored a backup of my live website on my local machine. Somehow the cart counter works now.... :shock: So there must be a difference between the server and my own computer. Also the vm.css stylesheet works good now.

I did not change any settings, but it looks like fancy box doesn't run properly on the web server.

Can someone please help me find out how I can fix this on the webserver?
User avatar
Expert Boarder

teitbite
Sat Mar 12, 2016 4:03 pm
Hi

If I remember correctly You had some sort of cache on Your server which was not allowing me to look into my changes right after I made them, so I believe that some of the files were used in their old versions. Check if You have all cache disabled on joomla/site/server and try again.
User avatar
Moderator

GK User
Sun Mar 13, 2016 1:44 pm
I think I have already disabled all caching options. Other changes in files are effective immediatly.
So I suppose something is blocking some functionality of my website. Could it be some permission level on files or directories what prevents executing them? Could it be some htaccess rules?

When I restore a backup locally, the cart counter does work, but not as it should, because when choosing "show cart" button, only a blank screen appears. This does not happen on my live website.
User avatar
Expert Boarder

GK User
Sun Mar 13, 2016 2:41 pm
Somehow it also not using vm.css on my live site, when displaying the fancybox with the add to cart popup. That's why the strange looks / layouts. It looks like it is not using fancybox and that's why the fancybox tags in vm.css is not being used.

In some other topics I read about NSP being the cause. But I my case it is not, I think.
User avatar
Expert Boarder

GK User
Sun Mar 13, 2016 3:03 pm
I just figured it out ! :D
Looking through my htaccess file again, it noticed a rule that could be the cause. And it was!

I removed the following rule:
Code: Select all
RewriteRule ^includes/js/ - [L]


Don't know it there is an security issue now... I prefer the set this back and allowing the specific files for this fancybox / cartcounter. Do you know what files that are?
User avatar
Expert Boarder

GK User
Sun Mar 13, 2016 3:31 pm
I keep replying on myself, but the problem is solved now.

I just set the rule back, which I had deleted and add an exception rule for "gk.scripts.js", what is used for the fancybox and cartcounter.

Now the include/js is save again and the GK script is working.
User avatar
Expert Boarder

teitbite
Thu Mar 17, 2016 12:53 pm
Hi

Ok. Great You have it working and thank You for explanation. I do not think other users will experience such issue, since it's not a common code to put in .htaccess, but great finding. Closing this thread now.
User avatar
Moderator


cron