Hallo, I got an error installing Benz as Fresh installation. I followed the instruction like I've done for the other themes: - copied Demo folder into my server - created the db on mysqlserver and executed database.sql - configured apache
The error when launching the site is:
" The website encountered an unexpected error. Please try again later. Error: Class 'Phar' not found in Drupal\dexp_twitter\Access\TwitterOAuth->request() (line 336 of modules/drupalexp/modules/dexp_twitter/src/Access/TwitterOAuth.php). Drupal\dexp_twitter\Access\TwitterOAuth->request('https://api.twitter.com/1.1/statuses/user_timeline.json', 'GET', 'Authorization: OAuth oauth_version="1.0", oauth_nonce="53d2570cccada933045c2d57ba645e70", oauth_timestamp="1531920211", oauth_consumer_key="pgJN3MHj2kK5aK3aYhGe37GK1", oauth_token="806767560301518852-kncU475a0dAzQt0BX5LLIDXsFpW0lue", oauth_signature_method="HMAC-SHA1", oauth_signature="O8RVnhsj6Yni9acbkScnwx%2FZxy0%3D"', Array) (Line: 306) Drupal\dexp_twitter\Access\TwitterOAuth->oAuthRequest('https://api.twitter.com/1.1/statuses/user_timeline.json', 'GET', Array) (Line: 278) Drupal\dexp_twitter\Access\TwitterOAuth->http('GET', 'https://api.twitter.com', 'statuses/user_timeline', Array) (Line: 159) Drupal\dexp_twitter\Access\TwitterOAuth->get('statuses/user_timeline', Array) (Line: 115) Drupal\dexp_twitter\Plugin\Block\DexpTwitterBlock->build() (Line: 203) Drupal\block\BlockViewBuilder::preRender(Array) call_user_func('Drupal\block\BlockViewBuilder::preRender', Array) (Line: 378) Drupal\Core\Render\Renderer->doRender(Array) (Line: 450) Drupal\Core\Render\Renderer->doRender(Array) (Line: 450) Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 195) Drupal\Core\Render\Renderer->render(Array) (Line: 490) Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 56) TwigTemplate_b97b2aa84507c7b25a43bbc9127a13e8fdc7a6d598235846e7211f822b6a88c1->doDisplay(Array, Array) (Line: 432) Twig_Template->displayWithErrorHandling(Array, Array) (Line: 403) Twig_Template->display(Array) (Line: 411) Twig_Template->render(Array) (Line: 64) twig_render_template('themes/drupalexp/templates/section.html.twig', Array) (Line: 384) Drupal\Core\Theme\ThemeManager->render('section', Array) (Line: 437) Drupal\Core\Render\Renderer->doRender(Array) (Line: 450) Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 195) Drupal\Core\Render\Renderer->render(Array) (Line: 490) Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 48) TwigTemplate_81749a9a6649e592d8697b94b3d1fd3ef04af8d269c5039f8ed1716aa9728c18->doDisplay(Array, Array) (Line: 432) Twig_Template->displayWithErrorHandling(Array, Array) (Line: 403) Twig_Template->display(Array) (Line: 411) Twig_Template->render(Array) (Line: 64) twig_render_template('themes/drupalexp/templates/page.html.twig', Array) (Line: 384) Drupal\Core\Theme\ThemeManager->render('page', Array) (Line: 437) Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 195) Drupal\Core\Render\Renderer->render(Array) (Line: 490) Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 112) TwigTemplate_b232bb3aaf528967e774889e4b232b015bed7244fe6d6931f67f4aa7e64165de->doDisplay(Array, Array) (Line: 432) Twig_Template->displayWithErrorHandling(Array, Array) (Line: 403) Twig_Template->display(Array) (Line: 411) Twig_Template->render(Array) (Line: 64) twig_render_template('themes/drupalexp/templates/html.html.twig', Array) (Line: 384) Drupal\Core\Theme\ThemeManager->render('html', Array) (Line: 437) Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 195) Drupal\Core\Render\Renderer->render(Array) (Line: 147) Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent{closure}() (Line: 582) Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 148) Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90) Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object) call_user_func(Array, Object, 'kernel.view', Object) (Line: 111) Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch('kernel.view', Object) (Line: 156) Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 68) Symfony\Component\HttpKernel\HttpKernel->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: 184) Drupal\page_cache\StackMiddleware\PageCache->fetch(Object, 1, 1) (Line: 121) Drupal\page_cache\StackMiddleware\PageCache->lookup(Object, 1, 1) (Line: 75) Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47) Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 50) Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23) Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 664) Drupal\Core\DrupalKernel->handle(Object) (Line: 19) "
How can I resolve this? Thanks!
© Copyright 2013-2017 DrupalExp - All Rights Reserved
Hello,
The error messages means your server does not support CURL. Twitter block requires CURL. Please enable CURL and try again.
Thank you.
Thanks. I enabled CURL but the error is the same.
Any other suggestion? Thanks again!
I've found. I installed Phar module in php and now it works! Thanks for the support!
I've discovered. Phar module was installed in PHP and it now works! Thank you for your help!
kogama squid