• Resolved endervin

    (@endervin)


    Greetings,
    I’ve stumbled upon this error line:
    setlocale(): Specified locale name is too long in …//DynamicConditionsDate.php on line 137

    These are the loop lines 128-140:

    /**
    * Get a list of days (monday, tuesday,…) in current language
    *
    * @return array
    */
    public static function getDaysTranslated() {
    $currentLocale = setlocale( LC_ALL, 0 );
    setlocale( LC_ALL, get_locale() );
    $dayList = self::getDays();
    setlocale( LC_ALL, $currentLocale );

    return $dayList;
    }

    There is no way a translation of a day can be too long.
    Can’t say if it breaks something or not by now.
    I use russian version of WordPress 5.2.2, and never before have seen this error, though I use DynamicConditions more than half of a year now.
    Maybe it has something to do with an update.

    Some phpinfo:
    PHP Version: 7.1.26
    System: Linux srv31-h-st.jino.ru 3.10.0-957.21.3.el7.x86_64 #1
    Server API: Apache 2.0 Handler

    Current version of the plugin: 1.3.2

    And thank you so much for this plugin! It has improved our work drastically.
    Best regards,
    Darius

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author rtowebsites

    (@rtowebsites)

    Hello @endervin,

    thank you for your Bug report, we will investigate that soon. Can u give us some more informations, like other plugins and where the error occur?

    Thank you.

    Thread Starter endervin

    (@endervin)

    Thank you @rtowebsites for the rapid support!
    The error occurs whenever a page is loading during work at the WP admin console. For example, when I use Elementor to edit a page.

    My plugins list:
    Classic Editor
    DynamicConditions
    Elementor
    Elementor Pro
    Elementor Extras
    Elementor Addon Elements
    JetEngine
    Jet Elements For Elementor
    JetSmartFilters
    JetThemeCore
    Webcraftic Cyr to Lat reloaded
    WP Rocket
    Webcraftic Robin image optimizer
    Better Search Replace

    I use a custom-built theme, but there was no such error on other sites with this theme. And DynamicConditions always worked beautifully with Elementor.

    update.
    Just now I’ve come across a problem with an infinite loading of Elementor widget panel. When DynamicConditions is off, the problem vanishes. I will try to investigate if there is indeed a connection between problem with Elementor and The plugin, or it’s a weak system on hosting provider’s side.

    • This reply was modified 4 years, 8 months ago by endervin.
    Thread Starter endervin

    (@endervin)

    As of now I tried to deactivate my plugins one by one to see which one is causing the conflict, but there is none, sorry for alerting you.
    Seems like I need to upgrade hosting provider plan, it’s just not enough.

    But the error on line 137 is still present whenever DynamicConditions is on, in every combination with other plugins.
    All plugins are updated to their latest versions of now, except JetThemeCore – it’s on 1.1.8. But error is present even without JetThemeCore being enabled.

    • This reply was modified 4 years, 8 months ago by endervin.
    Plugin Author rtowebsites

    (@rtowebsites)

    We think we got the problem and will fix it soon in the next update. Your site and the plugin should still work.

    We keep this issue open till the update is live.

    Thank you!

    Plugin Author rtowebsites

    (@rtowebsites)

    Update is live, we close this issue.

    Thank you

    Thread Starter endervin

    (@endervin)

    @rtowebsites Much appreciated! Love DC and your support.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘setlocale() error in DynamicConditionsDate.php’ is closed to new replies.