Support » Plugin: The Events Calendar » preg_match(): Unknown modifier ‘t’ /src/Tribe/JSON_LD/Event.php on line 178

  • Resolved randon

    (@randon)


    I’m using translatepress

    When I change the language I get the below warning on the events page

    Warning: preg_match(): Unknown modifier ‘t’ in /web site path/wp-content/plugins/the-events-calendar/src/Tribe/JSON_LD/Event.php on line 178

    The links (list/month/today) are also wrong:
    …/trpsttrp-gettext-data-trpgettextoriginal25trpeneventsalltrpsttrp-gettexttrpen/(/?:list|liste)/
    …/trpsttrp-gettext-data-trpgettextoriginal25trpeneventsalltrpsttrp-gettexttrpen/(/?:month|mois)/
    …/trpsttrp-gettext-data-trpgettextoriginal25trpeneventsalltrpsttrp-gettexttrpen/(/?:today|aujourd%E2%80%99hui)/

    What’s happening?

    • This topic was modified 1 year, 7 months ago by randon.
Viewing 15 replies - 1 through 15 (of 17 total)
  • Ali Darwich

    (@tokyobiyori)

    SUPER-O EL MOPO

    Hello! Thanks so much for contacting us! It’s the first time I see this error, I’m sorry! Kindly allow me to escalate this to my team and I’ll get back to you soon. Don’t hesitate to let me know if you need anything else in the meantime!

    Ali Darwich

    (@tokyobiyori)

    SUPER-O EL MOPO

    Sorry! Quick question, which versions of TranslatePress and The Events Calendar are you using?

    Thread Starter randon

    (@randon)

    Hi Ali,

    My versions:
    The Events Calendar: 5.3.1
    TranslatePress: 1.9.0

    Thanks in advance.

    Hi Ali,

    I have the same Problem. Is there any solution yet?

    I’m using the events calendar pro Version 5.2.1.2
    and translatepress version 1.9.2

    I have the same problem. Any solution?

    Thread Starter randon

    (@randon)

    I uninstalled the events calendar.
    Problem is still there in Version 5.4.0.
    There is no way to make it work.

    • This reply was modified 1 year, 5 months ago by randon.
    Thread Starter randon

    (@randon)

    Ali Darwich

    (@tokyobiyori)

    SUPER-O EL MOPO

    Hello, sorry for the delay in getting back to you. Can you please upload a copy of your event.php file in that path?

    Thread Starter randon

    (@randon)

    One month delay.
    I don’t have any event.php anymore

    Hello @tokyobiyori
    I am having some problem like @randon or the other guys when I try to switch from one language to another this magic happens :
    Warning: preg_match(): Unknown modifier ‘t’ in /wp-content/plugins/the-events-calendar/src/Tribe/JSON_LD/Event.php on line 178
    I am using the pro version of Translatepress 1.9.6
    and the famous event calendar Version 5.4.0.2
    and please please Help I am out of solutions I tried to inject mo files and PO files https://theeventscalendar.com/knowledgebase/k/translating-the-events-calendar/
    and nothing happened, So please be my savior at this bug.
    I am also facing another bug but let’s focus on this first :/

    Hello there! Is there any update on this issue? We see the same with translate 2.0.4 & Calendar 5.8.0

    Ali Darwich

    (@tokyobiyori)

    SUPER-O EL MOPO

    Hello @saleck,

    Thanks so much for your message, and sorry @hamzaouni119, I didn’t get a notification of your reply before! Does any of you have a live example or a screenshot you can share with me about how you see the issue? I’ve been communicating with the TP team about this but they haven’t replied to me yet, so I want to try to talk to them again.

    I’ll be on standby.

    Thanks!
    -Ali

    Hi @tokyobiyori !

    I see this error in debug.log:

    [06-Jul-2021 15:10:06 UTC] PHP Warning: preg_match(): Unknown modifier 't' in /var/www/html/wordpress/wp-content/plugins/the-events-calendar/src/Tribe/JSON_LD/Event.php on line 178

    I must say that is not just one line, I have 86 lines with the exact same time stamp so I’m also having issues with the size of the file

    Same problem here

    Plugin Author Gustavo Bordoni

    (@bordoni)

    Hi everyone,

    After looking a little deeper into the issue I’ve pushed a fix into our codebase for it to go out in our next release. Which I cannot promise a date just yet but we will make sure that is fixed.

    https://github.com/the-events-calendar/the-events-calendar/pull/3793/

    I am marking this as resolved for now. Please keep an eye on the changelog for the next version.

    Thanks so much for your patience on this problem.

    Best regards,

Viewing 15 replies - 1 through 15 (of 17 total)
  • You must be logged in to reply to this topic.