defines=/home/ldhub/public_html/includes/defines.php
framework=/home/ldhub/public_html/includes/framework.php
PHP version: 8.0.30
Container:
array(20) { [0]=> string(11) "__construct" [1]=> string(3) "get" [2]=> string(3) "has" [3]=> string(6) "exists" [4]=> string(5) "alias" [5]=> string(8) "isShared" [6]=> string(11) "isProtected" [7]=> string(3) "tag" [8]=> string(9) "getTagged" [9]=> string(11) "buildObject" [10]=> string(17) "buildSharedObject" [11]=> string(11) "createChild" [12]=> string(6) "extend" [13]=> string(3) "set" [14]=> string(7) "protect" [15]=> string(5) "share" [16]=> string(11) "getResource" [17]=> string(14) "getNewInstance" [18]=> string(23) "registerServiceProvider" [19]=> string(7) "getKeys" }
Warning: session_name(): Session name cannot be changed after headers have already been sent in /home/ldhub/public_html/libraries/vendor/joomla/session/src/Storage/NativeStorage.php on line 405

app:
array(79) { [0]=> string(11) "__construct" [1]=> string(8) "dispatch" [2]=> string(16) "getDetectBrowser" [3]=> string(17) "getLanguageFilter" [4]=> string(9) "getParams" [5]=> string(10) "getPathway" [6]=> string(9) "getRouter" [7]=> string(11) "getTemplate" [8]=> string(5) "login" [9]=> string(16) "setDetectBrowser" [10]=> string(17) "setLanguageFilter" [11]=> string(11) "setTemplate" [12]=> string(12) "checkSession" [13]=> string(14) "enqueueMessage" [14]=> string(7) "execute" [15]=> string(6) "getCfg" [16]=> string(11) "getClientId" [17]=> string(11) "getInstance" [18]=> string(7) "getMenu" [19]=> string(15) "getMessageQueue" [20]=> string(7) "getName" [21]=> string(12) "getUserState" [22]=> string(23) "getUserStateFromRequest" [23]=> string(13) "isHttpsForced" [24]=> string(8) "isClient" [25]=> string(6) "logout" [26]=> string(8) "redirect" [27]=> string(12) "setUserState" [28]=> string(8) "toString" [29]=> string(12) "getFormToken" [30]=> string(10) "checkToken" [31]=> string(5) "isCli" [32]=> string(14) "setMenuFactory" [33]=> string(11) "getDocument" [34]=> string(11) "getLanguage" [35]=> string(11) "flushAssets" [36]=> string(12) "loadDocument" [37]=> string(12) "loadLanguage" [38]=> string(11) "loadSession" [39]=> string(17) "afterSessionStart" [40]=> string(9) "getConfig" [41]=> string(5) "__get" [42]=> string(8) "getInput" [43]=> string(10) "allowCache" [44]=> string(9) "setHeader" [45]=> string(10) "getHeaders" [46]=> string(12) "clearHeaders" [47]=> string(11) "sendHeaders" [48]=> string(7) "setBody" [49]=> string(11) "prependBody" [50]=> string(10) "appendBody" [51]=> string(7) "getBody" [52]=> string(11) "getResponse" [53]=> string(17) "isValidHttpStatus" [54]=> string(11) "setResponse" [55]=> string(15) "isSslConnection" [56]=> string(7) "isAscii" [57]=> string(5) "close" [58]=> string(3) "get" [59]=> string(9) "getLogger" [60]=> string(3) "set" [61]=> string(16) "setConfiguration" [62]=> string(9) "setLogger" [63]=> string(13) "getDispatcher" [64]=> string(13) "setDispatcher" [65]=> string(13) "registerEvent" [66]=> string(12) "triggerEvent" [67]=> string(11) "getIdentity" [68]=> string(12) "loadIdentity" [69]=> string(14) "setUserFactory" [70]=> string(12) "setContainer" [71]=> string(13) "bootComponent" [72]=> string(10) "bootModule" [73]=> string(10) "bootPlugin" [74]=> string(27) "createExtensionNamespaceMap" [75]=> string(10) "getSession" [76]=> string(10) "setSession" [77]=> string(25) "setCacheControllerFactory" [78]=> string(31) "isMultiFactorAuthenticationPage" }
user:ldhub_admin
Session:
array(33) { [0]=> string(11) "__construct" [1]=> string(10) "checkToken" [2]=> string(12) "getFormToken" [3]=> string(11) "getHandlers" [4]=> string(11) "getInstance" [5]=> string(3) "get" [6]=> string(3) "set" [7]=> string(3) "has" [8]=> string(5) "clear" [9]=> string(12) "addValidator" [10]=> string(9) "getExpire" [11]=> string(8) "getState" [12]=> string(8) "getToken" [13]=> string(8) "hasToken" [14]=> string(11) "getIterator" [15]=> string(7) "getName" [16]=> string(7) "setName" [17]=> string(5) "getId" [18]=> string(5) "setId" [19]=> string(8) "isActive" [20]=> string(5) "isNew" [21]=> string(9) "isStarted" [22]=> string(6) "remove" [23]=> string(3) "all" [24]=> string(5) "start" [25]=> string(7) "destroy" [26]=> string(7) "restart" [27]=> string(4) "fork" [28]=> string(5) "close" [29]=> string(2) "gc" [30]=> string(5) "abort" [31]=> string(13) "getDispatcher" [32]=> string(13) "setDispatcher" }
User:
Failed to start the session because headers have already been sent by "/home/ldhub/public_html/test.php" at line 11. (500 Whoops, looks like something went wrong.)

