I’m wondering if it is possible that the Jetpack plugin is not fully PHP 8.4.3 compatible. It’s the one thing that jumps out, that the visitors registration drops after switching the PHP version. Will it work again if we change the PHP version to 8.3?
]]>Just upgraded to wordpress 6.7 version and I receive the following message:
Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the simple-comment-editing 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. (This message was added in version 6.7.0.)
]]>PHP Deprecated: ?Creation of dynamic property IGFW\Helpers\Plugin_Constants::$_MAIN_PLUGIN_FILE_PATH is deprecated in /var/www/html/wp-content/plugins/invoice-gateway-for-woocommerce/Helpers/Plugin_Constants.php on line 53
PHP Deprecated: ?Creation of dynamic property IGFW\Models\Gateways\IGFW_Invoice_Gateway::$instructions is deprecated in /var/www/html/wp-content/plugins/invoice-gateway-for-woocommerce/Models/Gateways/IGFW_Invoice_Gateway.php on line 38
PHP Deprecated: ?Creation of dynamic property IGFW::$failed_dependencies is deprecated in /var/www/html/wp-content/plugins/invoice-gateway-for-woocommerce/invoice-gateway-for-woocommerce.php on line 158
Subsequently this is generating deprecation errors when preg_replace is called with null as a parameter to $subject.
PHP Deprecated: ?preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/html/wp-includes/kses.php on line 1805
Can we please make sure all properties of the classes are defined else allow dynamic properties in all classes?
Thanks
]]>I am being encouraged by my Internet Service Provider to switch from PHP 8.1.30 to PHP 8.2.24. Can you please confirm whether this migration will be OK for PDB.
Many thanks
Steve
]]>
You can find the new plugin on GitHub: https://github.com/luanluta/Easy-Columns-PHP-8-Update
Or direct download it here.
The issue was that the plugin was using an outdated method to create a class. The only change has been to update the method used in easy-columns.php
on line 35 from:
function EasyColumns() { //constructor
To
function __construct() { //constructor
Tested up to PHP 8.3.
]]>PHP 8.0 DEBUG LOG:
Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, function “add_text” not found or invalid function name in /includes/class-wp-hook.php:324 Stack trace: #0 /includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #1 /includes/[/plugin.php(517): WP_Hook->do_action(Array) #2 /wp-content/plugins/woocommerce/templates/content-single-product.php(72): do_action(‘woocommerce_aft…’) #3 /wp-includes/template.php(792): require(‘/home/georgegl/…’) #4 /wp-content/plugins/woocommerce/includes/wc-core-functions.php(284): load_template(‘/home/[account name]/…’, false) #5 /wp-content/plugins/woocommerce/templates/single-product.php(37): wc_get_template_part(‘content’, ‘single-product’) #6 /wp-includes/template-loader.php(106): include(‘/home/[account name]/…’) #7 /wp-blog-header.php(19): require_once(‘/home/georgegl/…’) #8 /index.php(17): require(‘/home/[account name]/…’) #9 {main} thrown in /wp-includes/class-wp-hook.php on line 324
PHP 7.4 DEBUG LOG:
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘add_text’ not found or invalid function name in /wp-includes/class-wp-hook.php on line 324
HERE IS THE CLASS-WP-HOOK.PHP CODE. I’VE BOLDED LINES 324 AND 328:
EXCERPT OF LINES 289-354 OF CLASS-WP-HOOK.PHP, WITH LINES 324 AND 348 IN RED
/**
* Calls the callback functions that have been added to a filter hook.
*
* @since 4.7.0
*
* @param mixed $value The value to filter.
* @param array $args Additional parameters to pass to the callback functions.
* This array is expected to include $value at index 0.
* @return mixed The filtered value after all hooked functions are applied to it.
*/
public function apply_filters( $value, $args ) {
if ( ! $this->callbacks ) {
return $value;
}
$nesting_level = $this->nesting_level++;
$this->iterations[ $nesting_level ] = $this->priorities;
$num_args = count( $args );
do {
$this->current_priority[ $nesting_level ] = current( $this->iterations[ $nesting_level ] );
$priority = $this->current_priority[ $nesting_level ];
foreach ( $this->callbacks[ $priority ] as $the_ ) {
if ( ! $this->doing_action ) {
$args[0] = $value;
}
// Avoid the array_slice() if possible.
if ( 0 === $the_['accepted_args'] ) {
$value = call_user_func( $the_['function'] );
} elseif ( $the_['accepted_args'] >= $num_args ) {
$value = call_user_func_array( $the_['function'], $args );
} else {
$value = call_user_func_array( $the_['function'], array_slice( $args, 0, $the_['accepted_args'] ) );
}
}
} while ( false !== next( $this->iterations[ $nesting_level ] ) );
unset( $this->iterations[ $nesting_level ] );
unset( $this->current_priority[ $nesting_level ] );
--$this->nesting_level;
return $value;
}
/**
* Calls the callback functions that have been added to an action hook.
*
* @since 4.7.0
*
* @param array $args Parameters to pass to the callback functions.
*/
public function do_action( $args ) {
$this->doing_action = true;
$this->apply_filters( '', $args );
// If there are recursive calls to the current action, we haven't finished it until we get to the last one.
if ( ! $this->nesting_level ) {
$this->doing_action = false;
}
}
Now, I am using “CJT PLUS” and when I upgrade the PHP version to 8 or later, I get some errors.
I know you are busy, but if you have any solutions or suggestions, could you please let me know? Thank you in advance.
original:
こんにちは、私は日本人で、英語が使えないため、翻訳サイトを用いてこの文章を書いています。そのため、あなたに伝わる文章になっていない場合があるかもしれません。その際はご了承ください。あらかじめ、お詫びいたします。
また、私のプログラミングレベルは初心者より少しできる程度の力量しかないため、見当違いの話をしていた場合は、申し訳ありません。
さて、私は「CJT PLUS」を使用していますが、PHPバージョンを8以降にアップグレードすると、いくつかのエラーが発生します。
1. 「Warning: Attempt to read property “ID” on null in /home/……/css-javascript-toolbox/controllers/blocks-coupling.php on line 436」
このエラーは、wpの編集画面に移動した際表示され、該当するjavaScriptの一部が上手く作動しない状況となります。(JSのajaxが上手く動かないなど)
少し、エラーの原因を探ってみると[Aux]の[Website Backend]にチェックを入れて作動させると表示されることまでは、突き止めましたが、それ以上エラーを修正する術が私にはわかりませんでした。
これは、CJT PLUSのプラグイン自体の問題点ではないですか?
ちなみに、phpのバージョンをphp7.4.33などの8以前のバージョンに戻すと、エラーは表示されず、該当するjavaScriptやCSSは問題なく作動?適応します。
問題を解決する方法が分かりましたら、教えてください。よろしくお願いします。
2. 「Undefined array key “9001” in /home/……/css-javascript-toolbox/framework/php/evaluator/evaluator.inc.php(51) : eval()’d code on line 122」
「Undefined array key」や「Uninitialized string offset 」のエラーがPHPバージョン8以降にアップグレードすると頻発して表示されました。これらのエラーは、自力でエラーを修正や回避することで、現在のところ全てエラーを解消できました。
これらのエラーは、php8以降では未定義や未初期化は受け付けず、php8以前では曖昧に処理されていて、作動していたと捉えてよろしいでしょうか?それとも「CJT」か「CJT PLUS」のプラグインに問題があるのでしょうか?
お忙しいとは思いますが、解決方法やご意見がありましたら、教えてもらえないでしょうか。よろしくお願いいたします。
]]>Here is one example, and there are many more:
[28-Jul-2024 20:37:08 UTC] PHP Deprecated: Creation of dynamic property mycryptocheckout\MyCryptoCheckout::$__expired_license is deprecated in …\wp-content\plugins\mycryptocheckout\src\misc_methods_trait.php on line 87
]]>