Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: addlife on February 22, 2019, 04:07:11 PM

Title: 8192: Function create_function() is deprecated ?
Post by: addlife on February 22, 2019, 04:07:11 PM
Hello I recently checked my error log and I found like 40,000 of these errors


8192: Function create_function() is deprecated

File: /public_html/Sources/Subs.php

It just varies by the line number.

Any idea what it could be?
Should I attach that file?
Title: Re: 8192: Function create_function() is deprecated ?
Post by: @rjen on February 22, 2019, 04:09:19 PM
I guess you are on PHP version 7.2? SMF 2.0 is not compatible with 7.2.
Downgrade your server to PHP 7.1
Title: Re: 8192: Function create_function() is deprecated ?
Post by: addlife on February 22, 2019, 04:12:00 PM
Quote from: @rjen on February 22, 2019, 04:09:19 PM
I guess you are on PHP version 7.2? SMF 2.0 is not compatible with 7.2.
Downgrade your server to PHP 7.1
Aha thanks

I thought it was something to do with that. I'll try to change it. Anything I should be aware of before I try to login to my hosting account to try to change it?
Title: Re: 8192: Function create_function() is deprecated ?
Post by: addlife on February 22, 2019, 04:20:49 PM
I just changed it to php 7.1 and I don't see any more of those errors popping up.

Thanks