Closed (fixed)
Project:
Node import
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
18 Nov 2009 at 04:34 UTC
Updated:
26 Mar 2011 at 09:04 UTC
Jump to comment: Most recent file
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
| Comment | File | Size | Author |
|---|---|---|---|
| #12 | node-import-drupal-retrieve-form-635788-12.patch | 513 bytes | watcha |
Comments
Comment #1
medenfield commentedActually...this is an easy fix. I just changed line 1842 from
to
I dunno if it merits a patch or not...but that's the fix for it.
Comment #2
medenfield commentedComment #3
karthick62 commentedcool!! it works!! Thanks much~
Comment #4
bneel commentedYes It works and I think it needs to be ported, do you ?
B
Comment #5
abbasmousavi commentedI have tested it and it works, please add it to cvs before RC5
thanks
Comment #6
rodrixXx commentedComment #7
OhSnapNo commentedI'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.
Comment #8
Robrecht Jacques commentedCould you try the fix in http://drupal.org/node/763036 ?
Comment #9
kbk commentedChange 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.
Comment #10
mpflaging commented#1 worked for me too.
Comment #11
kbk commentedI'll run a patch for this next week if no one beats me to it.
Comment #12
watcha commentedThe World's smallest patch lives here
Comment #13
watcha commentedComment #15
ss_truepal commentedThe solution posted by edenfield works well. Thanks dude.
Comment #16
cannandev commented#12 patch works great. Thanks!
Comment #17
micheleannj commentedsubscribing
Comment #18
levacjeep commented#1 worked for me, but I had to apply to current dev version on line 1973.
Comment #19
gateway69 commentedconfirmed on my end as well php 5.3 issue :) prob should roll it into a new release
Comment #20
notrab commentedThis fixed my issue as well. Thanks for the help.
Comment #21
joe3zzz commentedafter 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
Comment #22
puregin commentedIt 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.
Comment #23
rosk0#1 worked for me, but I had to apply to current dev version on line 1973.
php 5.3.5
Comment #24
zaglick commented#1's patch works for me
Comment #25
Robrecht Jacques commented