RuntimeException

HTTP 500 Whoops, looks like something went wrong.

Failed to start the session because headers have already been sent by "/home/ldhub/public_html/test.php" at line 11.

Exception

RuntimeException

  1.             throw new \RuntimeException('Failed to start the session: already started by PHP.');
  2.         }
  3.         if (ini_get('session.use_cookies') && headers_sent($file$line))
  4.         {
  5.             throw new \RuntimeException(
  6.                 sprintf('Failed to start the session because headers have already been sent by "%s" at line %d.'$file$line)
  7.             );
  8.         }
  9.         if (!session_start())
  1.                 $this->setId($session_clean);
  2.                 $cookie->set($session_name''time() - 3600);
  3.             }
  4.         }
  5.         parent::start();
  6.         // Try loading data from the session
  7.         if (isset($_SESSION['joomla']) && !empty($_SESSION['joomla'])) {
  8.             $this->data unserialize(base64_decode($_SESSION['joomla']));
  9.         }
  1.         if ($this->isStarted())
  2.         {
  3.             return;
  4.         }
  5.         $this->store->start();
  6.         $this->setState(SessionState::ACTIVE);
  7.         // Initialise the session
  8.         $this->setCounter();
  1.      */
  2.     public function has($name)
  3.     {
  4.         if (!$this->isActive())
  5.         {
  6.             $this->start();
  7.         }
  8.         return $this->store->has($name);
  9.     }
  1.                 $name $args[2] . '.' $name;
  2.             }
  3.         }
  4.         if (parent::has($name)) {
  5.             // Parent is used because of b/c, can be changed in Joomla 5
  6.             return parent::get($name$default);
  7.         }
  8.         /*
Session->get('user') in /home/ldhub/public_html/test.php (line 49)
  1. //echo '<hr>Session:'.var_dump(get_class_methods($app->getSession()));
  2. echo 'Session:<hr>';
  3. var_dump(get_class_methods($app->getSession()));
  4. echo '<hr>User:<hr>';
  5. $user $app->getSession()->get('user');
  6. var_dump($user);
  7. echo '<hr>user id='.$user->id;
  8. echo '<hr><h2>_GET='.print_r($_GETTRUE);

Stack Trace

RuntimeException
RuntimeException:
Failed to start the session because headers have already been sent by "/home/ldhub/public_html/test.php" at line 11.

  at /home/ldhub/public_html/libraries/vendor/joomla/session/src/Storage/NativeStorage.php:473
  at Joomla\Session\Storage\NativeStorage->start()
     (/home/ldhub/public_html/libraries/src/Session/Storage/JoomlaStorage.php:295)
  at Joomla\CMS\Session\Storage\JoomlaStorage->start()
     (/home/ldhub/public_html/libraries/vendor/joomla/session/src/Session.php:406)
  at Joomla\Session\Session->start()
     (/home/ldhub/public_html/libraries/vendor/joomla/session/src/Session.php:333)
  at Joomla\Session\Session->has('user')
     (/home/ldhub/public_html/libraries/src/Session/Session.php:194)
  at Joomla\CMS\Session\Session->get('user')
     (/home/ldhub/public_html/test.php:49)