Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted February 14Feb 14 I am trying to update my community, and I am constantly getting the error:Class IPS\core\setup\upg_107795\Upgrade could not be loaded. Ensure it is in the correct namespace. #0 [internal function]: IPS\IPS::errorHandler(256, 'Class IPS\\core\\...', '/home/gorillaho...', 749) #1 /home/***/public_html/forum.***.it/init.php(749): trigger_error('Class IPS\\core\\...', 256) #2 [internal function]: IPS\IPS::autoloader('IPS\\core\\setup\\...') #3 /home/***/public_html/forum.***.it/applications/core/sources/Setup/Upgrade.php(629): class_exists('\\IPS\\core\\setup...') #4 /home/***/public_html/forum.***.it/applications/core/sources/Setup/Upgrade.php(369): IPS\core\Setup\Upgrade->step1(Array) #5 /home/***/public_html/forum.***.it/applications/core/modules/setup/upgrade/upgrade.php(60): IPS\core\Setup\Upgrade->process(Array) #6 /home/***/public_html/forum.***.it/system/Helpers/MultipleRedirect/MultipleRedirect.php(104): IPS\core\modules\setup\upgrade\upgrade->IPS\core\modules\setup\upgrade\{closure}(Array) #7 /home/***/public_html/forum.***.it/applications/core/modules/setup/upgrade/upgrade.php(45): IPS\Helpers\MultipleRedirect->__construct(Object(IPS\Http\Url), Object(Closure), Object(Closure)) #8 /home/***/public_html/forum.***.it/system/Dispatcher/Controller.php(139): IPS\core\modules\setup\upgrade\upgrade->manage() #9 /home/***/public_html/forum.***.it/system/Dispatcher/Setup.php(261): IPS\Dispatcher\Controller->execute() #10 /home/***/public_html/forum.***.it/admin/upgrade/index.php(38): IPS\Dispatcher\Setup->run() #11 {main} /home/***/public_html/forum.***.it/init.php::749 Retry? ContinueThe only query it asked me to run manually:ALTER TABLE `xipb_core_api_logs` ADD( KEY `cleanup` (`response_code`,`date`) );Server version: 8.0.41-0ubuntu0.24.04.1 - (Ubuntu)PHP: 8.2What are the causes of the problem? How can I solve it?
February 14Feb 14 Community Expert Please ensure that all files are present. Additionally, if you're running version 4, PHP 8.2 is not supported. Please use PHP 8.1
February 14Feb 14 Community Expert I am trying to update my community, and I am constantly getting the error:What version are you upgrading from and to what version and by which method? It looks like the files haven't been overwritten properly.
February 14Feb 14 Community Expert Solution @Jim M It's a bug. The file was included in 5.0.1 after being imported from v4, but the class was not renamed to remove the underscore (which is not used in v5):/** * 4.7.20 Beta 1 Upgrade Code */ class _Upgrade
February 15Feb 15 Author I confirm what @teraßyte said, by removing the underscore, the upgrade was successful.applications\core\setup\upg_107795\upgrade.php