Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
That variable is not set and the update fails either because of this or some other reason.
Notice: Undefined variable: optional_install_path in varbase_core_optional_update_8701() (line 360 of modules/contrib/varbase_core/varbase_core.install).
varbase_core_optional_update_8701() (Line: 70)
varbase_update_helper_checklistapi_form_submit(Array, Object)
call_user_func_array('varbase_update_helper_checklistapi_form_submit', Array) (Line: 111)
Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object) (Line: 51)
Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object) (Line: 590)
Drupal\Core\Form\FormBuilder->processForm('checklistapi_checklist_form', Array, Object) (Line: 319)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 93)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 582)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 151)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 68)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 67)
Drupal\simple_oauth\HttpMiddleware\BasicAuthSwap->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 693)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
Comments
Comment #2
durum CreditAttribution: durum commentedComment #3
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot for Vardot commentedThank you Durum for reporting,
Have you had a run for "drush updb" or "/update.php" before you try to do the optional updates?
Have you had a look at Handling Configuration Updates ?
Please, have a backup for the site, and do the test update on a local development environment.
It's very important to restore your database if you are testing the update for number of times.
And not to run the optional update twice on the same database
Comment #4
durum CreditAttribution: durum commentedThank you for the answer.
Yes, several times. Just to be sure it tells me that there are no pending updates.
Read the documentation several times. Went through the code before running the updates. Also before doing the update, I saw that
$optional_install_path
wasn't declared. I thought "maybe it is something with php 7 and Drupal 8. And maybe it is declared somewhere else as a constant that I can't be sure of right now". Then I run the update. Snippet below.$optional_install_path
not declared.I am on local dev. Not staged yet.
I did run first time and got the folowing output. Then I run it with
--force
and got the second following output.### Here I run the 8702 and 8703. Similar outputs. Then I forced 8703;
These are not related to the OP but providing info since you asked.
Thanks :)
Comment #5
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot for Vardot commentedThank you Durum again for following more on the issue :)
I confirm the issue
Moving the issue to Varbase Core
This should be a Quick fix with a Quick fix release
Comment #6
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot for Vardot commentedComment #8
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot for Vardot commentedComment #9
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot for Vardot commentedComment #10
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot for Vardot commentedComment #11
durum CreditAttribution: durum commentedRajab, thank you for acting on such short notice. You guys are the best!
Comment #12
bgprior CreditAttribution: bgprior commentedJust tried to update using composer to 8.x-7.4, which (AIUI) exists simply to fix this issue, and got:
Comment #13
bgprior CreditAttribution: bgprior commentedMinor version upgrade (7.4.0) of varbase_update_helper has allowed upgrade of varbase_core to 7.4 for me. Thanks.