Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 2097152 bytes) in /var/www/html/libraries/vendor/php-debugbar/php-debugbar/src/DebugBar/JavascriptRenderer.php on line 1321
Error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 2097152 bytes) (500 Whoops, looks like something went wrong.)

OutOfMemoryError

HTTP 500 Whoops, looks like something went wrong.

Error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 2097152 bytes)

Exception

Symfony\Component\ErrorHandler\Error\ OutOfMemoryError

Show exception properties
Symfony\Component\ErrorHandler\Error\OutOfMemoryError {#39742
  -error: array:5 [
    "type" => 1
    "message" => "Allowed memory size of 134217728 bytes exhausted (tried to allocate 2097152 bytes)"
    "file" => "/var/www/html/libraries/vendor/php-debugbar/php-debugbar/src/DebugBar/JavascriptRenderer.php"
    "line" => 1321
    "trace" => array:8 [
      0 => array:3 [
        "file" => "/var/www/html/libraries/vendor/php-debugbar/php-debugbar/src/DebugBar/JavascriptRenderer.php"
        "line" => 1321
        "function" => "json_encode"
      ]
      1 => array:5 [
        "file" => "/var/www/html/plugins/system/debug/src/JavascriptRenderer.php"
        "line" => 119
        "function" => "getAddDatasetCode"
        "class" => "DebugBar\JavascriptRenderer"
        "type" => "->"
      ]
      2 => array:5 [
        "file" => "/var/www/html/plugins/system/debug/src/Extension/Debug.php"
        "line" => 377
        "function" => "render"
        "class" => "Joomla\Plugin\System\Debug\JavascriptRenderer"
        "type" => "->"
      ]
      3 => array:5 [
        "file" => "/var/www/html/libraries/vendor/joomla/event/src/Dispatcher.php"
        "line" => 454
        "function" => "onAfterRespond"
        "class" => "Joomla\Plugin\System\Debug\Extension\Debug"
        "type" => "->"
      ]
      4 => array:5 [
        "file" => "/var/www/html/libraries/vendor/joomla/application/src/AbstractApplication.php"
        "line" => 99
        "function" => "dispatch"
        "class" => "Joomla\Event\Dispatcher"
        "type" => "->"
      ]
      5 => array:5 [
        "file" => "/var/www/html/libraries/src/Application/CMSApplication.php"
        "line" => 347
        "function" => "dispatchEvent"
        "class" => "Joomla\Application\AbstractApplication"
        "type" => "->"
      ]
      6 => array:5 [
        "file" => "/var/www/html/includes/app.php"
        "line" => 58
        "function" => "execute"
        "class" => "Joomla\CMS\Application\CMSApplication"
        "type" => "->"
      ]
      7 => array:4 [
        "file" => "/var/www/html/index.php"
        "line" => 51
        "args" => array:1 [
          0 => "/var/www/html/includes/app.php"
        ]
        "function" => "require_once"
      ]
    ]
  ]
}
  1. */
  2. protected function getAddDatasetCode($requestId, $data, $suffix = null)
  3. {
  4. $js = sprintf("%s.addDataSet(%s, \"%s\"%s);\n",
  5. $this->variableName,
  6. json_encode($data, JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_QUOT | JSON_HEX_AMP | JSON_INVALID_UTF8_IGNORE),
  7. $requestId,
  8. $suffix ? ", " . json_encode($suffix) : ''
  9. );
  10. return $js;
  11. }

Stack Trace

OutOfMemoryError
Symfony\Component\ErrorHandler\Error\OutOfMemoryError:
Error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 2097152 bytes)

  at /var/www/html/libraries/vendor/php-debugbar/php-debugbar/src/DebugBar/JavascriptRenderer.php:1321