PHP Error After Upgrading to PHP7

Hello,

After upgrading to PHP7 and Apache 4, I have received the following error:

  • Jun 12, 08:49:37 PHP Warning: filemtime(): stat failed for get_stylesheet_directory_uri() . '/custom.css in /home/kimkeithsungjoo/public_html/wp-content/themes/betheme-child/header.php on line 44
This error keeps repeating throughout the day.
The server technicians said:

"Regarding the warnings that you are receiving for the theme you will have to contact the theme developer to fix the issue. Seems like the theme codes are not compatible to the PHP v7 used by the domain."

Please advise how to fix this error.

Thank you

Comments

  • Hello,
    Our theme and wordpress is fully compatible with php version 7.0
    This error appears in the betheme child header file, which was created and modified by you so we would suggest to look into it. Try removing the header.php file and see if it makes a difference.
    thanks
Sign In or Register to comment.