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.
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
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
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