Post by sk786 » Wed Apr 15, 2015 9:17 am

I setup CloudFlare for my website and created a Page Rule to bypass CloudFlare features on domain.com/admin/* . However, any attempt to Add History to an order results in a pop-up error saying "SyntaxError: Unexpected end of input OK"

I tried to manipulate a lot of settings in CloudFlare, but I keep getting the SyntaxError. So far the only way the error will stop is if I pause CloudFlare. If you have experience with CloudFlare and know how to have it play nicely with the above example please share.

Newbie

Posts

Joined
Mon Apr 13, 2015 11:40 am

Post by MarketInSG » Sat Apr 18, 2015 9:13 pm

If you are using OpenCart 2, do note that adding order history triggers an API call to your store front.


User avatar
Guru Member

Posts

Joined
Wed Nov 16, 2011 11:53 am
Location - Singapore

Post by sk786 » Mon Apr 20, 2015 11:19 am

Okay, I am using OpenCart 2. I have it set to CDN only and the problem occurs. Is there a configuration or setup in CloudFlare to make everything in OpenCart work?

Newbie

Posts

Joined
Mon Apr 13, 2015 11:40 am

Post by gilaraujo » Mon Apr 20, 2015 8:36 pm

same problem here, let me know if you find a solution!

New member

Posts

Joined
Fri Mar 27, 2015 10:32 pm

Post by lz1nud » Wed Apr 22, 2015 2:08 am

I have onother problem with CloudFlare, after activating it, my subdomain who is a blog and works on wordpress, is starging to open pages very slow.

Sky-Mag Bulgaria


Active Member

Posts

Joined
Thu Feb 13, 2014 5:35 am
Location - Bulgaria

Post by Rainforest » Wed Jul 08, 2015 7:03 am

Did you ever find a solution?

Also, do you know if we should add page rules to cloudflare so it ignores:

checkout pages
Customer account page
confirmation page

I already have it set to ignore MyWebsite.com/admin/*

Active Member

Posts

Joined
Fri Jan 28, 2011 3:50 am

Post by sk786 » Fri Jul 10, 2015 5:29 am

I don't remember all the specifics anymore, but I did spend a good amount of time on it. Unfortunately, there are some files that shouldn't be cached by the automation and it doesn't work properly.

Newbie

Posts

Joined
Mon Apr 13, 2015 11:40 am

Post by triunt » Fri Sep 18, 2015 7:51 am

I can't believe that cloudflare is the cause of this problem,
but I think you're right, I got same problem when setting up config file on admin directory to https.
Now I'm finally scheduling to remove cloudflare in my websites.
I can't believe I must change all our urls from https to http.
Notify me via PM please when your website could work seamlessly for it when using cloudflare.

Belanja Online Indonesia


Newbie

Posts

Joined
Wed Jun 24, 2015 2:35 pm

Post by rakhina » Thu Nov 12, 2015 1:11 pm

I don't know what is your problem actually, but i'm using cloudflare to my some sites and it's fine. The security and the loading enhanced when i checked on gtmetrix.com. The paid cloudflare are faster than the free account.

Jasa Penulis Artikel - Tempat Wisata di Bandung - Smart Detox - Penulispro.com - Jamu Tradisional


Newbie

Posts

Joined
Thu Nov 12, 2015 12:54 pm


Post by Dhaupin » Fri Nov 13, 2015 7:13 am

If you are using SSL admin then this is prob happening because OC lacks the proper routing for modern SSL spanned across multiple alternate HTTPS flag headers that reverse/proxies could set. If its referencing cross app (ie, admin to catalog) then this might be compounded. You need to mask/consolidate them into the $_SERVER array probably after OC bootstraps it in order to activate OC alt-SSL triggers. Cloudflare and other types of proxies, balancers, clusters use a variety of different flags with a variety of different values (its sad that we still cant decide on a proxy https flag in 2015).

We def have a vqmod that does this flag proxying if anyone is interested,

https://creadev.org | support@creadev.org - Opencart Extensions, Integrations, & Development. Made in the USA.


User avatar
Active Member

Posts

Joined
Tue May 13, 2014 3:45 am
Location - PA
Who is online

Users browsing this forum: No registered users and 2 guests