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.
While sharing status with photo attachment, I am getting following messages:
Notice: Undefined index: filepath in fbsmp_photo_fbsmp_repost_form_validate() (line 282 of .../sites/all/modules/fbsmp/plugins/photo.inc).
The photo could not be re-posted.
Simple status without any attachment works fine.
Comment | File | Size | Author |
---|---|---|---|
#1 | fix-notice-1796564-2.patch | 572 bytes | samhassell |
Comments
Comment #1
samhassell CreditAttribution: samhassell commentedthis should fix the notice.
Comment #2
tanmaykThanks for the patch. It fixed notice issue, but the message 'The photo could not be re-posted', is still there. It comes from line no 284 of photo.inc
form_set_error('fbsmp_photo_repost', t('The photo could not be re-posted.'));
Comment #3
Dinesh Kumar Sarangapani CreditAttribution: Dinesh Kumar Sarangapani commentedTry to configure, the file path in the settings admin/config/fbsmp for video. Make sure you provide sufficient folder permissions.
@samhassell Thanks for the patch , i will include it.
Comment #4
tanmaykI don't have any optional subdirectory within upload destination. Still I tried with configuring file path as sites/default/files at admin/config/fbsmp/plugins/photo. Just to give a try. Didn't worked. Am I missing any other configuration? Also I don't need it for videos, trying for photos only. :)
Comment #5
youlikeit CreditAttribution: youlikeit commentedPatch doesn't work for me neither
Comment #7
IceCreamYou CreditAttribution: IceCreamYou commentedCommitted to dev. The patch fixes the problem this issue is about. Other problems should be addressed in separate issues if they still apply.