ERROR: Using $this when not in object context in on live website
-
Hello,
Thanks for the great plugin. As using it on different projects. I have finish work locally and then upload my work to live project. But there I can see the error mentioned below.
[30-May-2017 23:25:47 UTC] PHP Fatal error: Using $this when not in object context in /home/****/*****/wp-content/plugins/a3-lazy-load/classes/class-a3-lazy-load.php on line 279
[30-May-2017 23:26:05 UTC] PHP Fatal error: Using $this when not in object context in /home/****/*****/wp-content/plugins/a3-lazy-load/classes/class-a3-lazy-load.php on line 279Then I remove $this from if ( is_array( _skip_images_classes ) ) { online 279 and 284 if ( ! ( is_array( _skip_images_classes ) from this code. And then its working fine.
It’s only displaying error when I try to access woocommerce shop pages like archive or the single product page. On other pages of sites like posts, categories etc working fine. But issue coming only on woocommerce pages.
Waiting for positive response.
Regards
- The topic ‘ERROR: Using $this when not in object context in on live website’ is closed to new replies.