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
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

pivica’s picture

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

pivica’s picture

And major change in latest dev is that fancybox is removed in favor of jquery ui dialog that is shipped with drupal core.

pivica’s picture

Status: Active » Fixed

Issue #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.

dudepal’s picture

Issue summary: View changes
Status: Fixed » Active

Issue 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

dudepal’s picture

Issue summary: View changes
pivica’s picture

Can 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?

pivica’s picture

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

dudepal’s picture

This 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

pivica’s picture

If 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?

pivica’s picture

Component: User interface » Code
dudepal’s picture

Thanks 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

pivica’s picture

Man 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 ;)

NexusStar’s picture

I've run in the same problem, could someone point me from where to start solving it?

pivica’s picture

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

stilborg’s picture

I 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?

stilborg’s picture

Ok, 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?

pivica’s picture

Just a quick info dudepal sent to me partial dump of his site - i will look into it today.

  • Commit d593cdc on 7.x-1.x by pivica:
    Issue #2212791 by pivica: Better UI js code was not working properly for...
NexusStar’s picture

Can 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 "

Uncaught TypeError: object is not a function VM6153:72
(anonymous function) VM6153:72
(anonymous function) jquery.js?v=1.8.2:564
jQuery.extend.globalEval jquery.js?v=1.8.2:565
jQuery.ajaxSetup.converters.text script jquery.js?v=1.8.2:8240
ajaxConvert jquery.js?v=1.8.2:8125
done jquery.js?v=1.8.2:7764
callback jquery.js?v=1.8.2:8500
send jquery.js?v=1.8.2:8506
jQuery.extend.ajax jquery.js?v=1.8.2:7968
(anonymous function) jquery.js?v=1.8.2:5994
jQuery.extend.each jquery.js?v=1.8.2:611
jQuery.fn.extend.domManip jquery.js?v=1.8.2:5991
jQuery.fn.extend.append jquery.js?v=1.8.2:5764
(anonymous function) jquery.js?v=1.8.2:5891
jQuery.extend.access jquery.js?v=1.8.2:814
jQuery.fn.extend.html jquery.js?v=1.8.2:5855
Drupal.ajax.commands.insert ajax.js?v=7.28:489
Drupal.ajax.success ajax.js?v=7.28:400
ajax.options.success ajax.js?v=7.28:164
fire jquery.js?v=1.8.2:974
self.fireWith jquery.js?v=1.8.2:1082
done jquery.js?v=1.8.2:7788
callback

I don't know how to debug this could someone help here.

pivica’s picture

@NexusStar can you provide me with dump of your environment so I can debug it locally?

NexusStar’s picture

@pivica I send you link on private message

dudepal’s picture

@pivica did my dump help you?

psychobyte’s picture

I'm dealing with this issue as well. Any progess?

sheldonkemper’s picture

Wonder 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

giupenni’s picture

I have the same problem, any news?

smndey’s picture

I am also facing the same issue. Any update folks.

helderluis’s picture

Same issue here. Is this module dead?