Post by Khal » Sat Jun 20, 2015 8:52 pm

I upgraded to OC 2.0.1.1 a few months ago and noticed this bug in the responsive website on the tablet and iphone. Buttons like the Categories, Add to Cart and Checkout Options do not work initially on the responsive website. When the page is refreshed, the buttons do work, but when first accessing the website, these do not work. It's annoying because the customer doesn't know to refresh the page, and they will just think it doesn't work and leave the website.

I have tried to search the forums for a solution, and read that it may be because the website is trying to access through
http://www.domain.com, when it is installed as domain.com. But I have set up a redirect in the htcaccess file and I am still getting the problem. Do I also have to set up a redirect through my hosting?

I have also started to get the following errors in my error log and don't know if they are related to it:

Code: Select all

  
unlink(/home/khaleeji/public_html/system/cache/cache.product.seopath.1434131403) [<a href='function.unlink'>function.unlink</a>]: No such file or directory in /home/khaleeji/public_html/system/library/cache/file.php on line 68

 session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cookie - headers already sent by (output started at /home/khaleeji/public_html/index.php:98) in /home/khaleeji/public_html/system/library/session.php on line 12

Cannot modify header information - headers already sent by (output started at /home/khaleeji/public_html/index.php:98) in /home/khaleeji/public_html/index.php on line 173

PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/khaleeji/public_html/index.php:98) in /home/khaleeji/public_html/system/library/currency.php on line 45

PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/khaleeji/public_html/index.php:98) in /home/khaleeji/public_html/catalog/controller/common/seo_pro.php on line 78

PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/khaleeji/public_html/index.php:98) in /home/khaleeji/public_html/catalog/controller/common/seo_pro.php on line 409

PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/khaleeji/public_html/index.php:98) in /home/khaleeji/public_html/system/library/response.php on line 12
Is anyone else getting this problem, or have a solution?

Thank you for your help
Last edited by Khal on Wed Jun 24, 2015 4:08 pm, edited 2 times in total.

OC 2.0.1.1


Active Member

Posts

Joined
Thu May 24, 2012 9:24 pm
Location - Teesside, UK

Post by deepvision » Sat Jun 20, 2015 11:52 pm

What's the site URL?

ImageImageImage


User avatar
Active Member

Posts

Joined
Tue May 19, 2015 1:03 am

Post by Khal » Sun Jun 21, 2015 12:23 am

Sorry I should've given that. It's http://khaleejiabaya.com

OC 2.0.1.1


Active Member

Posts

Joined
Thu May 24, 2012 9:24 pm
Location - Teesside, UK

Post by deepvision » Sun Jun 21, 2015 12:33 am

It works fine for me on the first load.

ImageImageImage


User avatar
Active Member

Posts

Joined
Tue May 19, 2015 1:03 am

Post by Khal » Sun Jun 21, 2015 12:49 am

Did you test on a tablet or mobile device? Ive just tried again on my iphone and it freezes on this page: http://khaleejiabaya.com/checkout/

When an item is added to the basket and you click on checkout. I've taken a screenshot and attached it

Attachments

image.jpg

image.jpg (91.37 KiB) Viewed 1246 times


OC 2.0.1.1


Active Member

Posts

Joined
Thu May 24, 2012 9:24 pm
Location - Teesside, UK

Post by deepvision » Sun Jun 21, 2015 1:30 am

Yes, I tested it on several mobile devices.
I thought you wrote the Category, Add to cart buttons, etc. didn't work.
I checked those and they worked.

ImageImageImage


User avatar
Active Member

Posts

Joined
Tue May 19, 2015 1:03 am

Post by deepvision » Sun Jun 21, 2015 1:35 am

As for the checkout page.
It appears somebody has optimized your site for score in Google Insight.
As the result it is too fast for jQuery to load :)
Here is the problem:

Code: Select all

<script async src="catalog/view/javascript/jquery/jquery-2.1.1.min.js" type="text/javascript"></script>
The async attr has to be removed. It will result in slower score in Google Insight but at least the scripts on the checkout page will be able to use jQuery. It can be also solved without affecting the Google Insight score but will require much more changes.

ImageImageImage


User avatar
Active Member

Posts

Joined
Tue May 19, 2015 1:03 am

Post by Khal » Sun Jun 21, 2015 8:33 pm

Yes those other buttons seem to be working fine now on the responsive site, very strange. It's just the checkout options page.

I did try to optimize my site for Google and added the async attr. I've removed it now and it works! Fantastic!

I hope that's the reason I am also getting those errors, but I don't think it is, because they are recent and I did the optimization a few months ago. I think they are a separate issue.

Thank you so much for resolving this issue though, I really appreciate it. :)

OC 2.0.1.1


Active Member

Posts

Joined
Thu May 24, 2012 9:24 pm
Location - Teesside, UK

Post by deepvision » Sun Jun 21, 2015 10:06 pm

Those other issues are impossible to resolve without access to the source files.
But there is a good chance they are relatively harmless. As long as your site works fine.

ImageImageImage


User avatar
Active Member

Posts

Joined
Tue May 19, 2015 1:03 am

Post by Khal » Mon Jun 22, 2015 12:11 am

Yes my site seems to be working fine- the pages freezing was a big issue but that's now resolved.

So far, I've only had each error once. I'll look into them if they keep appearing.

Many Thanks again for your time. :) :)

OC 2.0.1.1


Active Member

Posts

Joined
Thu May 24, 2012 9:24 pm
Location - Teesside, UK
Who is online

Users browsing this forum: No registered users and 7 guests