Title: Error message
Last modified: August 22, 2016

---

# Error message

 *  Resolved [Peter_Barker](https://wordpress.org/support/users/peter_barker/)
 * (@peter_barker)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/error-message-358/)
 * When I refresh a site that I’m experimenting with I’ve started getting an error
   message:
 * Notice: Use of undefined constant __DIR__ – assumed ‘__DIR__’ in /home/linweb08/
   p/peterbarkerdesign.co.uk/user/htdocs/august/wp-content/plugins/easy-google-fonts/
   includes/class-easy-google-fonts-admin.php on line 107
 * Any ideas what I’m doing wrong, please?
 * Pete
 * [https://wordpress.org/plugins/easy-google-fonts/](https://wordpress.org/plugins/easy-google-fonts/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Sunny Johal](https://wordpress.org/support/users/sunny_johal/)
 * (@sunny_johal)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/error-message-358/#post-5338388)
 * Hi Peter,
    That error is happening because the server that you are running your
   website on is running an old outdated version of PHP. I’ve just added some backwards
   compatibility in my plugin to account for older servers and it is available to
   download now.
 * **Here is what you need to do:**
    - Deactivate and remove the current plugin
    - Download the plugin again and activate it
 * That should sort it out for you. Let me know how you get on. Cheers
 * Sunny
 * P.S. For your info: __DIR__ is a convenient method in PHP to allow you to locate
   the current folder directory without having to know the whole filesystem of the
   website. This constant was made available in PHP v5.3 onwards. I would always
   advise that you use hosting with a newer version of PHP.
 *  Thread Starter [Peter_Barker](https://wordpress.org/support/users/peter_barker/)
 * (@peter_barker)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/error-message-358/#post-5338442)
 * Thanks for your prompt and helpful reply, Sunny.
 * For the time being, I’ll give it a try and report back to you; I’ve been having
   a few issues like this with my current ISP, looks like it might be time for a
   change!
 * Thanks again for your help and assistance.
 * Cheers
 * Pete
 *  Thread Starter [Peter_Barker](https://wordpress.org/support/users/peter_barker/)
 * (@peter_barker)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/error-message-358/#post-5338472)
 * Sunny,
 * Thanks for going to the trouble of adding backwards compatibility. I’ve reinstalled
   the plugin and it looks like it’s solved the problem.
 * Excellent service!
 * Cheers
 *  Plugin Author [Sunny Johal](https://wordpress.org/support/users/sunny_johal/)
 * (@sunny_johal)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/error-message-358/#post-5338516)
 * Hi Pete,
    Glad it’s working for you. Also, I’ve not forgotten about your request
   for media query support, I’ll look at how we can integrate this smoothly in a
   future release. Cheers
 * Sunny

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Error message’ is closed to new replies.

 * ![](https://ps.w.org/easy-google-fonts/assets/icon-256x256.png?rev=2562365)
 * [Easy Google Fonts](https://wordpress.org/plugins/easy-google-fonts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/easy-google-fonts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/easy-google-fonts/)
 * [Active Topics](https://wordpress.org/support/plugin/easy-google-fonts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/easy-google-fonts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/easy-google-fonts/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Sunny Johal](https://wordpress.org/support/users/sunny_johal/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/error-message-358/#post-5338516)
 * Status: resolved