Posted by medenfield on November 18, 2009 at 4:34am
| Project: | Node import |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
Hi,
I'm receiving an error message on step 7 I believe may be due to running 6.14 on the latest version of XAMPP, which runs php 5.3:
warning: Parameter 2 to drupal_retrieve_form() expected to be a reference, value given in E:\webserver\xampp\htdocs\database\sites\all\modules\node_import\node_import.inc on line 1842
Just wanted to document it and see if anybody else is experiencing this issue.
Michael
Comments
#1
Actually...this is an easy fix. I just changed line 1842 from
$form = call_user_func_array('drupal_retrieve_form', $args);to
$form = call_user_func_array('drupal_retrieve_form', &$args);I dunno if it merits a patch or not...but that's the fix for it.
#2
#3
cool!! it works!! Thanks much~
#4
Yes It works and I think it needs to be ported, do you ?
B
#5
I have tested it and it works, please add it to cvs before RC5
thanks
#6
#7
I'm getting the same error and the fix by medenfield @ #1 DOES NOT work, it only introduces other errors.
So the problem is still: content is imported without errors/warnings but doesn't get saved to db.
EDIT:
i get four errors related to these "successful" imports:
ERROR 1
Location: http://localhost/drupal/admin/content/node_import/add
Referer: http://localhost/drupal/admin/content/node_import/add
Info: mb_strlen() expects parameter 1 to be string, array given in C:\xampp\htdocs\drupal\includes\unicode.inc on line 404.
Error 2
Location: http://localhost/drupal/admin/content/node_import/add
Referer: http://localhost/drupal/admin/content/node_import/add
Info: Parameter 2 to drupal_retrieve_form() expected to be a reference, value given in C:\xampp\htdocs\drupal\sites\all\modules\node_import\node_import.inc on line 1842.
Error 3
Location: http://localhost/drupal/admin/content/node_import/9/continue
Referer: http://localhost/drupal/admin/content/node_import/9
Info: Parameter 2 to drupal_retrieve_form() expected to be a reference, value given in C:\xampp\htdocs\drupal\sites\all\modules\node_import\node_import.inc on line 1842.
Error 4
Location: http://localhost/drupal/admin/content/node_import/9/continue
Referer: http://localhost/drupal/admin/content/node_import/9
Info: mb_strlen() expects parameter 1 to be string, array given in C:\xampp\htdocs\drupal\includes\unicode.inc on line 404.
#8
Could you try the fix in http://drupal.org/node/763036 ?
#9
Change outlined in #1 works for me. #7 looks like a different beast plus no response was given. Marking as Reviewed to keep this moving.
Thanks for your work on this module.
#10
#1 worked for me too.
#11
I'll run a patch for this next week if no one beats me to it.
#12
The World's smallest patch lives here
#13
#15
The solution posted by edenfield works well. Thanks dude.
#16
#12 patch works great. Thanks!
#17
subscribing
#18
#1 worked for me, but I had to apply to current dev version on line 1973.
#19
confirmed on my end as well php 5.3 issue :) prob should roll it into a new release
#20
This fixed my issue as well. Thanks for the help.
#21
after applying this, blank white screen where import step 7 should be, when importing a CCK content type.
Fatal error: Cannot unset string offsets in .../image/contrib/image_attach/image_attach/image_attach.module on line 397This fixed it http://drupal.org/node/952732
#22
It would be nice to see a new release with the patch (#12). As more and more people move to php5.3, this issue will prevent them from using this module.
#23
#1 worked for me, but I had to apply to current dev version on line 1973.
php 5.3.5
#24
#1's patch works for me
#25
#26
Automatically closed -- issue fixed for 2 weeks with no activity.