• Resolved Apple.R

    (@red-apple)


    Hi,

    I am testing my site(localhost). It is fresh WP. Here is my setup.

    – WP 6.0.3
    – FREE Astra theme Version: 3.9.2
    – FREE TranslatePress – Multilingual Version 2.3.9
    – FREE The Events Calendar – Version 6.0.2
    – PHP 7.4.24
    – Apache 2.4.46
    – MySQL 5.7.28

    What I did:
    – After installing and setup the theme and TranslatePress plugin, I install and activate the Event Calendar plugin.
    – I create and publish a new Event in the Event Calendar (Event 1).
    – I view the new single Event page (https://localhost/example/event/event-1/) which is NO warning message.
    – Then I view the Events page which will show all events (https://localhost/example/event). Then I click on the Translate page from the TranslatePress plugin in order to start translating to another language. I see the warning message as shown below.

    Warning: preg_match(): Unknown modifier ‘t’ in ..\wp-content\plugins\the-events-calendar\src\Tribe\JSON_LD\Event.php on line 177

    —-

    Warning message shows on the frontend:
    The same warning message shows on the frontend while I am on the Events page in my second language (https://localhost/example/th/events/).

    —-

    Please check the issue. I saw the developer was trying to fix it before but unfortunately, the issue is back.

    Thanks,
    Apple

    • This topic was modified 2 years ago by Apple.R.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Apple.R

    (@red-apple)

    Quick info:

    I found a link that fixes my issue for now. Here is the link.

    This fix removes the warning message. But the Events page won’t translate to another language. ??

    Regards,
    Apple

    • This reply was modified 2 years ago by Apple.R.
    • This reply was modified 2 years ago by Apple.R.
    Plugin Support Abz

    (@abzlevelup)

    Hi @red-apple, apologies for the delay here, I’m back now. Yes, one of our devs shared this quick fix here. This has something to do with incompatibility with TranslatePress. It would also be good to reach out to their team and see if they have any workaround.

    Best,
    Abz

    Thread Starter Apple.R

    (@red-apple)

    Thanks for the reply. Hope the issue will be fixed soon. Thanks for the team effort.

    Plugin Support Abz

    (@abzlevelup)

    Hi @red-apple, no worries here. Please do keep us posted on what you found out from their end as well.

    Have a great day.

    Best,
    Abz

    Plugin Support Abz

    (@abzlevelup)

    Hi @red-apple, we just released The Events Calendar 6.0.5. We fixed quite a few errors in this release, and it may have solved this issue as well. Please update and let us know if that fixes the issue here.

    To be safe, we’d recommend conducting tests and updates on a Staging Server and keep a working backup of your website.

    Also, please clear any caching for both third-party plugins and server-side (if you have any). It would also be good to flush permalinks.

    Best,
    Abz

    Thread Starter Apple.R

    (@red-apple)

    Hi @abzlevelup

    Thank you for letting me know. I test it and I confirm the “Warning: preg_match(): Unknown modifier ‘t’” is gone. However, on the events page, when I click on the filter period (List, Month, Day) in my Thai language(current language on the site), the language always shows English only. It should show the current language which is Thai. But this is another issue.

    Thank you,
    Apple

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Warning: preg_match(): Unknown modifier ‘t’’ is closed to new replies.