Elementor integration problems


#1

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!


#3

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.


#4

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.


#5

Hi there,

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

Regards,
Vlad


#6

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.


#7

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?


#8

PHP version is 7.0.27


#9

Some news about this?


#10

Hi,

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


#11

Thanks for this good news, Vlad.

Regards.