Notice: Undefined offset: 0 in _freelinking_prepopulate_default_node_type() (line 127 of /home/mysite/sites/all/modules/freelinking/modules/freelinking_prepopulate/freelinking_prepopulate.module).
Notice: Undefined variable: extra_description in freelinking_nodetitle_settings() (line 89 of /home/mysite/sites/all/modules/freelinking/plugins/freelinking_nodetitle.inc).
Two error messages I get whenever enabling the Freelinking Prepopulate module.
Am too inexperienced with this to solve it, but maybe someone else isn't?
Comments
Comment #1
misc commentedI get the same error.
Comment #2
hillman commentedI do as well.
Comment #3
misc commentedPosted a patch for this and some other issues I had here: http://drupal.org/node/1351932#comment-5287414
Comment #4
iolartes commentedThank you for the patch. It solved most of my problems. However, I still get some warnings on the plugin usage. Whenever I update a page to include new links, I got the following:
I don't know if this error is related to my usage of custom node type for the new page.
Comment #5
misc commentedDo you use the dev branch, or the latest stable release? The patch should work with latest dev from git.
Comment #6
iolartes commentedI'm usign freelinking 7.x-3.x-dev and freelinking-prepopulate 7.x-3.x-dev.
Comment #7
misc commentedSorry, but I can not reproduce the error. Are you sure that the patch were applied to all files?
Comment #8
iolartes commentedI don't know how I can confirm that. Please, could you explain me how can I check that? Thanks
Comment #9
misc commentedDo you get any messages when you apply the patch, if so, what?
Comment #10
iolartes commentedI did reinstall the dev versions of freelinking and prepopulate thinking that the problem was due to an error with the patch install. I installed the patch using the patch command in ubuntu and I got the following:
Comment #11
misc commentedI think the problem is how you apply the patch. Could you tell how you use the patch program? Personally I use git apply - but that only works if you work in the modules git branch.
Comment #12
iolartes commentedOriginally I used git. This last time when I restored the original dev packages, I copied the patch to the module directory and used
patch < freelinking_prepopulate-1351932-3.patchTerminal reported similar errors to the one in my previous post, so I reinstalled the modules, copied the patch to the prepopulate directory and applied the patch with the same command.
Comment #13
misc commentedYou have to use the paramaters -p1 with patch (
patch -p1 < file.patch), in the freelinking folder.Comment #14
iolartes commented@MISc Seems like that made the trick. Thank you very much for your help and patience
Comment #15
misc commentedNo problem, we are here to help each other.
Comment #16
misc commented