Initial user logs in ok.
However if I try to register a new user or creat one i get a blank page
error log gives:
Type php
Date Friday, May 5, 2006 - 9:43pm
User Anonymous
Location http://www.xxxxxxxx/FERN/user/register
Referrer http://www.xxxxxxxxxxxx/FERN/
Message array_shift(): The argument should be an array in /home/xxxxxxxxxxxxxxxxx/FERN/includes/form.inc on line 469.
Severity error
this error is being generated over and over.....
error php 05/05/2006 - 21:43 array_shift(): The argument should be an array in ... Anonymous
error php 05/05/2006 - 21:43 array_shift(): The argument should be an array in ... Anonymous
error php 05/05/2006 - 21:43 array_shift(): The argument should be an array in ... Anonymous
error php 05/05/2006 - 21:43 array_shift(): The argument should be an array in ... Anonymous
error php 05/05/2006 - 21:43 array_shift(): The argument should be an array in ... Anonymous
error php 05/05/2006 - 21:43 array_shift(): The argument should be an array in ... Anonymous
error php 05/05/2006 - 21:43 array_shift(): The argument should be an array in ... Anonymous
any help would be great
mike
Comments
Long shot...
It looks like something is not using the new forms api correctly. In particular, the
_form_set_valuefunction inincludes/form.incis being called with a$parentwhich is not an array. Neither_form_set_valuenorform_set_valueare referenced inuser.module.This is a bit of a long shot, but is there any chance it's a problem due to a contributed module? Or a block that is enabled on the user registration pages? If you switch off all modules except the core ones, does this problem still occur?
Anj
---------
http://anjackson.net/
I had this error....
In a module of my own making I had this error. I traced my mistake to the simple fact that when a particular page is requested but access is deined I did "return drupal_set_message(...)" rather than "drupal_set_message(...); return;"
Returning the wrong datatype when a form array is expected will fill ur log with that error many times over (while you watch a blank screen).
The code is
"$parent = array_shift($parents);"maybe it should be
$parent = (is_array($parents)) ? array_shift($parents) : array();??
regards
--AjK
I should have mentioned,
I should have mentioned, sounds like a module API version mismatch. As the previous poster says, turn off modules one at a time till the problem goes away, then you know which module the problem was with.
Let us know which module is was that appeared to cause the error so it can be looked into.
regards
--AjK
Blank page, no error message after registration
It happens to me too. Blank page appear after new user registration without showing any error.
On our site it's being
On our site it's being caused by the CiviCRM module.
We're using Drupal 4.7 and the 4.7 version of the module.
--
Jenni S.
Check your configuration file
Hi Jenni,
I had this exact problem, and narrowed it down to the civicrm module.
Then I read this:
http://faq.civicrm.org/index.php?sid=13130&lang=en&action=artikel&cat=2&...
There's a setting in the civicrm.settings.php file which comes with the core civicrm:
define ( 'CIVICRM_UF_VERSION' , '4.7');
It's 4.6 by default - so that causes the errors. I've changed it, and now it is working fine.
Hope yours does too.
Nick
Ours was set correctly. the
Ours was set correctly.
the problem ended up beingn tied to a few things, but mostly that the CiviCRM files come with a civicrm.module, plus there's the one you can download from the Drupal site. If you have both (one is in the modules/civicrm/modules folder), they conflict.
We were able to get it fixed, and now we're up and running fine.
--
Jenni S.
My problem is simular
I have registred an account, I can see it in the database. But when I try to login, it says that it's not the right password. So I try to fetch a new password by printing in my e-mail address but then nothing happens. So frustrating! Someone got an answer to this?
Subscriptions
When users registered the return email would take the user to /user/###/edit page to update their user profiles and get a blank screen instead, but it did not prevent them from later logging in and using just fine (unless they wanted to change their passwords).
After painstakingly switching on/off modules I found the cause of this problem for me was Subscriptions. I had forgotten that subscriptions.module was not part of the 4.7 core and failed to update that module individually. I was sure that this was part of the core since it is such a simple and commonly requested feature.
Anyway, I updated my subscriptions.module and ran the update.php script, everything is hunky dory. Hope this helps some of you out.
Cache problem - Go to a page once, but not twice
Has anyone found a solution for getting this blank page? I think I have the same problem discussed here:
I have the Cache enabled and set to a 5 minute lifetime. When I log out > then access any page as Anonymous > then try to access that same page again (even a Refresh) > I get a blank page (no errors displayed or logged). Then I'm kind of trapped because I can't go Back or go to any other page I've visited before.
It's gotta be a problem with the Cache somehow or the information sent to it. If I disable the Cache - no problems. If I monitor the Cache in PHPMyAdmin > delete the visited page entry > access the page one more time - no problem. I want to use the Cache though! :-)
I have two installations of Drupal to monitor. On my main one, the one with this problem, I have many modules and customizations. On the other installation, my secondary, I have no modules or customizations. On the secondary I cannot produce this problem so it leads me to believe it's all my modules and customizations right? So I disabled everything that I thought would affect this - no success.
On another post, http://drupal.org/node/85835, I've attached my SQL dumps for the Cache from the broken site and the working site. Also a screenshot from PHPMyAdmin showing the entry (for the user/register page) I can delete and make things work one more time. Those little entries are the problem! (internally somewhere)
I am hoping that someone knows how to analyze this information and can find the bug. Or has anyone else ever had this problem? Any thoughts would be greatly appreciated. Thanks in advance :-)
_/03