After years of running smoothly, today I got an error and code is not working, could anyone help?

[ad_1]

Hi everyone,

Have read multiple subreddits and similar posts but suggestions it didn’t work.

I have a theme that has run smoothly for years, updated accordingly. Last Friday I got an error where WordPress pulls the frontend offline while at the back, nothing is directly visible. When I update everything accordingly or run a back-up, the initial error resolves and another one pops up. First it was a /aboutus.php page (which I didn’t have) then it was a widget.

Now I get this error:

​

Error Details
=============
An error of type E\_ERROR was caused in line 107 of the file /customers/d/f/8/superfamily.nl/httpd.www/wp-content/themes/kindergarten/inc/widget/latestpost-widget.php. Error message: Uncaught Error: Call to undefined function create\_function() in /customers/d/f/8/superfamily.nl/httpd.www/wp-content/themes/kindergarten/inc/widget/latestpost-widget.php:107
Stack trace:
\#0 /customers/d/f/8/superfamily.nl/httpd.www/wp-content/themes/kindergarten/functions.php(166): require\_once()
\#1 /customers/d/f/8/superfamily.nl/httpd.www/wp-settings.php(585): include(‘/customers/d/f/…’)
\#2 /customers/d/f/8/superfamily.nl/httpd.www/wp-config.php(107): require\_once(‘/customers/d/f/…’)
\#3 /customers/d/f/8/superfamily.nl/httpd.www/wp-load.php(50): require\_once(‘/customers/d/f/…’)
\#4 /customers/d/f/8/superfamily.nl/httpd.www/wp-admin/admin.php(34): require\_once(‘/customers/d/f/…’)
\#5 /customers/d/f/8/superfamily.nl/httpd.www/wp-admin/edit.php(10): require\_once(‘/customers/d/f/…’)
\#6 {main}
  thrown

How could I resolve this? Any ideas?

Thanks!

[ad_2]
2 Comments
  1. It could have to do with the version of php being upgraded to 8.x. The php function create_function was depreciated with 7.2 and removed with 8.0. If this is something you programmed yourself, you should be able to fix it in your source files.

  2. What theme are you using (“kindergarten” – where did you get it?) and what version of it do you have? It hasn’t been updated to work with newer versions of PHP.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer