Tagged: header logo, theme update
-
AuthorPosts
-
October 4, 2021 at 6:49 pm #1323521
Hi, I’m updating a website with your latest theme version locally before I try it live, so I can’t send you a link. After updating the theme, the site fails to load, with the following PHP error:
WARNING: FILE_GET_CONTENTS(/WP-CONTENT/UPLOADS/2018/07/LOGO_WHITE.PNG): FAILED TO OPEN STREAM: NO SUCH FILE OR DIRECTORY IN C:\WAMP64\WWW\WILDERNESS\WP-CONTENT\THEMES\ENFOLD\FRAMEWORK\PHP\CLASS-SVG-IMAGES.PHP ON LINE 215
There’s a lengthy call stack if that’s any help, here’s the start:
1 0.0002 408344 {main}( ) …\index.php:0
2 0.0003 408616 require( ‘C:\wamp64\www\wilderness\wp-blog-header.php’ ) …\index.php:17
3 1.6848 21823288 require_once( ‘C:\wamp64\www\wilderness\wp-includes\template-loader.php’ ) …\wp-blog-header.php:19
4 1.6988 21905224 include( ‘C:\wamp64\www\wilderness\wp-content\themes\enfold\template-builder.php’ ) …\template-loader.php:106
5 1.6988 21905224 get_header( ) …\template-builder.php:15
6 1.7033 21914408 locate_template( ) …\general-template.php:48
7 1.7034 21914504 load_template( ) …\template.php:716
8 1.7044 21915120 require_once( ‘C:\wamp64\www\wilderness\wp-content\themes\enfold\header.php’ ) …\template.php:770
9 3.0210 24097688 get_template_part( ) …\header.php:242
10 3.0210 24098232 locate_template( ) …\general-template.php:204
11 3.0213 24098344 load_template( ) …\template.php:716
12 3.0345 24099000 require( ‘C:\wamp64\www\wilderness\wp-content\themes\enfold\includes\helper-main-menu.php’ ) …\template.php:772
13 3.0359 24099192 avia_logo( ) …\helper-main-menu.php:151
14 3.0420 24099488 aviaSVGImages->exists_svg_file( ) …\function-set-avia-frontend.php:719
15 3.0458 24099488 file_get_contents ( ) …\class-svg-images.php:215Please let me know if you can help with this, obviously I won’t update the live site until I know it won’t crash. Thank you!
October 5, 2021 at 4:20 am #1323564Hey wildlandtrust,
Which PHP version are you running on your local installation? Would you be able to upload it to a live test site so that we can have a closer look at it?
Best regards,
RikardOctober 5, 2021 at 12:41 pm #1323622Hi!
Thank you for the inquiry.
Please try to replace the content of the class-svg-images.php file to fix the error when uploading an svg file as logo.
Best regards,
IsmaelOctober 5, 2021 at 5:01 pm #1323671Thanks Ismael — your fix worked. I appreciate your help! Will you be adding this to the next theme update?
October 5, 2021 at 5:03 pm #1323672 -
AuthorPosts
- The topic ‘Header logo: no such file or directory ENFOLD\FRAMEWORK\PHP\CLASS-SVG-IMAGES.PHP’ is closed to new replies.