• Resolved Stef

    (@serafinnyc)


    Anyone else seeing this translation error being called incorrectly?

    [02-Dec-2024 20:57:47 UTC] PHP Notice:  Function _load_textdomain_just_in_time was called <strong>incorrectly</strong>. Translation loading for the <code>woocommerce-paypal-payments</code> domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the <code>init</code> action or later. Please see <a href="https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 6.7.0.) in /home/customer/www/example.com/public_html/wp-includes/functions.php on line 6114

    There are thousands of lines of these running when debug log is enabled. We have this client running on 8.2.26 PHP.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Stef

    (@serafinnyc)

    Now we’re seeing another error which is triggering a php_error file almost 4 hours later.

    [02-Dec-2024 22:47:01 UTC] PHP Warning:  Illegal string offset "******************" (bunch of letters and numbers) in /home/customer/www/example.com/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-order-tracking/src/Shipment/Shipment.php on line 150

    We’ve seen this on other sites where this string is being treated as an array.

    Plugin Support Femi

    (@femiyb)

    Hello @serafinnyc

    We are aware of this problem, and we already have a fixing package, you may find it here.

    Please test if the fix already works for you, alternetively if you prefer to wait until official released you can disable debugging or even better use this code snippet to suppress the notice:

    add_filter( 'doing_it_wrong_trigger_error', '__return_false' );

    Please let me know if this works for you.

    Regards,
    Femi.

    Thread Starter Stef

    (@serafinnyc)

    Hey @femiyb thanks for the late reply. I had already taken care of this by myself. Just posted this to make sure you guys were aware of it.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Translation Error Message When Debug Log is On’ is closed to new replies.