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.

CommentFileSizeAuthor
#1 fix-notice-1796564-2.patch572 bytessamhassell
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

samhassell’s picture

FileSize
572 bytes

this should fix the notice.

tanmayk’s picture

Thanks 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.'));

Dinesh Kumar Sarangapani’s picture

Try 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.

tanmayk’s picture

I 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. :)

youlikeit’s picture

Issue summary: View changes

Patch doesn't work for me neither

  • IceCreamYou committed a7e3a74 on 7.x-1.x
    Issue #1796564 by samhassell: Undefined index notice while sharing...
IceCreamYou’s picture

Status: Active » Fixed

Committed to dev. The patch fixes the problem this issue is about. Other problems should be addressed in separate issues if they still apply.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.