Doing my first Drupal 8 install and I get the PHP memory limit error, indicating that my memory limit is set to 32MB when it's actually set to 128MB. Pushing through the install causes the following error:

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 65552 bytes) in /home/myaccount/public_html/clients/myclient/vendor/symfony/dependency-injection/Container.php on line 198

Backing up to try and re-run the test causes the following series of errors:

Additional uncaught exception thrown while handling exception.

Original

Drupal\Component\Plugin\Exception\PluginNotFoundException: The "user_role" entity type does not exist. in Drupal\Core\Entity\EntityTypeManager->getDefinition() (line 130 of /home/myaccount/public_html/clients/myclient/core/lib/Drupal/Core/Entity/EntityTypeManager.php).

Drupal\Core\Entity\EntityTypeManager->getDefinition('user_role') (Line: 230)
Drupal\Core\Entity\EntityTypeManager->getHandler('user_role', 'storage') (Line: 166)
Drupal\Core\Entity\EntityTypeManager->getStorage('user_role') (Line: 67)
Drupal\Core\Entity\EntityManager->getStorage('user_role') (Line: 210)
Drupal\Core\Session\UserSession->getRoleStorage() (Line: 116)
Drupal\Core\Session\UserSession->hasPermission('access administration pages') (Line: 87)
Drupal\Core\Session\AccountProxy->hasPermission('access administration pages') (Line: 440)
user_template_preprocess_default_variables_alter(Array, NULL, NULL) (Line: 492)
Drupal\Core\Extension\ModuleHandler->alter('template_preprocess_default_variables', Array) (Line: 1209)
_template_preprocess_default_variables() (Line: 1178)
template_preprocess(Array, 'html', Array) (Line: 293)
Drupal\Core\Theme\ThemeManager->render('html', Array) (Line: 438)
Drupal\Core\Render\Renderer->doRender(Array, 1) (Line: 200)
Drupal\Core\Render\Renderer->render(Array, 1) (Line: 144)
Drupal\Core\Render\Renderer->Drupal\Core\Render\{closure}() (Line: 577)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 145)
Drupal\Core\Render\Renderer->renderRoot(Array) (Line: 71)
Drupal\Core\Render\BareHtmlPageRenderer->renderBarePage(Array, Object, 'install_page', Array) (Line: 80)
Drupal\Core\ProxyClass\Render\BareHtmlPageRenderer->renderBarePage(Array, Object, 'install_page', Array) (Line: 986)
install_display_output(Array, Array) (Line: 155)
install_drupal(Object) (Line: 39)
Additional

Drupal\Component\Plugin\Exception\PluginNotFoundException: The "user_role" entity type does not exist. in Drupal\Core\Entity\EntityTypeManager->getDefinition() (line 130 of /home/myaccount/public_html/clients/myclient/core/lib/Drupal/Core/Entity/EntityTypeManager.php).

Drupal\Core\Entity\EntityTypeManager->getDefinition('user_role') (Line: 230)
Drupal\Core\Entity\EntityTypeManager->getHandler('user_role', 'storage') (Line: 166)
Drupal\Core\Entity\EntityTypeManager->getStorage('user_role') (Line: 67)
Drupal\Core\Entity\EntityManager->getStorage('user_role') (Line: 210)
Drupal\Core\Session\UserSession->getRoleStorage() (Line: 116)
Drupal\Core\Session\UserSession->hasPermission('access administration pages') (Line: 87)
Drupal\Core\Session\AccountProxy->hasPermission('access administration pages') (Line: 440)
user_template_preprocess_default_variables_alter(Array, NULL, NULL) (Line: 492)
Drupal\Core\Extension\ModuleHandler->alter('template_preprocess_default_variables', Array) (Line: 1209)
_template_preprocess_default_variables() (Line: 1178)
template_preprocess(Array, 'html', Array) (Line: 293)
Drupal\Core\Theme\ThemeManager->render('html', Array) (Line: 438)
Drupal\Core\Render\Renderer->doRender(Array, 1) (Line: 200)
Drupal\Core\Render\Renderer->render(Array, 1) (Line: 144)
Drupal\Core\Render\Renderer->Drupal\Core\Render\{closure}() (Line: 577)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 145)
Drupal\Core\Render\Renderer->renderRoot(Array) (Line: 71)
Drupal\Core\Render\BareHtmlPageRenderer->renderBarePage(Array, 'Error', 'install_page', Array) (Line: 80)
Drupal\Core\ProxyClass\Render\BareHtmlPageRenderer->renderBarePage(Array, 'Error', 'install_page', Array) (Line: 986)
install_display_output(Array, Array, Array) (Line: 263)
_drupal_log_error(Array, 1) (Line: 559)
_drupal_exception_handler(Object)

Ultimately, just browsing back to the site root causes the following error:

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

At that point, even deleting the database doesn't work - my only solution is to wipe the entire directory (and the database) and start over.

Comments

Saoirse1916 created an issue. See original summary.

Saoirse1916’s picture

Issue summary: View changes
cilefen’s picture

Thank you for reporting an issue and for trying Drupal 8!

How are you sure your memory limit is 128 for this site?

cilefen’s picture

Create a temporary phpinfo.php file in the directory in which you installed Drupal with:

<?php
phpinfo();

.. and check the value.

Saoirse1916’s picture

Yes, I made sure to check that first -- see attachment labeled phpinfo_memory_limit.png

cilefen’s picture

Is that phpinfo output from the same directory as Drupal's index.php?

Saoirse1916’s picture

Yes, exactly.

cilefen’s picture

In install.php, this is done to check the memory limit:

  $memory_limit = ini_get('memory_limit');
  $requirements['php_memory_limit'] = array(
    'title' => t('PHP memory limit'),
    'value' => $memory_limit == -1 ? t('-1 (Unlimited)') : $memory_limit,
  );
  // DRUPAL_MINIMUM_PHP_MEMORY_LIMIT = 64M
  if (!Environment::checkMemoryLimit(DRUPAL_MINIMUM_PHP_MEMORY_LIMIT, $memory_limit)) {
    // complain
  }

ini_get('memory_limit') returns 32 on your system when Drupal's index.php executes and Drupal does in fact appear to run out of RAM. Yet you put a test PHP file in the same directory that reports a different value. This seems more of an issue with the PHP configuration than with Drupal.

cilefen’s picture

Category: Bug report » Support request
Priority: Major » Normal
Status: Active » Postponed (maintainer needs more info)

Version: 8.0.5 » 8.0.x-dev

Core issues are now filed against the dev versions where changes will be made. Document the specific release you are using in your issue comment. More information about choosing a version.

Version: 8.0.x-dev » 8.9.x-dev

Drupal 8.8.7 was released on June 3, 2020 and is the final full bugfix release for the Drupal 8.8.x series. Branches prior to 8.8.x are not supported, and Drupal 8.8.x will not receive any further development aside from security fixes. Sites should prepare to update to Drupal 8.9.0 or Drupal 9.0.0 for ongoing support.

Bug reports should be targeted against the 8.9.x-dev branch from now on, and new development or disruptive changes should be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 8.9.x-dev » 9.2.x-dev

Drupal 8 is end-of-life as of November 17, 2021. There will not be further changes made to Drupal 8. Bugfixes are now made to the 9.3.x and higher branches only. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.2.x-dev » 9.3.x-dev
cilefen’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)