Elementor integration problems

On constructor function of files:

  • /inc/compatibility/elementor/skins/class-airi-athemes-blog-skin.php
  • /inc/compatibility/elementor/skins/class-airi-athemes-blog-skin-2.php
  • /inc/compatibility/elementor/skins/class-airi-athemes-blog-skin-3.php
  • /inc/compatibility/elementor/skins/class-airi-athemes-blog-skin-4.php
  • /inc/compatibility/elementor/skins/class-airi-image-icon-box-skin.php

method ‘skin_print_template’ not exist and a PHP Warning is generated.

Please fix it.
Thanks!

Hello, sorry for delay.

I’ve just enabled debug mode on my local Airi install, but didn’t see any PHP warnings. Can you please describe how I can recreate your issue?

Kind Regards, Roman.

Hi, Roman.

Sorry for delay.

When I edit a post with Elementor, this is the error:

PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'Airi_aThemes_Blog_Skin_2' does not have a method 'skin_print_template' in /****/****/****/wp-includes/class-wp-hook.php on line 286, referer: https://www.*******.***/wp-admin/post.php?post=687&action=edit

PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'Airi_aThemes_Blog_Skin_3' does not have a method 'skin_print_template' in /****/****/****/wp-includes/class-wp-hook.php on line 286, referer: https://www.*******.***/wp-admin/post.php?post=687&action=edit

PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'Airi_aThemes_Blog_Skin_4' does not have a method 'skin_print_template' in /****/****/****/wp-includes/class-wp-hook.php on line 286, referer: https://www.*******.***/wp-admin/post.php?post=687&action=edit

PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'Airi_aThemes_Blog_Skin' does not have a method 'skin_print_template' in /****/****/****/wp-includes/class-wp-hook.php on line 286, referer: https://www.*******.***/wp-admin/post.php?post=687&action=edit

I have commented the line
add_filter('elementor/widget/print_template',array($this,'skin_print_template'),10,2);
in these files inside /inc/compatibility/elementor/skins:

  • class-airi-athemes-blog-skin.php
  • class-airi-athemes-blog-skin-2.php
  • class-airi-athemes-blog-skin-3.php
  • class-airi-athemes-blog-skin-4.php
  • class-airi-image-icon-box-skin.php

because function skin_print_template don’t exist.

Regards.

Hi there,

Is it possible you’re using a very old Elementor version? Because that function definitely exists.

Regards,
Vlad

Hi Vlad.

Wordpress version is 4.9.8.
Elementor version is 2.3.2.

Function skin_print_template exist in Elementor but on filter is called with $this and in your class function skin_print_template not exist.

Ah okay, I misread what you were saying.
I see now what you mean. I’ll investigate a bit and handle it, strange now how we can’t replicate it or nobody reported it before. Can you also tell me your PHP version please?

PHP version is 7.0.27

Some news about this?

Hi,

Yes, we’re including this in the next update, just waiting to add something else to it too.

Thanks for this good news, Vlad.

Regards.