• Welcome to Simple Machines Community Forum. Please login or sign up.

Trouble with Upgrade to SMF 2.0.18

Started by JCI Hostdev, July 15, 2021, 07:31:58 AM

Previous topic - Next topic

JCI Hostdev

July 15, 2021, 07:31:58 AM Last Edit: July 15, 2021, 08:01:13 AM by JCI Hostdev
Hi,

I recently ran into an issue with my client's forum no longer loading with an error about magic_quotes, which upon my research seems like an issue with newer versions of PHP that my host uses. So I decided to upgrade to the latest SMF (I was still on 1.1.18), and ran into issues. My installer will freeze at the start and put out an 'unknown' error.

I can no longer operate the site. I tried to restore an earlier backup and it just goes back to the issue about magic_quotes.

EDIT:

Okay, I hacked the install by overwriting the classic Themes folder, but I'm now just getting a white screen when loading my page.

Aleksi "Lex" Kilpinen

Have you looked at your error logs, what is the exact error message?
A Finnish Project Manager (Support Specialist)
 Happily running multiple SMF 2.x installations.
  Fooling around with i7-10700 @ 2,90GHz-4.80GHz / 16Gb / RTX-2070 Super / 3840x2160 / Win 10 x64


How you can help SMF

"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

JCI Hostdev

Nothing logged in error_log file in the forum folder.

Aleksi "Lex" Kilpinen

Well, usually a white screen equals a HTTP 500 error, and those are usually logged in pretty good detail.
The error you first got might be related to a PHP setting that SMF requires to be off.
https://wiki.simplemachines.org/smf/SMF2.0:Requirements_and_recommendations
Code (From Requirements) Select

The magic_quotes_sybase directive must be set to Off.

What version did you upgrade to specifically, and what PHP version are you running specifically?
A Finnish Project Manager (Support Specialist)
 Happily running multiple SMF 2.x installations.
  Fooling around with i7-10700 @ 2,90GHz-4.80GHz / 16Gb / RTX-2070 Super / 3840x2160 / Win 10 x64


How you can help SMF

"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

JCI Hostdev

According my cPanel, it's PHP 7.4.

I didn't change anything when the forum stopped working, though. I guess it's mostly my host just updating PHP to the latest as they see fit, if the statement of the host support person earlier about them keeping PHP up-to-date is to be believed.

This is what my PHP.INI looks like right now:


allow_url_fopen = On
display_errors = On
enable_dl = Off
file_uploads = On
max_execution_time = 30
max_input_time = 60
max_input_vars = 1000
memory_limit = 256M
post_max_size = 516M
session.gc_maxlifetime = 1440
session.save_path = "/var/cpanel/php/sessions/ea-php74"
upload_max_filesize = 512M
zlib.output_compression = On
magic_quotes_sybase = Off
engine = On
upload_tmp_dir = ""
fileinfo = On


I added the last 4 lines as per the guide.

Aleksi "Lex" Kilpinen

Could you give a link to your forum?
A Finnish Project Manager (Support Specialist)
 Happily running multiple SMF 2.x installations.
  Fooling around with i7-10700 @ 2,90GHz-4.80GHz / 16Gb / RTX-2070 Super / 3840x2160 / Win 10 x64


How you can help SMF

"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

JCI Hostdev

hxxp:josecarilloforum.com/forum [nonactive]

Aleksi "Lex" Kilpinen

Yeah, alright - It's a pure blank page, no contents at all even in source, so your best bet right now would be to try and find an error log that tells you why. A pure blank page is usually either a PHP error or some other HTTP 500 error.
https://wiki.simplemachines.org/smf/What_the_white_screen_of_death_means

You can also try running repair_settings.php and the setting "Set SMF default theme as overall forum default for all users" to try and force the forum to use the 2.0 default theme if it was correctly uploaded.
What is repair_settings.php?

EDIT:
Of course, this is assuming the forum was upgraded to 2.0 and not reversed to a 1.1 backup. 1.1 on PHP 7 won't work and that's clear.
A Finnish Project Manager (Support Specialist)
 Happily running multiple SMF 2.x installations.
  Fooling around with i7-10700 @ 2,90GHz-4.80GHz / 16Gb / RTX-2070 Super / 3840x2160 / Win 10 x64


How you can help SMF

"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

JCI Hostdev

Forcing the Default theme seems to have worked! Thank you!

Aleksi "Lex" Kilpinen

You're welcome! :) Now make sure to get rid of the broken themes.
A Finnish Project Manager (Support Specialist)
 Happily running multiple SMF 2.x installations.
  Fooling around with i7-10700 @ 2,90GHz-4.80GHz / 16Gb / RTX-2070 Super / 3840x2160 / Win 10 x64


How you can help SMF

"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

JCI Hostdev

Quick question: is the default theme just the one named 'Default'?

Because the 2.0.18 installer seemed to use Classic.

Aleksi "Lex" Kilpinen

Yeah, the default theme is called Curve, or Default - in the filestructure it is Themes/default
A Finnish Project Manager (Support Specialist)
 Happily running multiple SMF 2.x installations.
  Fooling around with i7-10700 @ 2,90GHz-4.80GHz / 16Gb / RTX-2070 Super / 3840x2160 / Win 10 x64


How you can help SMF

"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

Advertisement: