Installation Problem

Created on 3 March 2023, over 1 year ago
Updated 7 March 2023, over 1 year ago

Problem/Motivation

Hi ,
When I install any module from composer or from URL, my Drupal site gives error and does not run.

The website encountered an unexpected error. Please try again later.

Warning: Undefined array key 0 in C:\xampp\htdocs\drupal_10\web\core\lib\Drupal\Core\Utility\Error.php on line 122

Warning: Undefined array key "file" in C:\xampp\htdocs\drupal_10\web\core\includes\errors.inc on line 77

Warning: Undefined array key "line" in C:\xampp\htdocs\drupal_10\web\core\includes\errors.inc on line 78

Steps to reproduce

1.I install a module(view slideshow) through composer
2.Than enable that and refresh the site and its gives some error

API changes

Data model changes

💬 Support request
Status

Closed: outdated

Version

10.1

Component
Other 

Last updated about 7 hours ago

Created by

🇮🇳India AnkitKumar_0909

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @AnkitKumar_0909
  • 🇮🇳India AnkitKumar_0909

    My issue got resolved after searching,
    Step 1.
    first of all for debugging these errors we will add this line in setting.php file

    $config['system.logging']['error_level'] = 'verbose';

    In this type of problem mostly the error occurs "I have received packet bigger than 'max_allowed_packet'" error" or similar so simply
    Step 2.
    you just do one things go to your drupal database and run this query

    SET GLOBAL max_allowed_packet = 1024 * 1024 * 256; By the way your drupal will be running from this step only otherwise
    Step 3.(optional)
    Afterwards, add this setting to my.cnf under the [mysqld] section:

    [mysqld]
    max_allowed_packet = 256M

    Thanks

  • Status changed to Closed: outdated over 1 year ago
  • Setting max_allowed_packet is a well-known and documented platform requirement for Drupal.

Production build 0.71.5 2024