Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Brajesh Singh

    (@sbrajesh)

    Hi Alex,
    My apologies for the delayed reply.

    Is there a possibility that the current user’s wall gallery was trashed or deleted somehow?

    Are you able to upload from your profile galleries?

    I have seen this issue happening when the gallery was deleting(but meta was not synchronized). I am working on a solution for that case too.

    Your feedback will help immensely.

    Thank you
    Brajesh

    Thread Starter alexlii

    (@alexlii)

    Is there a possibility that the current user’s wall gallery was trashed or deleted somehow?

    No, I just can not upload the images in BP activity page.

    Are you able to upload from your profile galleries?

    No, same issue, please check here: https://prntscr.com/ika2m0

    Alex

    Plugin Author Brajesh Singh

    (@sbrajesh)

    Hi Alex,
    Thank you.

    I see that but I am not sure why would that happen.
    You do have access to BuddyDev support forums, will it be feasible for you to open a topic on BuddyDev.

    It can give us a bit more flexibility than here in assisting.

    Thank you
    Brajesh

    Hey @sbrajesh,

    Long time no chat ??

    I was running into a similar issue here in that:

    A) I could successfully upload images into the activity form box (form#whats-new)
    But,
    B) When I press submit, only the text gets submitted, and the image stays in the activity box.

    After digging around I came across a possible workaround.

    on line 3 of mpp.js
    you defined (var jq = jQuery;)
    But I wondered if mediapress initially declared the (jq) variable, then another plugin could possibly also have the same (var jq = jQuery;) line in their plugin… Making the mediapress jq erased/cleared…. so basically the ajaxSend/ajaxComplete functions on lines 169-182 would be obsolete since another plugin re-wrote the same variable (var jq = jQuery).

    So I tested this by:
    1) Moving (Line 3: var jq = jQuery;) and moved it to (Line 1)
    2) Changed (Line 1: var jq = jQuery;) to (var jq_newbie = jQuery.noConflict();)
    3) Changed every instance of jQuery & jq into ‘jq_newbie’
    4) Refreshed the page, uploaded an image successfully, & when I pressed ‘SUBMIT’ the activity post was created with the attached image as expected. It even closed/hid the Dropzone like you wrote in your code.
    :))))))))

    So maybe all you need is to use a different variable name for jQuery so that the ajaxSend/ajaxComplete functions don’t get deleted by another plugin using the same naming convention.

    Any ways hope this helps.

    Your pal
    -Abe (not sam ?? )

    Plugin Author Brajesh Singh

    (@sbrajesh)

    Hi Abe,
    Thank you for the valuable help.

    I am still not sure that the line
    var jq = jQuery will cause any problem.

    All we are doing is declaring a new variable ‘jq’ in local scope and even if someone else decided to do it in global scope/or their local scope, It won’t be affected as it is in our local scope. Variables can be redefined in various javascript scope.

    Is there any chance that you are on 1.3.2 or below(yes, we had this issue then).

    Please see
    https://github.com/buddydev/mediapress/blob/master/assets/js/mpp.js#L3

    For the select issue, I believe It is most probably related to deleted gallery. I am pushing 1.3.4 in 30 mins(I had it ready jus pushing on wp.org). Will need your feedback too.

    Thank you
    Brajesh

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘issue:The gallery is not selected.’ is closed to new replies.