Hello,

I work with Drupal 7.12, after updating ctools to the latest dev version I got a blank page when I log out from the admin account.
It means that when I am logged in the admin account, everything is fine, all the pages from the website load normally but as soon as I log out, the homepage becomes blank. There is no error message in the log file, nor in the screen.
I tried to rebuild the menus with the devel module but nothing changed.
The same behavior occurs with the rc2 release.

Do you have any idea about what I could do to get back my homepage?

Thank you

CommentFileSizeAuthor
#8 ctools-1488888-8.patch526 bytestim.plunkett
#6 1488888-6.patch1.79 KBjherencia

Comments

tbws’s picture

Is your homepage completely white? The white screen error is usually the result of a php parse error. Are you using any embeded code (in the theme or a block) or module code in your homepage? If so, can you please pastebin it in your reply after checking the syntax.

Cheers,
Will

drupalycious’s picture

Thank you for the quick answer,

No I don't use any embedded PHP code (in the theme or the blocks) and yes, the homepage is just white no warnings or bug report.
Everything was fine until the 17 March ctools dev version. I didn't keep a copy of it...
I found an old dev version of ctools (from 23 January 2012) and using it fixes the problem, but I would prefer to use the latest one, at least the one I downloaded yesterday. In case you still have a copy of it, could you send it to me?
I know I should always keep copies of the modules, yet sometimes I am on a rush and I am too confident...

Cheers,

sp

merlinofchaos’s picture

Can you please check your watchdog log or your apache/php error log and see if there is a PHP error leading to the whitescreen?

drupalycious’s picture

First good point to stress: on a clean install with all my modules enabled but no content, everything is fine, the homepage is not white/empty.

The watchdog log doesn't give me anything related to this problem, I only get "session open" and "session closed" messages.
the apache error log neither.

But the php error log gives me an interesting message:

PHP Fatal error:  Call to undefined function _ctools_get_block_info() in MY-DRUPAL-SITE-DIRECTORY
/sites/all/modules/ctools/plugins/content_types/block/block.inc on line 438

and I noticed that when I disable my custom homepage (done with panels and page manager) the homepage comes back to live, but as I overrided it with my custom one, I don't have anything in this page but I can see the website logo (but my menus bar is gone).

I am not understanding exactly what is the problem, as with a previous version of ctools, everything was fine with my custom homepage.
Might it be a compatibility issue between ctools and panels 3?

Thank you for your help

drupalycious’s picture

I got my homepage back!!!!

I think my problem is related to the one mentioned here #1275886: Error - Notice: Trying to get property of non-object in menu_block_view_alter()
and the patch given at the comment 63 solved my issue.

Some details:
when I applied the patch I got:

File to patch: block.inc
patching file block.inc
Reversed (or previously applied) patch detected!  Assume -R? [n] y
patch unexpectedly ends in middle of line
Hunk #3 succeeded at 405 with fuzz 1.

and then I logged out and check my homepage and it was back.

I tested it with the latest ctools dev and the rc2 version, for both this patch works and fix this issue.

I don't see any other problem so far, I will report bellow in case something bugs after this fix.

;-)

jherencia’s picture

StatusFileSize
new1.79 KB

Ok, this happens to me too after upgrading to RC2, the reason is that #1275886-63: Error - Notice: Trying to get property of non-object in menu_block_view_alter(), removes _ctools_block_load_blocks and _ctools_get_block_info which are called from ctools_user_login_pane_render line 438.

I added both functions to get this working again, here is the patch. I needed this fixed ASAP so probably this is not the best solution, I hope it helps people in the same situation I was.

jherencia’s picture

Priority: Normal » Critical
Status: Active » Needs review

I see that there are more people with this problem (http://drupal.org/node/1489824) so as long as it breaks any site with user login pane block I'm going to change the status to critical.

tim.plunkett’s picture

jherencia’s picture

#8 - Works perfect for me, and it's a much better solution than the one I provided.

Thank you.

cladom’s picture

#8 worked for me.

Thank you

tim.plunkett’s picture

Status: Needs review » Fixed
drupalycious’s picture

Hi,

I installed the latest dev version, and everything is fine.

Thank you for the module and the fixes!

scottsawyer’s picture

Patch working for me, thank you!

srlawr’s picture

Just chalking up another one who had this problem, but who was also fixed using the patch in #8

thank you very much. good to hear this might already be resolved in .dev, and thus for the next release..! :)

LarsKaae’s picture

I'v also get: Fatal error: Call to undefined function _ctools_get_block_info() in MY-DRUPAL-SITE-DIRECTORY/sites/all/modules/ctools/plugins/content_types/block/block.inc on line 438

When i'm logged in there is nothing wrong, but as a anonymous user, I can't see my contents.

I don't know how to use Patches and don't know how to install the dev version, if it's not released to update...

Can anybody help?

LarsKaae’s picture

Hi,

I found a way to do the patching manually - it's work again. I can see my contents without login in as admin.

I've using the patch in #8

merlinofchaos’s picture

No need to patch this is already committed -- just update to 7.x-1.x-dev -- I'll roll a release some time this week when I've recovered from Drupalcon.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.