• Resolved umerkakar

    (@umerkakar)


    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 279

    Then 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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Steve Truman

    (@a3rev)

    Hi @umerkakar

    Just put out version 1.8.1 with a patch for that. Please update and see if it fixes the issue for you.

    BTW – we have set up a Github repo for a3 Lazy Load if you would like to contribute to the plugins development – feel free to do so.

    https://github.com/a3rev/a3-lazy-load

    Regards
    Steve

    Thread Starter umerkakar

    (@umerkakar)

    Hello Steve.
    Thanks fro update. I am going to update plugin. And then test if it’s really fixed. Yeh will join you on github.

    Have a good day.

    Plugin Author Steve Truman

    (@a3rev)

    Hi @umerkakar

    Thanks thats great – will change the status of your topic to resolved now – let me know if you still have issues and look forward to any contribution you have to make on Github.

    Regards
    Steve

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘ERROR: Using $this when not in object context in on live website’ is closed to new replies.