Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Wrong path for plugins directory › Reply To: Wrong path for plugins directory
February 24, 2015 at 5:05 pm
#4012
Hi!
I’m currently working on the upcoming version and if I remember correctly I fixed this as someone reported something similar with the paths.
I think there are only 3 instances of ABSPATH there in the current version. The fixed lines look like this now:
echo file_get_contents(WP_PLUGIN_DIR . '/' . $style['magnifierimage']);
Would you mind checking if this solution is working in your case? A core developer suggested using the WP_PLUGIN_DIR constant as it should hold the correct plugin directory at all times.
I will mark this path issue solved if you can confirm that this solution works, and we don’t need to worry about this in the future versions anymore 😉
Best,Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)