Problem/Motivation
1.Install Theme
2.Go to Appearance settings
3.Select Potent Allure
following error:
The website encountered an unexpected error. Please try again later.
Error: Call to undefined function drupal_get_path() in potent_allure_form_system_theme_settings_alter() (line 422 of themes\contrib\potent_allure\theme-settings.php).
Drupal\system\Form\ThemeSettingsForm->buildForm(Array, Object, 'potent_allure')
call_user_func_array(Array, Array) (Line: 536)
Drupal\Core\Form\FormBuilder->retrieveForm('system_theme_settings', Object) (Line: 283)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 583)
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: 166)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 74)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
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: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 704)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
Comments
Comment #2
roshni27 commentedI have install and set default to theme.
I have no error. it is working for me .i have share the screenshot please check.
Comment #3
coaston commentedHi your printscreens are different. You havent navigated to Apperance settings where you can change color of theme for example.
Comment #4
roshni27 commentedHello coaston ,
I found the issue. Thanks
I will work on this.
Comment #5
roshni27 commentedPlease review the patch.
Comment #6
keshavv commentedHello, @roshni27
I am able to reproduce the issue and your patch #5 is working well.
We can merge it.
Moving to RTBC.
Thank you.
Comment #7
vijaysharma_89 commentedComment #10
vijaysharma_89 commentedThanks for your contribution.
Comment #11
vijaysharma_89 commented