News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

error in my localhost forum (Deprecated: Required parameter)

Started by GPL2819, April 04, 2021, 09:25:49 AM

Previous topic - Next topic

GPL2819

Hello,
I have install XAMPP for Windows 8.0.3 on my computer, and install the smf 2.0.18, and everything was working perfect.
Today I can't access my local forum, I got this error:

Deprecated: Required parameter $table follows optional parameter $method in C:\xampp\htdocs\123\Sources\Subs-Db-mysql.php on line 1456
Deprecated: Required parameter $columns follows optional parameter $method in C:\xampp\htdocs\123\Sources\Subs-Db-mysql.php on line 1456
Deprecated: Required parameter $data follows optional parameter $method in C:\xampp\htdocs\123\Sources\Subs-Db-mysql.php on line 1456
Deprecated: Required parameter $keys follows optional parameter $method in C:\xampp\htdocs\123\Sources\Subs-Db-mysql.php on line 1456
Warning: Trying to access array offset on value of type null in C:\xampp\htdocs\123\Sources\Subs-Db-mysql.php on line 1286
Table '.\smf_2fyt4\rcz_settings' is marked as crashed and last (automatic?) repair failed


what shall I do to fix it?
I need to get my forum back.

GPL2819

Hello again,
Is my problem not clear, or is my question stupid?
There are 1,867 Views until now, and no one can help me solve my problem.
That is Wired.

shadav

i have no idea sorry but a quick google search suggests you are trying to use php8
smf is not made to work with php8 (though most tests have shown that it will), smf was made to work with php7.4 if you are using smf 2.1rcx or smf 2.0.18
if your smf is a lower version then you have to use php that goes to that version 7.2 is usually a safe bet

GPL2819

Quote from: shadav on April 08, 2021, 06:16:17 PM
i have no idea sorry but a quick google search suggests you are trying to use php8
smf is not made to work with php8 (though most tests have shown that it will), smf was made to work with php7.4 if you are using smf 2.1rcx or smf 2.0.18
if your smf is a lower version then you have to use php that goes to that version 7.2 is usually a safe bet

I am using SMF 2.0.18, and I checked what I install according to your reply.
QuoteXAMPP 8.0.3 includes: Apache 2.4.46, MariaDB 10.4.18, PHP 8.0.3, phpMyAdmin 5.1.0, OpenSSL 1.1.1, XAMPP Control Panel 3.2.4, Webalizer 2.23-04, Mercury Mail Transport System 4.63, FileZilla FTP Server 0.9.41, Tomcat 7.0.108 (with mod_proxy_ajp as connector), Strawberry Perl 5.32.0.1 Portable
So, I have PHP 8.0.3, and I have read the SMF requirements on this page: https://download.simplemachines.org/requirements.php
They say PHP 5.4.0 or higher.
So, the problem is from the PHP version?

Aleksi "Lex" Kilpinen

PHP 8.0.3 was released like a month ago. SMF 2.0.18 actually predates it. You may want to try PHP 7.4.
Slava
Ukraini!


"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

shadav

that page is more in general info (though yes maybe it should be edited to add the highest php that will work but then again that depends on which version of smf that you use)

this might help more, with each new release an announcement is made listing it's specifics.
https://www.simplemachines.org/community/index.php?topic=576577.0


Advertisement: