Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: v4.0.0-rc.2 - Blank Page! #14496

Closed
ghost opened this issue Oct 29, 2019 · 2 comments
Closed

[BUG]: v4.0.0-rc.2 - Blank Page! #14496

ghost opened this issue Oct 29, 2019 · 2 comments
Labels
duplicate Duplicate issue. The duplicate issue is referenced in the comments

Comments

@ghost
Copy link

ghost commented Oct 29, 2019

I have blank page with newest phalcon version 4.0.0-rc.2 project works just fine with 4.0.0-rc.1 It maybe has something to do with newest change #14407.

Code That Works In RC1 but not in RC2.

$REQUEST = $_SERVER['REQUEST_URI'];
echo $app->handle($REQUEST)->getContent();

It might also be something with my view code in RC2. This works on RC1.

$di->set('view', function() {
	$view = new View();
	$view->setViewsDir('../app/view/');
	$view->registerEngines([
		'.volt' => function($view) {
			$volt = new Volt($view, $this);
			$volt->setOptions([
				'path' => '../app/cache/',
				# 'prefix' => 'cache',
				# 'separator' => '-',
				# 'extension' => '.cache',
				'stat' => true,
				'always' => true,
			]); #options
			return $volt;
		} #volt
	]); #engines
	return $view;
}); #view

I just don't see what has changed from RC1 to RC2 and why its does not work anymore. It dosn't trow any errors, nothing in logs at all - just blank page. It looks like it dosn't load my views properly. When I do simple test like exit('TEST')' before showing my view - it seems to work fine.

@ghost ghost added the Bug - Unverified label Oct 29, 2019
@andrew-demb
Copy link
Contributor

See #14491

Workaround now - use setShared for view service

@ruudboon ruudboon added duplicate Duplicate issue. The duplicate issue is referenced in the comments and removed Bug - Unverified labels Oct 29, 2019
@ruudboon
Copy link
Member

Closing this in favour of #14491

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate Duplicate issue. The duplicate issue is referenced in the comments
Projects
None yet
Development

No branches or pull requests

2 participants