
-
AuthorPosts
-
December 10, 2019 at 10:07 pm #1164639
Hi,
I’ve installed the Enfold theme but I’m getting a 404 error for the following CSS file:
/wp-content/uploads/dynamic_avia/enfold.cssChecking via FTP the file does not exist and neither does the folder ‘dynamic_avia’. I wondering if this might be a permissions problem.
I hope someone can help with this.
Many thanks,
Nick
December 11, 2019 at 9:50 am #1164758Hey brightfunction,
Thank you for the inquiry.
Yes, this is usually cause by improper file/folder permission settings or a hidden error. You have to obey the following guidelines and activate the debug mode so that we can see the errors if there’s any.
// https://wordpress.org/support/article/changing-file-permissions/#example-permission-settings
here’s how you can set the installation to debug mode.
// https://wordpress.org/support/article/debugging-in-wordpress/
Best regards,
IsmaelDecember 11, 2019 at 11:31 am #1164783Hi Ismael,
Thanks for your reply. With debugging enabled I receive the following error (but only when I save the Enfold settings):
Warning: file_get_contents(/home/domains/vol1/786/2712786/user/htdocs/_new/wp-content/uploads/dynamic_avia/enfold.css): failed to open stream: No such file or directory in /home/domains/vol1/786/2712786/user/htdocs/_new/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/asset-manager.class.php on line 367
Does that help? I was expecting an error when trying to create the file as well.
Thanks,
Nick
December 11, 2019 at 5:45 pm #1164898Hi Nick,
Please check the folder permission on this one /user/htdocs/_new/wp-content/uploads/
Maybe this file does not get generated because it cannot be saved due to insufficient permissions.
Best regards,
VictoriaDecember 11, 2019 at 6:31 pm #1164924Hi Victoria,
I’ve checked /wp-content/uploads/ and the permissions are 755. I’ve tried creating the dynamic_avia folder manually and applying 777 permissions but the files are still not being generated and I’m not seeing any errors.
Thanks,
Nick
December 11, 2019 at 6:54 pm #1164950Hi brightfunction,
Which version of php are you running?
Are you on the local machine?
Best regards,
VictoriaDecember 11, 2019 at 9:34 pm #1164997Hi Victoria,
Thanks for coming back to me.
PHP 7.3.11 is running. The site is on a remote server.
Cheers,
Nick
December 12, 2019 at 11:26 am #1165158Hi,
Thank you for the update.
Where can we see the site? Please provide the URL in the private field. Make sure that it contains the latest version of the theme (v4.6.3.1). Is it working when all plugins are deactivated?
Best regards,
IsmaelDecember 12, 2019 at 2:54 pm #1165214Hi Ismael,
Thanks for coming back to me.
I’ve added the URL in the private field. v4.6.3.1 is installed and all plugins are disabled.
Cheers,
Nick
December 13, 2019 at 9:52 am #1165444Hi,
Thank you for following up.
Can we access the site? Have you tried disabling the File Compression settings from the Enfold > Performance panel? The compression is currently enabled. The error occurs during the compression, so disabling that option will probably allow the theme to generate the dynamic stylesheet.
Best regards,
IsmaelDecember 13, 2019 at 11:03 pm #1165698Hi Ismael,
I’ve tried disabling the compression already but the files are still not being generated and there isn’t an error displayed.
What kind of access do you need. Do you need full administrator access?
Thanks,
Nick
December 16, 2019 at 4:20 am #1166226Hi,
Thank you for the info.
We’ll have to access the WP dashboard and the file server so that we can edit the files when necessary. Please post the login details in the private field.
Best regards,
IsmaelDecember 18, 2019 at 1:19 am #1167057This reply has been marked as private.December 20, 2019 at 6:57 am #1168047Hi,
Sorry for the delay. The SFTP account seems to be already expired because then authentication fails whenever we try to access the file server. Please remove the account expiry if possible.
Best regards,
IsmaelDecember 22, 2019 at 11:56 pm #1168643This reply has been marked as private.December 25, 2019 at 6:42 am #1169005Hi,
We are away for the holidays, so we won’t be able to check it this time. We’ll be back again on January. Please provide another account then. Thank you for your patience.
Best regards,
IsmaelJanuary 6, 2020 at 5:33 pm #1170790This reply has been marked as private.January 7, 2020 at 8:21 am #1170951Hi,
Thank you for the info.
I was able to access the file server but there’s a lot of directory in the htdocs folder and I’m not really sure which one to check. What is the exact location of the site?
Best regards,
IsmaelJanuary 7, 2020 at 10:42 am #1170984Hi Ismael,
Thanks.
I did specify the folder previously. I’ve added it to the ‘private content’ section again. I’ve also updated the SFTP credentials.
Thanks,
Nick
January 9, 2020 at 5:54 am #1171689Hi,
The dynamic stylesheet is successfully generated but it is being saved in a different directory outside the actual installation.
/home/domains/vol1/786/2712786/user/htdocs/wp-content/uploads/dynamic_avia
Please make sure that the uploads directory actually points to the folder where the installation is deployed.
// https://codex.wordpress.org/Plugin_API/Filter_Reference/upload_dir
Best regards,
IsmaelJanuary 9, 2020 at 11:36 am #1171755Hi Ismael,
Thanks for figuring that out. I should have thought of that really.
I can see you’ve made some changes to wp-config.php and .htaccess. Please can you let me know what changes you made and any other files changed please?
Thanks,
Nick
January 9, 2020 at 12:35 pm #1171780Hi again,
I think the problem was caused by the following line in wp-config.php:
define(‘WP_TEMP_DIR’,dirname(__FILE__).’/wp-content/uploads’);
Commenting that line out and restoring the theme files (I think you made some changes here) things are now working as they should (I was getting an error if I switched to a child Enfold theme).Please could you still provide details of changes you made in case there is anything I’ve missed?
Thanks for all your help with this.
Nick
January 13, 2020 at 4:22 am #1172625Hi,
Glad that it’s working now.
We commented that line out previously, oddly it didn’t fix the issue or the upload directory didn’t change, so we enabled it back. We also enabled the debug mode and that’s it.
Best regards,
IsmaelJanuary 13, 2020 at 12:17 pm #1172726Thanks.
January 14, 2020 at 12:50 pm #1173265 -
AuthorPosts
- The topic ‘404 Error Loading /wp-content/uploads/dynamic_avia/enfold.css on fresh install’ is closed to new replies.