Viewing 25 posts - 1 through 25 (of 25 total)
  • Author
    Posts
  • #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.css

    Checking 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

    #1164758

    Hey 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,
    Ismael

    #1164783

    Hi 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

    #1164898

    Hi 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,
    Victoria

    #1164924

    Hi 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

    #1164950

    Hi brightfunction,

    Which version of php are you running?

    Are you on the local machine?

    Best regards,
    Victoria

    #1164997

    Hi Victoria,

    Thanks for coming back to me.

    PHP 7.3.11 is running. The site is on a remote server.

    Cheers,

    Nick

    #1165158

    Hi,

    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,
    Ismael

    #1165214

    Hi 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

    #1165444

    Hi,

    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,
    Ismael

    #1165698

    Hi 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

    #1166226

    Hi,

    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,
    Ismael

    #1167057
    This reply has been marked as private.
    #1168047

    Hi,

    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,
    Ismael

    #1168643
    This reply has been marked as private.
    #1169005

    Hi,

    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,
    Ismael

    #1170790
    This reply has been marked as private.
    #1170951

    Hi,

    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,
    Ismael

    #1170984

    Hi 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

    #1171689

    Hi,

    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,
    Ismael

    #1171755

    Hi 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

    #1171780

    Hi 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

    #1172625

    Hi,

    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,
    Ismael

    #1172726

    Thanks.

    #1173265

    Hi,

    You’re welcome. We’ll close the thread for now. Please don’t hesitate to open a new one if you need anything else.

    Have a nice day.

    Best regards,
    Ismael

Viewing 25 posts - 1 through 25 (of 25 total)
  • The topic ‘404 Error Loading /wp-content/uploads/dynamic_avia/enfold.css on fresh install’ is closed to new replies.