• Resolved kclaes

    (@kclaes)


    Hello,

    I got a fatal error when I want to add a holiday in the month of march. I got this message:

    Foutdetails
    ===========
    Een fout van het type E_ERROR trad op op lijn 75 in het bestand /customers/5/3/4/id-coaching.be/httpd.www/wp-content/plugins/salon-booking-system/src/SLN/TimeFunc.php. Foutmelding: Uncaught Exception: month Mar not found in months jan, feb, mrt, apr, mei, jun, jul, aug, sep, okt, nov, dec in /customers/5/3/4/id-coaching.be/httpd.www/wp-content/plugins/salon-booking-system/src/SLN/TimeFunc.php:75
    Stack trace:
    #0 /customers/5/3/4/id-coaching.be/httpd.www/wp-content/plugins/salon-booking-system/src/SLN/TimeFunc.php(30): SLN_TimeFunc::guessMonthNum(‘Mar’)
    #1 /customers/5/3/4/id-coaching.be/httpd.www/wp-content/plugins/salon-booking-system/src/SLN/Helper/HolidayItems.php(78): SLN_TimeFunc::evalPickedDate(Array)
    #2 /customers/5/3/4/id-coaching.be/httpd.www/wp-content/plugins/salon-booking-system/src/SLN/Admin/SettingTabs/BookingTab.php(38): SLN_Helper_HolidayItems::processSubmission(Array)
    #3 /customers/5/3/4/id-coaching.be/httpd.www/wp-content/plugins/salon-booking-system/src/SLN/Admin/SettingTabs/AbstractTab.php(58): SLN_Admin_SettingTabs_BookingTab->validate()
    #4 /customers/5/3/4/id-coaching.be/httpd.www/wp-content/plugins/salon-booking-system/src/SLN/Admin/SettingTabs/AbstractTab.php(23):

    Any help would be welcome.
    Thank you

    • This topic was modified 5 years, 2 months ago by kclaes.
Viewing 9 replies - 1 through 9 (of 9 total)
  • This is because you use dutch and Mar is probably hardcoded and the months are from the translation to dutch.
    Or Mar is not translated to the dutch name thats also possible.

    Use loco translate to create a temporally fix by changing the dutch translation of March from mrt to Mar and all should work again , or changed the not translated string Mar from Mar to mrt.

    Its one of the 2 or its hardcoded or not correctly translated.

    hope you find it. geschreven in engels zodat iedereen weet wat er aan de hand is want dit probleem kan ook in een andere taal gebeuren als er een maand niet goed vertaald is

    Thread Starter kclaes

    (@kclaes)

    Thanks, but I use loco translate and there is no string mar to be found within the plugin. I know what the problem is but I don’t know where to fix it.

    • This reply was modified 5 years, 2 months ago by kclaes.
    Guido

    (@guido07111975)

    Hi,

    IMO you don’t have to use Loco Translate for this plugin because it’s fully translated into Dutch. But I cannot find the translation of the months neither. It seems it gets them from elsewhere, and depening on site language.
    Besides this, I notice this plugin is temporary closed: This closure is temporary, pending a full review.

    Guido

    Has anyone been able to find where the translation of the months is located so we can address this issue? I am experiencing the same problem and we cannot do any bookings or create Holidays in the month March which is quite frustrating. I did not find it in the database or in any of the php files. Only find it in some javascript but changing it there does not fix the issue.

    Thread Starter kclaes

    (@kclaes)

    No but changing the wordpress language to plain dutch NL, the problem was resolved!

    • This reply was modified 5 years, 1 month ago by kclaes.

    Strange thing to me is that the Month May does work while that one is also translated

    thanks for the answer, so you were using NL_BE iso NL_NL as I am right now?

    Thread Starter kclaes

    (@kclaes)

    I was using NL-BE and the NL-NL WordPress language did not give any fatal errors anymore

    Hi @kclaes,

    Just changed the WP lang to plain dutch and the issue is indeed resolved^^
    Thanks a million!!!!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Fatal error’ is closed to new replies.