Problema aggiornamento a Drupal 10
Come da titolo, sto tentando di aggiornare a d10 senza successo.
Premetto che sto facendo l’aggiornamento manuale perché il sito è troppo vecchio e, in ogni caso, non saprei come muovermi con composer. Sono quasi vent’anni che vado avanti così. Finora, in un modo o nell’altro ero sempre riuscito a venirne fuori.
Per facilitare l’aggiornamento ho ripristinato il tema Olivero e ho disinstallato tutti i moduli non essenziali. Sono partito dalla 10.0.1 e non ci sono nemmeno arrivato.
Non ho proprio idea di come muovermi.
Questo è l’errore riscontrato:
[20-Apr-2024 08:51:23 Europe/Rome] Uncaught PHP Exception TypeError: "Drupal\Core\Render\Renderer::doTrustedCallback(): Argument #1 ($callback) must be of type callable, array given, called in /home/hmcpdbiy/public_html/core/lib/Drupal/Core/Render/Renderer.php on line 788" at /home/hmcpdbiy/public_html/core/lib/Drupal/Core/Security/DoTrustedCallbackTrait.php line 51 [20-Apr-2024 08:51:23 Europe/Rome] TypeError: Drupal\Core\Render\Renderer::doTrustedCallback(): Argument #1 ($callback) must be of type callable, array given, called in /home/hmcpdbiy/public_html/core/lib/Drupal/Core/Render/Renderer.php on line 788 in /home/hmcpdbiy/public_html/core/lib/Drupal/Core/Security/DoTrustedCallbackTrait.php on line 51 #0 /home/hmcpdbiy/public_html/core/lib/Drupal/Core/Render/Renderer.php(788): Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_ren...', 'exception', 'Drupal\\Core\\Ren...') #1 /home/hmcpdbiy/public_html/core/lib/Drupal/Core/Render/Renderer.php(374): Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) #2 /home/hmcpdbiy/public_html/core/lib/Drupal/Core/Render/Renderer.php(446): Drupal\Core\Render\Renderer->doRender(Array) #3 /home/hmcpdbiy/public_html/core/lib/Drupal/Core/Render/Renderer.php(204): Drupal\Core\Render\Renderer->doRender(Array, true) #4 /home/hmcpdbiy/public_html/core/lib/Drupal/Core/Render/Renderer.php(160): Drupal\Core\Render\Renderer->render(Array, true) #5 /home/hmcpdbiy/public_html/core/lib/Drupal/Core/Render/Renderer.php(580): Drupal\Core\Render\Renderer->Drupal\Core\Render\{closure}() #6 /home/hmcpdbiy/public_html/core/lib/Drupal/Core/Render/Renderer.php(159): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure)) #7 /home/hmcpdbiy/public_html/core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php(346): Drupal\Core\Render\Renderer->renderPlain(Array) #8 /home/hmcpdbiy/public_html/core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php(203): Drupal\Core\Render\HtmlResponseAttachmentsProcessor->renderHtmlResponseAttachmentPlaceholders(Object(Drupal\Core\Render\HtmlResponse), Array, Array) #9 /home/hmcpdbiy/public_html/core/lib/Drupal/Core/Render/BareHtmlPageRenderer.php(72): Drupal\Core\Render\HtmlResponseAttachmentsProcessor->processAttachments(Object(Drupal\Core\Render\HtmlResponse)) #10 /home/hmcpdbiy/public_html/core/lib/Drupal/Core/ProxyClass/Render/BareHtmlPageRenderer.php(76): Drupal\Core\Render\BareHtmlPageRenderer->renderBarePage(Array, Object(Drupal\Core\StringTranslation\TranslatableMarkup), 'maintenance_pag...', Array) #11 /home/hmcpdbiy/public_html/core/lib/Drupal/Core/EventSubscriber/MaintenanceModeSubscriber.php(156): Drupal\Core\ProxyClass\Render\BareHtmlPageRenderer->renderBarePage(Array, Object(Drupal\Core\StringTranslation\TranslatableMarkup), 'maintenance_pag...') #12 [internal function]: Drupal\Core\EventSubscriber\MaintenanceModeSubscriber->onMaintenanceModeRequest(Object(Symfony\Component\HttpKernel\Event\ExceptionEvent), 'site.maintenanc...', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher)) #13 /home/hmcpdbiy/public_html/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): call_user_func(Array, Object(Symfony\Component\HttpKernel\Event\ExceptionEvent), 'site.maintenanc...', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher)) #14 /home/hmcpdbiy/public_html/core/lib/Drupal/Core/EventSubscriber/MaintenanceModeSubscriber.php(123): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object(Symfony\Component\HttpKernel\Event\ExceptionEvent), 'site.maintenanc...') #15 [internal function]: Drupal\Core\EventSubscriber\MaintenanceModeSubscriber->onKernelRequestMaintenance(Object(Symfony\Component\HttpKernel\Event\ExceptionEvent), 'kernel.exceptio...', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher)) #16 /home/hmcpdbiy/public_html/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): call_user_func(Array, Object(Symfony\Component\HttpKernel\Event\ExceptionEvent), 'kernel.exceptio...', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher)) #17 /home/hmcpdbiy/public_html/vendor/symfony/http-kernel/HttpKernel.php(221): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object(Symfony\Component\HttpKernel\Event\ExceptionEvent), 'kernel.exceptio...') #18 /home/hmcpdbiy/public_html/vendor/symfony/http-kernel/HttpKernel.php(89): Symfony\Component\HttpKernel\HttpKernel->handleThrowable(Object(TypeError), Object(Symfony\Component\HttpFoundation\Request), 1) #19 /home/hmcpdbiy/public_html/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #20 /home/hmcpdbiy/public_html/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #21 /home/hmcpdbiy/public_html/core/modules/page_cache/src/StackMiddleware/PageCache.php(191): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #22 /home/hmcpdbiy/public_html/core/modules/page_cache/src/StackMiddleware/PageCache.php(128): Drupal\page_cache\StackMiddleware\PageCache->fetch(Object(Symfony\Component\HttpFoundation\Request), 1, true) #23 /home/hmcpdbiy/public_html/core/modules/page_cache/src/StackMiddleware/PageCache.php(82): Drupal\page_cache\StackMiddleware\PageCache->lookup(Object(Symfony\Component\HttpFoundation\Request), 1, true) #24 /home/hmcpdbiy/public_html/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #25 /home/hmcpdbiy/public_html/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #26 /home/hmcpdbiy/public_html/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #27 /home/hmcpdbiy/public_html/core/lib/Drupal/Core/DrupalKernel.php(681): Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #28 /home/hmcpdbiy/public_html/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #29 {main}
Avete qualche suggerimento?
ciao e grazie
bgiordy
http://www.gmpe.it/
Risposte
installa composer con
installa composer
con composer installa upgrade status
https://www.drupal.org/project/upgrade_status
vedi che ti dice...
cmq avevano promesso che da 8 in poi sarebbe stato facile fare gli upgrade, invece una cippa!!!
Nel mio piano di hosting non
Nel mio piano di hosting non è previsto l'uso di composer.
Sto rifacendo il sito da 0, ma ho grossi problemi nel migrare i contenuti. Devo fare tutto manualmente.
Ci metterò qualche mese, ma non ho fretta.
ciao e grazie
installati il sito in locale,
installati il sito in locale, sul tuo pc... con composer.
o cambia hosting. deve essere uno spazio vecchio se non hai possibilità di usare composer.
Ho detto che faccio il sito
Ho detto che faccio il sito da 0 in un sottodominio. Non voglio più aggiornare quello vecchio.
Composer è previsto su un piano di hosting diverso e il proprietario del sito non intende cambiarlo. Con questo piano viene sfruttato solo il 20% delle risorse, figurarsi se ne prendono uno più grande. E i soldi dove li trovano?
ciao