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.
| Comment | File | Size | Author |
|---|---|---|---|
| phpinfo_memory_limit.png | 20.09 KB | Saoirse1916 | |
| drupal_memory_limit.png | 44.4 KB | Saoirse1916 |
Comments
Comment #2
Saoirse1916 commentedComment #3
cilefen commentedThank you for reporting an issue and for trying Drupal 8!
How are you sure your memory limit is 128 for this site?
Comment #4
cilefen commentedCreate a temporary phpinfo.php file in the directory in which you installed Drupal with:
.. and check the value.
Comment #5
Saoirse1916 commentedYes, I made sure to check that first -- see attachment labeled phpinfo_memory_limit.png
Comment #6
cilefen commentedIs that phpinfo output from the same directory as Drupal's index.php?
Comment #7
Saoirse1916 commentedYes, exactly.
Comment #8
cilefen commentedIn install.php, this is done to check the memory limit:
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.Comment #9
cilefen commentedComment #14
cilefen commented