wet-boew / wet-boew-drupal

Drupal variant of the Web Experience Toolkit (WET)
136 stars 74 forks source link

Unable to add a view #1917

Closed AlexCreamer closed 6 years ago

AlexCreamer commented 6 years ago

On a fresh install, when I try to add a view, I get the following error: The website encountered an unexpected error. Please try again later.

Here's my stack: PHP: 7.1.13 Apache: 2.4.10 MySQL: Ver 14.14 Distrib 5.7.20 Distro: Ubuntu 17.10 Wetkit: 7.x-4.18

I have Drupal WET inside a Docker container as well.

AlexCreamer commented 6 years ago

Here's an error message I'm getting in my dblog:

  | Error: Cannot use assign-op operators with string offsets in wetkit_ember_menu_local_tasks() (line 86 of /var/www/html/profiles/wetkit/themes/wetkit_ember/template.php).
-- | --
AlexCreamer commented 6 years ago

After checking another dblog I was able to load any pages anymore. So I restarted the docker service and now I get this as an error:

PDOException: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known in db_table_exists() (line 2820 of /var/www/html/includes/database/database.inc).
AlexCreamer commented 6 years ago

Oh this is because I'm db container was down. Let me fix that first.

AlexCreamer commented 6 years ago

Ok fixed. Still unable to add a view.

AlexCreamer commented 6 years ago

Here's a couple extra error messages I'm getting in my dblog

Warning: Illegal string offset '#prefix' in wetkit_ember_menu_local_tasks() (line 85 of /var/www/html/profiles/wetkit/themes/wetkit_ember/template.php).
Warning: Illegal string offset '#prefix' in wetkit_ember_menu_local_tasks() (line 86 of /var/www/html/profiles/wetkit/themes/wetkit_ember/template.php).
AlexCreamer commented 6 years ago

I was using PHP 7.1. However PHP 7.0 works.