• Resolved Howdy_McGee

    (@howdy_mcgee)


    Since the latest update a few of my sites are getting this error:

    PHP Fatal error: Using $this when not in object context in /wp-content/plugins/wp-mailto-links/classes/WPML/Front/Email.php on line 139

    Unfortunately, I can’t replicate and am only seeing it in the debug.logs. If need more info I could jump in the file and run a debug backtrace.

    Running: WordPress 4.5.1
    Plugins:

    • All in One WP Security
    • Black Studio TinyMCE Widget
    • Contact Form 7
    • Really Simple Captcha
    • TinyMCE Advanced
    • WP Mailto Links

    Lemme know if you need any further info and I’ll look into it!

    https://wordpress.org/plugins/wp-mailto-links/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Pi Zi

    (@freelancephp)

    Thanks a lot!
    I’ll take a look at it.

    Pi Zi

    (@freelancephp)

    The problem is probably related to a bug that only appears in PHP 5.3. Please update to version 2.1.2.

    (Technical explanation: I used the $this reference within a closure and that’s only supported for PHP 5.4+.)

    Thanks again for reporting McGee. That was the clue I was looking for!

    Thread Starter Howdy_McGee

    (@howdy_mcgee)

    Thanks for the quick fix!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Using $this when not in object contect’ is closed to new replies.