Site offline due to error in php files


#1

Dear

My site is offline because of some errors in some php files.
These are the rror messages I get:

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Solon_Recent_Posts has a deprecated constructor in /customers/d/1/2/lambikstoempers.be/httpd.www/wp-content/themes/solon/widgets/recent-posts.php on line 3 Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Solon_Video_Widget has a deprecated constructor in /customers/d/1/2/lambikstoempers.be/httpd.www/wp-content/themes/solon/widgets/video-widget.php on line 3 Notice: The called constructor method for WP_Widget in Solon_Recent_Posts is deprecated since version 4.3.0! Use __construct() instead. in /customers/d/1/2/lambikstoempers.be/httpd.www/wp-includes/functions.php on line 3767 Notice: The called constructor method for WP_Widget in Solon_Video_Widget is deprecated since version 4.3.0! Use __construct() instead. in /customers/d/1/2/lambikstoempers.be/httpd.www/wp-includes/functions.php on line 3767

Can someone help me what I need to do or update the theme to get rid of these errors?

Many thanks


#2

Hello Wicky,

These are just warnings and you don’t have to worry about them.

You just have to set WP_DEBUG constant to false in wp-config.php file. You can read about debugging in WordPress here.

Please feel free to ask any other questions that you might have.

Kind Regards, Roman.


#3

Hello Roman

WP_DEBUG was on false. I have turned it on to see why our site wasn’t online. The problem is that when I activate the Solon Theme, our site is offline with a 500-error. If I delete the theme and activate another, the site is back online. So ignoring them isn’t an options right now :slight_smile:
So I don’t know what to do…

Kind Regards


#4

Can you please try to re-install the Solon theme?

I have just checked, it works well on my localhost.

Kind Regards, Roman.


#5

P. S.
Also, regarding 500 error, please check this link:


#6

Hello Roman

I just reinstalled the theme and it is working again.

Thanks for the help!


#7

You are welcome!

I’m glad that it’s working again.

Have a nice day :slight_smile:

Kind Regards, Roman.