
-
AuthorPosts
-
September 18, 2021 at 10:43 am #1321441
I have the habit of changing the default WP uploads folder location, but every single time I do this when Enfold is my active theme, it triggers the avia-footer-scripts issue (infinite creation of JS files with unique names in the <WP uploads>/dynamic_avia folder). I was able to narrow the cause down to this WP setting after multiple tests (WP Settings > Media > Store uploads in this folder).
Yes, I’ve tried disabling merging and compression of JS and even CSS files, as well as played with all the “unique timestamps” options (disable adding unique timestamps only; fix WP bug, add unique timestamps; and fix WP bug, disable unique timestamps). None of these “solutions” seem to work for me, and I’ve tried them all on at least three different WP instances (clean installs, BTW).
Also, I don’t want to have to mess with any of the theme’s core JS files as I administer multiple WP/Enfold sites and it’s just not feasible for me to keep track of these modifications every time I upgrade the theme.
September 20, 2021 at 12:42 pm #1321619Hey,
Thanks for contacting us!
Which plugin are you using to change uploads folder location? We would like to try to reproduce the issue on our local installations first and if we cannot, then you could create a testing installation for us.
Best regards,
YigitSeptember 20, 2021 at 7:18 pm #1321686Hey Yigit, thanks for your response.
I’m using WP’s settings to do this (Settings > Media > Store uploads in this folder) – no plugin involved.
If it helps to reproduce the issue: I create the directory in my WP root folder with 755 permissions and then point to it using the above setting.
September 21, 2021 at 1:48 pm #1321758Hey,
Which version of WordPress and Enfold are you currently using? That option seems to be deprecated in WP 4.9.8. Could you please refer to this post – https://www.webnots.com/change-default-media-upload-folder-wordpress/ to change upload location and check if you still have the issue with this solution?
Regards,
YigitSeptember 21, 2021 at 6:58 pm #1321817WP version: 5.8.1
Enfold version: 4.8.2It’s interesting… I remember having that issue one time when I wasn’t able to find the option to change the Uploads folder in WP’s UI; and I remember bringing it back by setting the upload_path field to 1 in the wp_options table in the WP DB. In any case, I can see this setting in the UI in all my new WP instances. I always use Installatron to install WP, maybe this setting is preset in there by default.
I will try your suggestion and use the UPLOADS constant in wp-config.php on a clean WP install and let you know how it goes.
-
This reply was modified 3 years, 6 months ago by
Enfoldio.
September 23, 2021 at 10:37 am #1321994Hi Yigit,
Setting the Uploads folder location in
wp-config.php
seems to have done the trick. It’s been a few hours already and so far so good.Even though I can still see the default
wp-content/uploads
path in WP Settings > Media, my uploads are being stored in the correct place, which is the folder I defined inwp-config.php
.Thank you for your help.
September 27, 2021 at 2:20 pm #1322498 -
This reply was modified 3 years, 6 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.