Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

When none of In-Portal have not any enabled theme (and set primary) there no any error message, just blank page without text. Also debugger is not loaded.Guess there must be something that leads user to themes is enabled and marked as primary, then user only sees empty blank screen instead of Front-End. Debugger also appears hidden.

I guess, that a message should be shown to the user, explaining the problem.

During debugging I found revealed that application interrupts on it's initin kApplication::Init method. Further debugging showed that problem is in that methodthe kApplication::ApplicationDie method:

Code Block
languagephp
titlecore/kernel/application.php
firstline2730
linenumberstrue
	/**
	 * Stops processing of user request and displays given message
	 *
	 * @param string $message
	 * @access public
	 */
	public function ApplicationDie($message = '')
	{
		$message = ob_get_clean() . $message;
		if ( $this->isDebugMode() ) {
			$message .= $this->Debugger->printReport(true);
		}
		echo $this->UseOutputCompression() ? gzencode($message, DBG_COMPRESSION_LEVEL) : $message;
		exit;
	}

Output of this code will be done in buffer and never be showed.

Fixes_white_screen_when_no_theme_is_enabled.patch

Related Tasks

Jira Legacy
serverSystem Jira
serverId513b375f-8291-3313-9d9f-704c39b1f915
keyINP-1376