Hey all !
I've worked with Processwire to create websites for a while now, so I sort of know my way around, but this time I'm stuck.
I've started a migration the other day, following these steps :
install PW
Empty site folder and DB
upload site folder
upload root .htaccess
Upload DB in OVH
empty cache and sessions ( /site/assets/cache/*/*.* & /site/assets/sessions/*/*.*)
update site/config.php (DB + httpHosts)
This worked at first, only admin url would return a fatal error with a list of missing modules. It appeared that the DB was the problem. Then I tried again but with reuploading the BD from new pw installation, with BDbackup module. This created reverse situation, admin working, but website returning same error, which is :
Erreur fatale: Uncaught TypeError: LanguageTranslator::textdomainTemplate(): Argument #3 ($translations) must be of type array, null given, called in wire/modules/LanguageSupport/LanguageTranslator.php on line 514 and defined in wire/modules/LanguageSupport/LanguageTranslator.php:138
#0 wire/modules/LanguageSupport/LanguageTranslator.php (514): LanguageTranslator->textdomainTemplate(NULL, NULL, NULL)
#1 wire/modules/LanguageSupport/LanguageTranslator.php (338): LanguageTranslator->loadTextdomain('wire--modules--...')
#2 wire/modules/LanguageSupport/LanguageTranslator.php (312): LanguageTranslator->___getTranslation('wire--modules--...', 'Name', '')
#3 wire/core/LanguageFunctions.php (210): LanguageTranslator->getTranslation('/home/macbwberw...', 'Name', '')
#4 wire/modules/Inputfield/InputfieldName.module (16): __('Name', '/home/macbwberw...')
#5 [internal function]: InputfieldName::getModuleInfo()
#6 wire/core/Modules.php (2752): call_user_func(Array)
#7 wire/core/Modules.php (3026): Modules->getModuleInfoInternal('InputfieldName', '\')
#8 wire/core/Modules.php (5157): Modules->getModuleInfo('InputfieldName', Array)
#9 wire/core/Modules.php (572): Modules->saveModuleInfoCache()
#10 wire/core/ProcessWire.php (755): Modules->triggerInit()
#11 wire/core/Wire.php (413): ProcessWire->___init()
#12 wire/core/WireHooks.php (952): Wire->_callMethod('___init', Array)
#13 wire/core/Wire.php (484): WireHooks->runHooks(Object(ProcessWire), 'init', Array)
#14 wire/core/ProcessWire.php (889): Wire->__call('init', Array)
#15 wire/core/ProcessWire.php (645): ProcessWire->__call('init', Array)
#16 wire/core/ProcessWire.php (593): ProcessWire->setStatus(2)
#17 wire/core/ProcessWire.php (315): ProcessWire->load(Object(Config))
#18 index.php (52): ProcessWire->__construct(Object(Config))
#19 {main}
thrown (ligne 138 de wire/modules/LanguageSupport/LanguageTranslator.php)
Ce message d'erreur apparaît car : vous êtes connecté en tant que Superuser. L'erreur a été enregistré dans l'historique.
The wierd part is, when a page returns that error, it triggers all the pages (that used to work a second before) to do te same, and nothing works at all.
Did I miss something in migration of the modules ?
Does that feel familiar to anybody ?
Any magic solutions I haven't thought of ?