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.
I am unable to add items after the update. Add New Item is not opening the media browser to choose the files. When I compared with my local version which has older version. I see the new link is pointing to /mediabox/browser/nojs/field_product_slideshow where as my older version is pointing to /mediabox/browser/field_product_slideshow
These are my field settings:
uri_scheme (String, 6 characters ) public
mediabox_bundle (String, 7 characters ) default
mediabox_display_bundle (String, 7 characters ) default
mediabox_allowed_extensions (String, 16 characters ) gif jpg jpeg png
mediabox_image_styles_to_crop (Array, 10 elements)
origin (String, 6 characters ) origin
thumbnail (String, 9 characters ) thumbnail
medium (String, 6 characters ) medium
large (String, 5 characters ) large
mediabox_thumbnail (String, 18 characters ) mediabox_thumbnail
mediabox_detail (String, 15 characters ) mediabox_detail
mediabox_library (String, 16 characters ) mediabox_library
icon (String, 4 characters ) icon
icon2 (String, 5 characters ) icon2
slide (String, 5 characters ) slide
mediabox_default_crop_style (String, 5 characters ) slide
mediabox_default_style (String, 5 characters ) slide
mediabox_lock_aspect_ratio (Integer) 1
mediabox_show_inline_placeholder_help (Integer) 1
mediabox_show_image_info (Integer) 0
mediabox_show_additional_fields (Integer) 1
mediabox_better_ui (Integer) 0
mediabox_better_ui_settings (Array, 2 elements)
item_in_popup (Integer) 0
popup_title (String, 10 characters ) Edit image
mediabox_texts (Array, 7 elements)
add_button (String, 13 characters ) Add new items
delete_button (String, 20 characters ) Delete selected item
restore_button (String, 21 characters ) Restore selected item
browse_button (String, 16 characters ) Browse all items
upload_button (String, 16 characters ) Upload new items
add_image_text (String, 9 characters ) Add image
add_images_text (String, 10 characters ) Add images
mediabox_display (String, 7 characters ) default
0 (String, 16 characters ) mediabox_display
1 (String, 29 characters ) mediabox_image_styles_to_crop
Comment | File | Size | Author |
---|---|---|---|
#11 | mediabox-types-default.JPG | 43.14 KB | dudepal |
#11 | mediabox-field-settings.JPG | 16.49 KB | dudepal |
#11 | mediabox-ui-display.JPG | 30.95 KB | dudepal |
#11 | mediabox-ui-default.JPG | 22.29 KB | dudepal |
Comments
Comment #1
pivica CreditAttribution: pivica commentedThx for bug report.
Yes latest updates introduced some changes in backend - I didn't fully tested yet how they work with previous versions, but I don't think there should be too much problems. Sorry we are still in dev version and stuff are still changing to some degree in the backend.
Try two things before proceeding:
1. Fully clear drupal cache - everything.
2. Check your mediabox field configurations - you will maybe want to update some settings there.
Note: one more issue #2209201: Add support for configurable paths for storage and public/private storage support is currently in progress and it will again introduce some changes in backend, but again previous steps will probably be enough to help in resolving possible issues.
Comment #2
pivica CreditAttribution: pivica commentedAnd major change in latest dev is that fancybox is removed in favor of jquery ui dialog that is shipped with drupal core.
Comment #3
pivica CreditAttribution: pivica commentedIssue #2209201: Add support for configurable paths for storage and public/private storage support is done and after this commit be sure to run update.php and recheck all mediabox fields configuration.
I tested fully update and it should work basically with maybe some tweaking in fields configuration.
Closing this for now, reopen if there are still problems after update.
Comment #4
dudepal CreditAttribution: dudepal commentedIssue still not resolved. It just don't open the popup to choose file. I did following steps. I checked in FF, Chrome and IE. I also tried with jquery versions 1.5, 1.7 and 1.8
Updated module with "drush pm-update" command
Cleared cache with "drush cc all" command
I did not understand what exactly I should do here.
"Check your mediabox field configurations - you will maybe want to update some settings there."
Below are my field settings
uri_scheme (String, 6 characters ) public
mediabox_bundle (String, 7 characters ) default
mediabox_display_bundle (String, 7 characters ) default
mediabox_allowed_extensions (String, 16 characters ) gif jpg jpeg png
mediabox_image_styles_to_crop (Array, 10 elements)
origin (String, 6 characters ) origin
thumbnail (String, 9 characters ) thumbnail
medium (String, 6 characters ) medium
large (String, 5 characters ) large
mediabox_thumbnail (String, 18 characters ) mediabox_thumbnail
mediabox_detail (String, 15 characters ) mediabox_detail
mediabox_library (String, 16 characters ) mediabox_library
icon (String, 4 characters ) icon
icon2 (String, 5 characters ) icon2
slide (String, 5 characters ) slide
mediabox_default_crop_style (String, 5 characters ) slide
mediabox_default_style (String, 5 characters ) slide
mediabox_lock_aspect_ratio (Integer) 1
mediabox_show_inline_placeholder_help (Integer) 1
mediabox_show_image_info (Integer) 0
mediabox_show_additional_fields (Integer) 1
mediabox_better_ui (Integer) 0
mediabox_better_ui_settings (Array, 2 elements)
item_in_popup (Integer) 0
popup_title (String, 10 characters ) Edit image
mediabox_texts (Array, 7 elements)
add_button (String, 13 characters ) Add new items
delete_button (String, 20 characters ) Delete selected item
restore_button (String, 21 characters ) Restore selected item
browse_button (String, 16 characters ) Browse all items
upload_button (String, 16 characters ) Upload new items
add_image_text (String, 9 characters ) Add image
add_images_text (String, 10 characters ) Add images
mediabox_display (String, 7 characters ) default
0 (String, 16 characters ) mediabox_display
1 (String, 29 characters ) mediabox_image_styles_to_crop
Comment #5
dudepal CreditAttribution: dudepal commentedComment #6
pivica CreditAttribution: pivica commentedCan you recheck your 'add items' link one more time. It change again in latest dev, now it should be something like
/mediabox/browser/nojs/node/page/field_product_slideshow
where
node - is your entity name
page - is your bundle in which you are using mediabox
field_product_slideshow - is your mediabox field name
Do you have field_product_slideshow still defined on the right place?
Comment #7
pivica CreditAttribution: pivica commentedAlso check mediabox_display_bundle - from above settings it says you are using 'default' bundle. But previous version of mediabox introduced two bundles 'default' and 'display' - 'display' was correctly configured and was used by default, but there really was no need for two display bundles on install. So latest dev removed 'display' bundle so we are using now only 'default' bundle for mediabox_display entity.
But updates should not delete 'display' bundle - it should still be there and you can use it as before.
Comment #8
dudepal CreditAttribution: dudepal commentedThis is my field
http://www.mysite.com/admin/structure/types/manage/apartment/fields/fiel...
Add new items is pointing to this link
http://www.mysite.com/mediabox/browser/nojs/node/apartment/field_product...
I am using default bundle. I am not sure why its not showing the browser.
I am using this in my production which has lots of data uploaded already which is holding me up to reinstall the module. Please suggest some workaroud
Comment #9
pivica CreditAttribution: pivica commentedIf you are using default mediabox_display bundle in your field and you were doing this before latest dev changes then I think that can be a problem because previously there were two display bundles: 'default' and 'display'. But only 'display' bundle was configured correctly and 'default' was not. So I am not sure how you ended using 'default' bundle for display in the first place.
Anyway in latest dev 'display' bundle is removed from installer and 'default' bundle is configured correctly.
For a start check your 'default' mediabox display bundle - it needs to have 'mediabox_image' field which is of a type Image. Link that you want to check is on admin/structure/mediabox-ui/manage/default/fields. If it is not there this is a problem.
Tell me do you have a backup of your previous db - before updating? If yes did you try it with latest dev version?
If everything else fails can you provide me with your site dump - it will be much easier for me to figure what is exact problem?
Comment #10
pivica CreditAttribution: pivica commentedComment #11
dudepal CreditAttribution: dudepal commentedThanks for replying and sorry there is delay in giving response because my boss wanted me to move out from drupal :(
My default bundle doesnt have the image field type as you said. Please help me fix this.
Attached SS for my default, display bundle settings and also mediabox types (default) and its field settings.
I can give you temporary admin access if you let me where to send details
Comment #12
pivica CreditAttribution: pivica commentedMan sorry to hear your boss wants to go away from drupal.
Yes default ui bundle does not have mediabox_image which is not ok, but in your case it is ok because you are using display ui bundle which has mediabox_image field.
So this is not an issue that is creating your problem.
>I can give you temporary admin access if you let me where to send details
I would prefer more full dump which I can run locally - easier and faster to debug, but we can try first with admin access. You can send me access data over private message. Please back up db before this - I don't want to mess something that can not be restored later ;)
Comment #13
NexusStar CreditAttribution: NexusStar commentedI've run in the same problem, could someone point me from where to start solving it?
Comment #14
pivica CreditAttribution: pivica commentedOK I did update on couple of clients sites to latest dev version on mediabox and really didn't stumble for now on any special problem.
The only thing I can suggest for now is to check permission section - before mediabox basically didn't do any kind of permission checking for file uploading. This is fixed in latest dev version so now users that can upload images over mediabox should have this two permissions
'access mediabox library'
'upload mediabox files'
Maybe this permissions are not named the best but at least they are working now.
Comment #15
stilborg CreditAttribution: stilborg commentedI have the same problem, everything was working until last update.
Being totally new to drupal I am kinda stuck here
2. Check your mediabox field configurations - you will maybe want to update some settings there.
I have no idea what that means... Did anyone do this with success?
Comment #16
stilborg CreditAttribution: stilborg commentedOk, I need to move to a different solution, can't get MediaBox to work due to this bug.
But how the heck do I uninstall it? I can't even seem to disable it, and I can't see any other modules that rely on it.
Any suggestions?
Comment #17
pivica CreditAttribution: pivica commentedJust a quick info dudepal sent to me partial dump of his site - i will look into it today.
Comment #19
NexusStar CreditAttribution: NexusStar commentedCan someone point me how to solve this or how to debug from where is the error. When I click the button "Add new item" nothing happens just JS error "Uncaught TypeError: object is not a function "
I don't know how to debug this could someone help here.
Comment #20
pivica CreditAttribution: pivica commented@NexusStar can you provide me with dump of your environment so I can debug it locally?
Comment #21
NexusStar CreditAttribution: NexusStar commented@pivica I send you link on private message
Comment #22
dudepal CreditAttribution: dudepal commented@pivica did my dump help you?
Comment #23
psychobyte CreditAttribution: psychobyte commentedI'm dealing with this issue as well. Any progess?
Comment #24
sheldonkemper CreditAttribution: sheldonkemper commentedWonder if this might be the issue. Console throws a 404 "The requested URL "/js/jquery.plupload.queue/jquery.plupload.queue.js?v=1.5.1.1&_=1409341745088" was not found on this server."
Although it does find the plupload.css
Comment #25
giupenni CreditAttribution: giupenni commentedI have the same problem, any news?
Comment #26
smndey CreditAttribution: smndey commentedI am also facing the same issue. Any update folks.
Comment #27
helderluis CreditAttribution: helderluis commentedSame issue here. Is this module dead?