Announcement

Symphony's issue tracker has been moved to Github.

Issues are displayed here for reference only and cannot be created or edited.

Browse

Closed#424: "Admin" type pages come up blank when accessed without authorization

I am used to Symphony delivering a login page when a page of type “admin” is accessed without a valid author login.

In Symphony 2.1.2, a blank page is thrown instead.

a blank page is thrown instead

Blank as in plain white? Can you turn on PHP errors to see if one is being thrown?

Plain white and plain empty, yes. I added php_flag display_errors on to my .htaccess file, but this doesn’t make any difference. There is also nothing in the log file.

I also tried

php_value display_errors on

and increaesed the memory

php_value memory_limit 128M

Still no luck. Plain white.

What URL are you looking at? Looking for ways to reproduce this.

I have a default install and try to access the “/drafts” page without being logged in. All I get is a blank page.

Could it be it’s something with PHP 5.3 (which is on my dev machine)? To be more precise: It’s a Mac running (pre-installed) PHP 5.3.3.

I’m finding that the default maintenance mode page is not being displayed either, just blank. On both localhost and live (very different setups with different PHP versions).

Strange things going on here. The Maintenance page works for me.

Any time I experienced blank pages before, it was a memory issue. Could we have some sort of memory leak?

Do you see anything if you delve into your Apache logs?

I found nothing in the error log, and nothing unusual in the access log.

Really odd. Are you able to replicate this consistently? If so, would you be able to email me an ensemble so I can try myself?

Nick, it s a default install on my (Mac) localhost. I double-checked this — I just did a super-fresh install with the same problem. The only “potential anomaly” is that these installations are in sub-folders.

And this is the log of the super-fresh install:

============================================
Log Created: 2010-11-25T20:15:31+01:00
============================================
Symphony Log
Version: 2.1.2
--------------------------------------------

Really, that’s all!

I verified that this is not related to my localhost. I see the same issue with all my live websites which I updated to 2.1.2. They are on different servers w/ different setups.

Any page of type “Admin” comes up blank when you are not logged in.

Have you tried creating a page with type 403?

In its absence, I think Symphony’s supposed to serve up some sort of default error page, but that doesn’t appear to be happening. The code in question.

Craig, you are right. A page with type 403 will be served correctly.

So there’s a bug with the 403 “fallback” page (which also affects the default workspace, since there is no dedicated 403 page).

Hard to say what goes wrong, because empty($row) returns true… Strange.

The issue occurs because of this commit, which disables the GenericExceptionHandler for users who aren’t logged in. Because the fallback for 404/403 pages is essentially a Symphony exception, it results in a blank page.

I’ve fixed it in this commit by setting the GenericExceptionHandler to true just before the SymphonyErrorPage is choosen.

Of course, if this is a production mode site, you’d generally hope that there is custom 403/404 pages, but I suppose this is useful as a last resort.

This issue is closed.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details