Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1154000

    Hi there,

    Similar to this thread I’ve the same error message on one of our pages.

    Warning: file_get_contents(/kunden/(…)%20Child%20Theme/style.css): failed to open stream: No such file or directory in /kunden/(…)wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/asset-manager.class.php on line 367

    Login details are provided in the private area. This error message doesn’t always appear but from time to time.
    How to fix this error?

    Thanks!

    #1154164

    Hey Chili2908,

    Thanks for the login details and sorry for the problem. When does this message appear?

    Best regards,
    Rikard

    #1154649

    Hi Rikard,

    Unfortunately, I don’t get the error message all the time, therefore, I cannot tell. As I wrote, this error message doesn’t always appear but from time to time. :|

    Thanks!

    #1154857

    Hi,

    Thanks for the update, so there’s no sure way to reproduce this? It will be difficult for us to find the cause of the problem if we can’t even see the problem unfortunately.

    Best regards,
    Rikard

    #1155065

    Hey Rikard, hey Chili2908,
    I encountered the same problem. The file is on the path /path/to/wordpress/wp-content/uploads/sites/2/dynamic_avia/enfold.css
    As I can see, this is not the path, the asset-manager is looking for (see warning message below). Strongly looks like a problem of relative / absolute paths. Might this be due to the fact, that I use Enfold in a WP multisite environment?

    Warning: file_get_contents(/my/path/to/wordpress/https://mydomain.com/wp-content/uploads/sites/2/dynamic_avia/enfold.css): failed to open stream: No such file or directory in /my/path/to/wordpress/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/asset-manager.class.php on line 367

    Please feel free to ask for any information I can provide.
    Thanks in advance for your reply.

    Best,
    Daniel

    #1155660

    Hi dan_at_apaway,

    Are you getting the error all the time? Which Enfold are you running?

    Best regards,
    Victoria

    #1156174

    Hi Victoria,
    thank you very much for your reply! I am running Enfold version 4.6.3.1
    I used to see the error every time, yes. However, I managed to fix the error by replacing line 367 (public function get_file_content(…)) from:

    $new_content = file_get_contents( $check_path );

    to:

    $new_content = file_get_contents( $path );

    The error is gone, i.e. import does work. I also do not get any errors in the development console.
    But I don’t know if I might have broken some dependencies?

    Thank you in advance for your help.

    Best,
    Daniel

    #1156718

    Hi Daniel,

    Glad you got it working for you! :)

    Do you have any 404 on the front-end?

    If you need further assistance please let us know.

    Best regards,
    Victoria

    #1157870

    Hello Victoria,

    thanks for your reply. No 404 was displayed yet.

    Best regards,
    Daniel

    #1159532

    Hi,

    @Chili2908
    & @dan_at_apaway
    Is this modification still working without error?

    Best regards,
    Mike

    #1160630

    Hi Mike,
    until now, it is. I did not update Enfold after the modification, however.
    Best regards,
    Daniel

    #1160764

    Hi Daniel,

    Are you using the child theme? If not, the update will overwrite the changes. So you might consider switching to the child theme.

    Best regards,
    Victoria

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.