Fix for php 7 and 8
On line 2938 /wp-content/plugins/falang/admin/class-falang-admin.php instead of:
public function wp_nav_menu_item_custom_fields( $item_id, $menu_item, $depth, $args, $current_object_id ) {
use:
public function wp_nav_menu_item_custom_fields( $item_id = null, $menu_item = null, $depth = null, $args = null, $current_object_id = null ) {
]]>does this plugin now require PHP 8.0 otherwise with PHP 7 and 7.x will break the website?
what should we do? our current PHP version is 7.4.16 and using Woocommerce PDF Invoices and Packing slips 2.7.4. version
Let me know, thanks
]]>Deprecated: Function create_function() is deprecated in /home/umut58tr/public_html/wp-content/plugins/wp-db-backup/wp-db-backup.php on line 221
/home/umut58tr/public_html/wp-content/plugins/wp-db-backup/wp-db-backup.php
create_function() -> function()
/* line 221 */ add_action(‘admin_footer’, create_function(”, ‘ob_end_flush();’));
/* line 1197 */ $all_tables = array_map(create_function(‘$a’, ‘return $a[0];’), $all_tables);
/* line 1430 */ $all_tables = array_map(create_function(‘$a’, ‘return $a[0];’), $all_tables);
New code
/* line 221 */ add_action(‘admin_footer’, function(){ return ob_end_flush(); });
/* line 1197 */ $all_tables = array_map( function($a){ return $a[0]; }, $all_tables);
/* line 1430 */ $all_tables = array_map( function($a){ return $a[0]; }, $all_tables);
first thank you for your cool plugin. It worked for 1 year until i got today in trouble.
I have 10 short-Links forwarting to youtube.
If I want to create more, I cannot. (Target field is grey)
why?
Regards
Rene′
WP 5.6, PHP7
]]>I was trying to upgrade my website to PHP 7 as the older versions of PHP are vulnerable to certain exploits, however ran into some issues with the codilight-lite theme using deprecated functions:
Deprecated: Function create_function () is deprecated in codilight-lite / inc / widgets / block_2_widget.php on line 7
In the files:
codilight-lite / inc / widgets / block_1_widget.php on line 7
codilight-lite / inc / widgets / block_2_widget.php on line 7
codilight-lite / inc / widgets / block_3_widget.php on line 7
codilight-lite / inc / widgets / block_4_widget.php on line 7
Revisando documentación he encontrado este error y su solución en ?Tienes problemas?:
“PHP >= 7.0: Para poder enviar los datos a Redsys de forma correcta en PHP 7.0 o superior, es necesario que el hosting que contratéis tenga instalada y activada la extensión de PHP encrypt_3DES(). Si no lo está, no podréis utilizar Redsys. Así que asegúrate que tu hosting lo tiene instalado y si no lo tiene, pídelo que lo instale en el servidor y lo active en php.ini”
He mirado en el server y no he encontrado dicha extensión instalada
phpinfo()
php -m
php -i
Ya no es necesaria esta extensión? No lo es en pruebas pero si en producción?
Saludos y gracias por adelantado
Worpress 5.4.2
PHP 7.3.19
WooCommerce 4.2.2
Redsys 2.1.0
Certificado SSL Let’s Encrypt