Can't expand elements on the backend

edited July 2020 in BeBuilder
Hello!

We have a problem with Muffin Builder. We can't expand elements on the backend. When we click on + or - nothing happens. 
The problem occurs in all our customers on different pages. Updating the theme to the latest version does not help.
I'd appreciate any help with this.

Comments

  • Hello,
    Please disable all of the plugins, clear the cache of your browser and check, if the issue still exists.
    thanks
  • Unfortunately the problem still exist.  Disable plugins and clear cache didn't help. We tried different devices and browsers. No effect. Do you have any other ideas?
  • Hey,
    Please send us WordPress dashboard access privately thru the contact form which is on the right side at http://themeforest.net/user/muffingroup#contact and we will check what might be the reason.
    Notice!
    Please attach a link to this forum discussion.

    Thanks
  • edited July 2020
    Sent.
  • You did not attach the link to your website.
    Can you send us a link to it in this topic?
    Thanks
  • The problem is related to your hosting provider, it looks your server is changing dots to commas and this is the source of the problem, see the screenshot:

    You should contact your hosting provider and ask him about source of that problem.
    thanks
  • We contacted hosting provider. This is their answer: "The difficulties result from the PHP 7.3.18 specification. The new update compare to PHP 7.3.17 may cause the dot to be replaced with a comma in some places in the source code. 
    In this situation, you need to make appropriate corrections, which, for example, will convert the dots back to commas."
    How can you help us with this problem? Issue occurs in 4 different sites. 
  • So, the problem is not on the theme side, it's clearly the problem of the configuration of the server (php)
    You should contact the hosting provider and ask him about changing the server configuration to be proper.

    Thanks
  • Hosting provider said, this isn't problem with configuration of the server, because it is the correct behavior of version 7.3.18 PHP, which is active on the server. 
    What can we do in this case?
  • I cannot agree, it all depends on the configuration of the php server - a lot of customers is using the PHP 7.3 and does not have this problem.

    If your hosting provider is not able to help you with changing the configuration of your server, then all that we can suggest is to change hosting services, because our hands are tied in that case.

    thanks
  • edited October 2020
    "I cannot agree, it all depends on the configuration of the php server"
    What is the correct configuration of the server?
  • This is not the theme related question at all, we do not specialize with configuration of the servers - so in this case we cannot be the source of the help.
    We do not want to mess the server up - this problem should be easily solved by the hosting provider.

    But, default settings after installing XAMPP works flaweless, so they should be good.
    Thanks
  • Hi Pablo, thanks for answering, really appreciate.
    I took the time to investigate the problem. In current state the theme won't work on any server that has locale decimal_point set to comma instead of dot. This setting cannot be changed because of the theme beeing used while it's original comma value is rather important and can be used elsewhere on the site. This problem relates to all Polish hosting providers (I assume @dariuszkopyto site as well).
    Problem is located in $sizes variable in betheme\functions\builder\class-mfn-builder-admin.php
    class Mfn_Builder_Admin {

    private $fields;
        private $sizes = array(
          '1/6' => 0.1666,
          '1/5' => 0.2,
          '1/4' => 0.25,
          '1/3' => 0.3333,
          '2/5' => 0.4,
          '1/2' => 0.5,
          '3/5' => 0.6,
          '2/3' => 0.6667,
          '3/4' => 0.75,
          '4/5' => 0.8,
          '5/6' => 0.8333,
          '1/1' => 1,
          'divider' => 1
        );

    which are floats and casted to string by wp_check_invalid_utf8() give numeric value with comma. These values are used as html attribute values, only in string context so if they were actual strings and not floats, the problem will go away.
    My temporary fix is to put
    setlocale(LC_NUMERIC, 'C');
    at the end of wp-config.php to set the dot instead comma (english site) but it's not really a solution.
    Can you please include the strings as fix in the next betheme version?
    Thanks to @dariuszkopyto for pointing the problem out.

    Thanks!
  • edited October 2020
    We investigated what you told, and it looks like it can be the fix, you are right! :)
    Really appriciate that, we tried to force it to be dot even when server configuration is different and we were starting to create a script, but it looks like your workaround is a lot better :)

    The fix for that behavior will be in the next update of the theme, on monday.
    Thanks
  • Hi Pablo,
    This is great news!

    Thanks!
Sign In or Register to comment.