htmlburger / carbon-fields

WordPress Custom Fields Library ✨
https://carbonfields.net/
Other
1.38k stars 245 forks source link

Problems with site uses from Russia #355

Closed Stive84 closed 7 years ago

Stive84 commented 7 years ago

Hi!

I have a problem. We use your plug-in Carbon Fields on our website on WordPress. It's great, we like it very much and are completely satisfied with it. But last week, on Thursday or Friday, he abruptly stopped working, or rather, the fields created with the plugin stopped displaying in the admin panel, and the content created in these fields ceased to appear on the site. We searched for a long time what the problem was, and then we found out that the problem is only relevant when dealing with the site with Russian ip addresses. That is, when you visit the site through the European vpn, everything works correctly and there are no problems with displaying it on the site or with the work in the admin panel. It's worth turning off vpn and accessing the site from the Russian ip address, everything immediately disappears.

Tell me why this happens? Are there any problems built into the plug-in related to the Russian ip? Previously, everything worked fine. How to solve this problem?

I look forward to hearing from you soon! Thank you!

atanas-dev commented 7 years ago

Hi @Stive84 ,

I'm sorry that you are having problems with Carbon Fields, however, there is nothing in Carbon Fields that affects display based on visitor IP (we already have a number of users and contributors from Russia). In addition, since Carbon Fields 2+ is installed via composer it is only updated manually so it cannot stop working suddenly, unless something else is changed that affects it or causes a general error.

Is your site using an i18n plugin such as WPML? If yes, then my guess would be that there is a problem with the Russian version of the site and the plugin auto-detects what language to use based on your IP.

I suggest the following:

  1. Make sure you do not have conditional logic around initializing Carbon Fields that can affect it
  2. Set the WP_DEBUG constant to true to see if an important error or exception is present
  3. Check your error logs for php errors
  4. If you are having trouble with a theme options container specifically, check out the "Localizing the page title" section on https://carbonfields.net/docs/containers-theme-options/?crb_version=2-0-0
dmhendricks commented 7 years ago

(This is probably obvious, but...) If you haven't done so already, check your browser console for warnings/errors as well. At Atanas mentioned, I have a feeling that there may be a conflict. It could be server-side, but I wouldn't be surprised if it was client-side.

dmhendricks commented 7 years ago

Ok, I set up a fresh WP 4.8.2 test site with CF 2.0.4 in Florida, USA + a basic theme_options panel and connected via a browser proxy in Voronezh, Russia. I was able to view and save the container without errors (that doesn't exactly explain much, but it was free to try. I suppose that it would suggest that if there is a conflict, it would likely be server-side rather than client-side in this case.)

I just noticed that you said "plugin." Would you please confirm which version of Carbon Fields that you are using?

atanas-dev commented 7 years ago

Closing due to lack of activity from OP

Stive84 commented 7 years ago

Thanx for your help! We tried everything! And then we find out, that our hosting provider blocks ip adresses from Cloudflare. That was the real reason!