This topic contains 3 replies, has 2 voices, and was last updated by
- March 7, 2018 at 12:27 am #17032Participant
on line on line 441 of wp-content/plugins/ajax-search-pro/includes/classes/core/class-asp-init.php incorrectly returns the path of the uploads directory as if it still was in the wordpress directory. E.g.
- wordpress (contains WordPress installation)
- uploads (uploads directory)
The call to
returns wordpress/uploads but should return uploads.March 7, 2018 at 11:54 am #17037Keymaster
That constant is defined in the ajax-search-pro\includes\classes\core\class-asp-manager.php file within this function:
Is this not the correct way? Please let me know, I am not too familiar with these modifications myself.
Also, from what I can see in these docs, if the UPLOADS constant is set in the wp-config.php file, the wp_upload_dir() will return that url relative to the ABSPATH constant. You might need to set that constant as well, I am not sure.
Let me know!Best,
If you like my products, don't forget to rate them on codecanyon :)
March 8, 2018 at 8:45 pm #17046Participant
Thanks for your quick response and for looking into this for me. You’re quite right, the UPLOADS constant ends up being prefixed with ABSPATH- that’s something I hadn’t noticed and unfortunately something I can’t change without modifying the core.
A workaround I have now found is to set the UPLOADS constant to “../media”. Although this does generate links like e.g. http://domain.com/../media/mypicture.jpg this is not serious in my case.
You can close this ticket as the issue is now resolved.
OliMarch 8, 2018 at 9:41 pm #17047
You must be logged in to reply to this topic.