If the database takes several gigabytes, updating SMF (for example, from 1.1.21 to 2.1.3) takes a long time. And what's most unfortunate is that you have to periodically use manual labor on "Click here to try again".
Increasing the number in $timeLimitThreshold does not help much.
Updating through the command line also periodically stops.
A little Python script can come to the rescue.
I wrote it in a few minutes. The forum will now be updated automatically. It's easy to use. :)
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
browser = webdriver.Edge()
browser.get("https://smf.com/upgrade.php")
wait = WebDriverWait(browser, 10)
while True:
try:
button = browser.find_element(By.CSS_SELECTOR, "div#error_message a")
button.click()
except:
pass
while True:
pass
You can replace Edge with Chrome or another browser.
Me, I use the command line to run the upgrade, no timeouts there... but yeah, neat trick with Selenium.
I suppose I've been spoiled by using Softaculous! :P
Softaculous and every other one-click installer are terrible... they often overwrite your system customizations using the "full upgrade" version of the software
Quote from: Arantor on March 04, 2023, 05:04:19 PMMe, I use the command line to run the upgrade, no timeouts there... but yeah, neat trick with Selenium.
How do you use the command line to upgrade your big forum? I was the same problem, but now I can't use the
Find and repair any errors, because I receive timeouts.
You can run the upgrader from the command line. Find/repair is not available from command line though.
Quote from: marcimila on March 12, 2023, 07:05:59 AMHow do you use the command line to upgrade your big forum?
https://wiki.simplemachines.org/smf/Upgrading#Upgrading_Using_the_Command_Line