Support » Plugin: Swift Performance Lite » Fatal error: Using $this when not in object context

  • Resolved james7000

    (@james7000)



    Just installed the Swift plugin, everything is working fine in backend but getting this error on frontend.

    ……………………………………………………….

    Fatal error: Using $this when not in object context in /data/9/2/127/144/2779470/user/3056375/htdocs/wp-content/plugins/swift-performance-lite/modules/critical-font/critical-font.php on line 27

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Fred

    (@fredawd)

    I´m affraid you`re using an old version of PHP (PHP 5.3 or below).

    Update to 5.6 or better to PHP 7.x will solve this error.

    • This reply was modified 1 month, 2 weeks ago by  Fred.

    Hi,
    that might be true(the site is running on php 5.3. Thank you for your feedback.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.