Koli14
Forum Replies Created
-
Thanks for the reply!
This is the whole notice, what I see:Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wp-accessibility 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 init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in .../wp/wp-includes/functions.php on line 6114
I do not know, how to get a stack-trace in WP for a Notice…
Any suggestions? I’m happy to help, if you give me more specific instructions. (I have access to ssh, and I have WP-CLI installed.Any updates on this? I’m using WP 6.7.1, but I still get this Notice.
Forum: Plugins
In reply to: [WP REST Cache] Add option to disable cache hit recordingHere is an example, how you can disable it in your functions.php:
add_filter('wp_rest_cache/cache_hit_recording', function () { return false; });
- This reply was modified 4 years, 8 months ago by Koli14.
One more info: It errors only if Google is set in WP MAIL SMTP plugin as provider.
Hi there!
I still get the same error if a not already registered user try to register with Super Social Login -> Google Auth, and the WP MAIL SMTP plugin is activated… ??[07-Jul-2020 09:18:10 UTC] PHP Warning: json_decode() expects parameter 1 to be string, array given in /wp-content/plugins/super-socializer/library/Google/Auth/OAuth2.php on line 178 [07-Jul-2020 09:18:10 UTC] PHP Fatal error: Uncaught Google_Auth_Exception: Could not json decode the token in /wp-content/plugins/super-socializer/library/Google/Auth/OAuth2.php:180 Stack trace: #0 /wp-content/plugins/super-socializer/library/Google/Client.php(189): Google_Auth_OAuth2->setAccessToken(NULL) #1 /wp-content/plugins/wp-mail-smtp/src/Providers/Gmail/Auth.php(120): Google_Client->setAccessToken(Array) #2 /wp-content/plugins/wp-mail-smtp/src/Providers/Gmail/Auth.php(37): WPMailSMTP\Providers\Gmail\Auth->get_client() #3 /wp-content/plugins/wp-mail-smtp/src/Providers/Gmail/Mailer.php(79): WPMailSMTP\Providers\Gmail\Auth->__construct() #4 /wp-content/plugins/wp-mail-smtp/src/MailCatcher.php(131): WPMailSMTP\Providers\Gmail\Mailer->send() #5 in /wp-content/plugins/super-socializer/library/Google/Auth/OAuth2.php on line 180
Forum: Plugins
In reply to: [WP REST Cache] Delete expired or flushed cachesHey Richard!
Thanks for your detailed answer!
I still have the issue. Any progress?
Forum: Plugins
In reply to: [Barion Payment Gateway for WooCommerce] Change the text ‘Proceed to Barion’But I still did not find a proper solution.
Forum: Plugins
In reply to: [Email Before Download] Causes Loopback request issuesSame problem by me and WordPress 5.2.3.
- This reply was modified 5 years, 5 months ago by Koli14.
Forum: Plugins
In reply to: [Barion Payment Gateway for WooCommerce] Change the text ‘Proceed to Barion’I found what cause it: in /woocommerce/assets/js/frontend/checkout.js from 114:
if ( $( this ).data( 'order_button_text' ) ) { $( '#place_order' ).text( $( this ).data( 'order_button_text' ) ); }
Forum: Plugins
In reply to: [Barion Payment Gateway for WooCommerce] Change the text ‘Proceed to Barion’You are on the right way, I logged the
$translated_text
, and it’s never ‘Proceed to Barion’, but ‘Place order’. But even if I change my functionif ($translated_text == 'Proceed to Barion' || $translated_text == 'Place order') {
, it appears for a moment correct but some script modifies it later on pageloadI also tried to change the text with JavaScript, and it does change it, but probably some other JavaScript change it tp ‘Proceed to Barion’.
The button has the text first: ‘Place order’ -> then I change it with JS to ‘Confirm and Pay’ and then it changes again to ‘Proceed to Barion’.I tried it with 3 themes: Avada, StoreFront and Twenty Nineteen
- This reply was modified 5 years, 5 months ago by Koli14.
Forum: Plugins
In reply to: [Email Before Download] Fatal error: Call to a member function getAttribute()The solution was to change the quotation marks in the shortcode from ” to ” .
So my shortecode before:
[email-download download_id=”1” contact_form_id=”2”]
and after:
[email-download download_id="1" contact_form_id="2"]
Forum: Plugins
In reply to: [Barion Payment Gateway for WooCommerce] Change the text ‘Proceed to Barion’I use these settings in my test sites:
define( 'WP_DEBUG', true ); ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); define( 'WP_DEBUG_LOG', true ); define( 'SCRIPT_DEBUG', true );
Out of this I have no idea how could I debug it.
- This reply was modified 5 years, 5 months ago by Koli14.
Forum: Plugins
In reply to: [Barion Payment Gateway for WooCommerce] Change the text ‘Proceed to Barion’English.
https://dev.digitalnomadhungary.com/checkout/- This reply was modified 5 years, 5 months ago by Koli14.
Forum: Plugins
In reply to: [Barion Payment Gateway for WooCommerce] Change the text ‘Proceed to Barion’I tried it now on a freshly installed test site, and my code works with plugin version 2.5.1, but with 3.0.1 and above it’s not working.
My code:
<?php add_filter( 'gettext', custom_checkout_button_text', 20, 3 ); function custom_checkout_button_text( $translated_text, $text, $domain ) { if( $translated_text == 'Proceed to Barion' ) { $translated_text = 'Confirm and Pay'; // new button text is here } return $translated_text; }