• I got this fatal error. It make the website only load the header and footer and the error message.
    It was all good before. but all the sudden got this error. I have uninstall the plugin and reinstall the plugin which solve the problem. but It comes back once a while.
    also after reinstall all the hours set was clear and I have to set it again. Please help solve this problem. Thank you. below is the fatal error code. no cache plugin is being use on the website.
    It might be the cost after I enable Include the current time in the output.
    Include day Include the current day in the output.
    Opening/closing soon warning When it’s near opening or closing time, show a different message.
    then disable it. then the error appear.

    Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (12:00 下午) at position 6 (�): Unexpected character in /home/loveyout/public_html/goldenwokmanatee.com/wp-content/plugins/business-hours-indicator/services/class-datetime-service.php:76 Stack trace: #0 /home/loveyout/public_html/goldenwokmanatee.com/wp-content/plugins/business-hours-indicator/services/class-datetime-service.php(76): DateTime->__construct(’12:00 \xE4\xB8\x8B\xE5\x8D\x88′, Object(DateTimeZone)) #1 /home/loveyout/public_html/goldenwokmanatee.com/wp-content/plugins/business-hours-indicator/services/class-conversion-service.php(20): MABEL_BHI_LITE\Services\DateTime_Service->convertToDateInWeek(’12:00 \xE4\xB8\x8B\xE5\x8D\x88′, ‘Monday’) #2 /home/loveyout/public_html/goldenwokmanatee.com/wp-content/plugins/business-hours-indicator/services/class-conversion-service.php(76): MABEL_BHI_LITE\Services\Conversion_Service::raw_hour_to_opening_hours(Object(stdClass), ‘Monday’) #3 /home/loveyout/public_html/goldenwokmanatee.com/wp in /home/loveyout/public_html/goldenwokmanatee.com/wp-content/plugins/business-hours-indicator/services/class-datetime-service.php on line 76

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter choutin

    (@choutin)

    or it might be due to on location inside another location which cause the fatal error.

    Plugin Author Maarten

    (@maartenbelmans)

    What do you mean with “location in location”?

    Thread Starter choutin

    (@choutin)

    I have a time location set from 1am to 9pm. there is some content will appear between 1am to 9pm. In this time location I have another content I want to appear only 12pm to 5pm. so it is like this.

    [mbhi_ifopen location=”first name”]
    My first contents appear from 1am to 9pm

    [mbhi_ifopen location=”second name”]

    my contents only appear from 12pm to 5pm

    [/mbhi_ifopen ]

    my third contents appear from 1am to 9pm

    [/mbhi_ifopen]

    Plugin Author Maarten

    (@maartenbelmans)

    That should work.

    Did you change some code somewhere? I see the error shows “12:00 下午”. Do you know where the “下午” comes from?

    Thread Starter choutin

    (@choutin)

    It is the time. it means 12pm in Chinese. Didn’t change code.

    Plugin Author Maarten

    (@maartenbelmans)

    Is the backend of our plugin ( = the settings screen) in Chinese or in English?

    • This reply was modified 3 years, 9 months ago by Maarten.
    Thread Starter choutin

    (@choutin)

    It is all English. The wordpress version and your plugin both English. Time zone is New York.
    Date format is July 5, 2020
    Time format is 12:00 PM.
    Don’t know where this word come from.

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