Tagged: child theme, Error Message, file_get_contents, Php error, style.css
-
AuthorPosts
-
November 5, 2019 at 2:27 pm #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!
November 6, 2019 at 5:49 am #1154164Hey Chili2908,
Thanks for the login details and sorry for the problem. When does this message appear?
Best regards,
RikardNovember 7, 2019 at 2:20 pm #1154649Hi 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!
November 8, 2019 at 6:29 am #1154857Hi,
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,
RikardNovember 8, 2019 at 5:14 pm #1155065Hey 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- This reply was modified 5 years ago by dan_at_apaway.
November 11, 2019 at 4:41 pm #1155660Hi dan_at_apaway,
Are you getting the error all the time? Which Enfold are you running?
Best regards,
VictoriaNovember 12, 2019 at 9:28 pm #1156174Hi 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,
DanielNovember 14, 2019 at 12:02 pm #1156718Hi 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,
VictoriaNovember 18, 2019 at 1:16 pm #1157870Hello Victoria,
thanks for your reply. No 404 was displayed yet.
Best regards,
DanielNovember 24, 2019 at 12:48 am #1159532Hi,
@Chili2908 & @dan_at_apaway
Is this modification still working without error?Best regards,
MikeNovember 27, 2019 at 2:23 pm #1160630Hi Mike,
until now, it is. I did not update Enfold after the modification, however.
Best regards,
DanielNovember 27, 2019 at 6:59 pm #1160764Hi 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 -
AuthorPosts
- You must be logged in to reply to this topic.