When saving a node, I get lots of this error/notice:
Notice: Undefined index: in _portable_path_field_attach_load() (line 52 of /var/www/blabla/sites/all/modules/portable_path/includes/edit.inc).
and this:
Notice: Undefined index: format in _portable_path_field_attach_load() (line 52 of /var/www/blabla/sites/all/modules/portable_path/includes/edit.inc).
The node fails to save the links I have modified.
I don't remember having this problems a few days ago.
When saving exactly the same node, I also have seen this:
Notice: Undefined index: host in _filefield_paths_replace_path() (line 292 of /var/www/blabla/sites/all/modules/filefield_paths/filefield_paths.module).
and this:
Notice: Undefined offset: 0 in _portable_path_field_attach_presave() (line 39 of /var/www/blabla/sites/all/modules/portable_path/includes/save.inc).
I am also using Clean URLS.
Comments
Comment #1
claudiuv commentedAlso, in the Broken links report I see two new lines
Permission restrictions deny you access to this broken link.Is there any recommendation for setting the Filter processing order in Content->Formats ? I am using this order:
I have checked both of these
Convert file ID tokens to relative URLs
and
Convert stream wrapper URLs to relative URLs
I have uninstalled and installed again the module, using drush. I didn't touch any node, but the logs show this:
Comment #2
solotandem commentedRegarding filter order, I put the portable path filters at the top (as you have them) as they need to convert the text to URLs that other filters might act upon.
Regarding the undefined index error, could you dump the values of
$entity->$field_nameand possibly$entityin_portable_path_field_attach_load()just before line 52? Please scrub any sensitive information before posting. It would seem that a language code is not being found. Do you have any translation modules enabled?Comment #3
claudiuv commentedShould I go for var_dump to give you the data required ? Or should I use a better tool?
Yes, I have the translation enabled for Romanian.
Cheers,
Comment #4
solotandem commentedEither var_dump or print_r is fine. Thanks.
Comment #5
claudiuv commentedSorry for being lame, where should I get the output ? in the node edit view ?
Comment #6
solotandem commentedSee #2. Put
echo print_r($entity->$field_name, TRUE);in_portable_path_field_attach_load()before line 52.Comment #7
claudiuv commentedwell I did that
Flushed caches. And no additional debug dumps to be seen on any node.
Comment #8
solotandem commentedThat code is invoked when you try to save a node. Sorry.
Comment #9
claudiuv commentedI saved a few times the node, but I cant see the dump. I even searched page source for "entity".
Could you give me more directions, please?
Comment #10
claudiuv commentedI have modified the edit.inc file like this
The txt file is not created.
find / -name 234235729.txtHowever, the errors reported are still at line 52, which is a bit strange, it should be line 55 now.
I am waiting for your feedback.
Thanks,
Comment #11
claudiuv commentedAt last! This is your entity, dumped
later edit: entity dump removed for privacy reasonsWhen trying to dump $entity->$field_name , php gives this error
PHP Fatal error: Cannot access empty property in /var/www/blabla/sites/all/modules/portable_path/includes/edit.inc on line 37
Comment #12
solotandem commentedFixed in this commit.