Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Wrong path for plugins directory › Reply To: Wrong path for plugins directory
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:
[code]echo file_get_contents(WP_PLUGIN_DIR . ‘/’ . $style[‘magnifierimage’]);[/code]
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 😉