Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: 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 CreditAttribution: medenfield commentedComment #3
karthick62 CreditAttribution: karthick62 commentedcool!! it works!! Thanks much~
Comment #4
bneel CreditAttribution: bneel commentedYes It works and I think it needs to be ported, do you ?
B
Comment #5
abbasmousavi CreditAttribution: abbasmousavi commentedI have tested it and it works, please add it to cvs before RC5
thanks
Comment #6
rodrixXx CreditAttribution: rodrixXx commentedComment #7
OhSnapNo CreditAttribution: 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 CreditAttribution: Robrecht Jacques commentedCould you try the fix in http://drupal.org/node/763036 ?
Comment #9
kbk CreditAttribution: 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 CreditAttribution: mpflaging commented#1 worked for me too.
Comment #11
kbk CreditAttribution: kbk commentedI'll run a patch for this next week if no one beats me to it.
Comment #12
watcha CreditAttribution: watcha commentedThe World's smallest patch lives here
Comment #13
watcha CreditAttribution: watcha commentedComment #15
ss_truepal CreditAttribution: ss_truepal commentedThe solution posted by edenfield works well. Thanks dude.
Comment #16
cannandev CreditAttribution: cannandev commented#12 patch works great. Thanks!
Comment #17
micheleannj CreditAttribution: micheleannj commentedsubscribing
Comment #18
levacjeep CreditAttribution: levacjeep commented#1 worked for me, but I had to apply to current dev version on line 1973.
Comment #19
gateway69 CreditAttribution: gateway69 commentedconfirmed on my end as well php 5.3 issue :) prob should roll it into a new release
Comment #20
notrab CreditAttribution: notrab commentedThis fixed my issue as well. Thanks for the help.
Comment #21
joe3zzz CreditAttribution: 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 397
This fixed it http://drupal.org/node/952732
Comment #22
puregin CreditAttribution: 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 CreditAttribution: zaglick commented#1's patch works for me
Comment #25
Robrecht Jacques CreditAttribution: Robrecht Jacques commented