Publisher does not support the Fluid field type. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: Blank page when trying to load template

Status Resolved
Add-on / Version 2.0.8
Severity Critical
EE Version 2.7.3

JonnyTurnerUK

Jan 19, 2014

Hey there,

I’ve recently updated Blueprints and EE but now I’m getting a blank screen when i go to an existing page then change the layout which is set to automatically update. Have you had this before? With output and debugging on, nothing shows and there are no JS errors either.

Here is the URL that it tries to visit: http://[removed]system/index.php?S=0&D=cp&C=content_publish&M=entry_form&entry_id=49&layout_preview=2000&use_autosave=y

#1

BoldMinded (Brian)

Hi, Jonny. I have not seen this before. Would you be comfortable providing CP and FTP access so I can take a look? You only need to provide access to the blueprints folders if you want.

#2

JonnyTurnerUK

Hey there, sorry for not replying ealier (and thanks for the quick reply!). I’ve managed to replicate it and figure out what causes it from a user point of view.

If you have existing pages with templates already selected, then install Blueprints, the page layout loads with your styling of the dropdown i.e. load layout buttons and template names etc. Because the template wasn’t previously chosen by Blueprints another template name was yellow. I then, selected ‘Contact’ and load layout which caused a blank page. In the original template dropdown (before being styled up) the correct template is shown.

I tried to write the above without it sounding too confusing! 😊

#3

JonnyTurnerUK

Wrote that a little too late… it’s happening on various templates now. I can email you CP access if you like? BTW, I’ve upgraded to 2.0.8 just an hour or so ago.

#4

BoldMinded (Brian)

Does it do this every time? Or after a white screen can you load the page and set the template? What happens if you disable blueprints and try again?

#5

JonnyTurnerUK

It happens every time I click load layout. I reinstalled and didn’t do anything. It’s worth mentioning that it works fine with new empty pages but once saved, it then created a blank screen.

I’ve updated this ticket with login details if you want to take a look? It’s disabled for now so the client can use the site but you can enable it.

I’ve also disabled various extensions / modules to check for conflicts but no joy.

#6

BoldMinded (Brian)

If you’re getting a white screen make sure debugging is turned all the way up. https://gist.github.com/litzinger/5598641

I logged in and I can’t access the default cp menu, can you disable zoo menu for my account?

#7

JonnyTurnerUK

You’re now super admin and debugging is on and here are the errors.

A PHP Error was encountered Severity: Notice Message: Array to string conversion Filename: database/DB_active_rec.php Line Number: 442

A Database Error Occurred Error Number: 1054 Unknown column ‘Array’ in ‘where clause’ SELECT channel_id FROM (exp_channels) WHERE field_group = Array AND channel_id != 0 Filename: third_party/blueprints/models/blueprints_model.php Line Number: 122

#8

BoldMinded (Brian)

Would you mind adding FTP credentials to this ticket? Since I can’t replicate this locally I need to see why its passing an array to the model.

#9

JonnyTurnerUK

Sure, I’ve added them into the ticket for you. Thanks again for looking into it.

#10

BoldMinded (Brian)

Is there a particular entry that throws the error? I edited 2 entries and didn’t see any errors. I need steps to replicate this before I can fix it.

#11

JonnyTurnerUK

Go to /areas-we-cover in the pages module. You’ll notice that 1 Column Layout is highlighted, however, the template that’s already selected is ‘areas’ so should this be yellow?

Then choose ‘Areas We Cover’, load layouy then there’s the error.

#12

BoldMinded (Brian)

Something is setting $_POST[‘entry_id’] = ‘undefined’ when the entry is saved before Blueprints can use it, thus it can’t find the channel_id it should use in the query that is failing. I would start disabling other extensions to figure out which one might be causing this, but its not my place to do that, unless this is a dev environment and you give me permission to do so.

Also, I see Better Pages is installed and being used at the same time as Blueprints… these are basically 2 conflicting add-ons. Thats like trying to use Grid and Matrix at the same time. They are both trying to do the same thing in different ways. I suggest uninstalling one of them as I don’t see the benefit of using both at the same time.

#13

JonnyTurnerUK

I see, I’ve disabled various extensions etc before but with no luck. I missed have missed one so I’ll go through it now and see what I can find. I added Better Pages on there after Blueprints to get the site live but would prefer to get this working.

I’ll go through it now and report back what I find. Thanks again for taking a look.

Login to reply