IMCE - not working with MAX

khm's picture
khm
Mon, 11/09/2015 - 12:28
#1
IMCE - not working with MAX

Hi

I have used IMCE (https://www.drupal.org/project/imce) for file directory service/personal profiles on several Drupal sites with success. Even have paid for some extra functions.

After hours of trial & error + research I cannot get it to work properly with MAX.

Problem 1: when clicking IMCE file browser Window under a user profile page in MAX the following error shows up: 

Notice: Undefined index: #title in md_max_textfield() (line 14 of /sites/all/themes/md_max/theme/textfield.theme.inc).

That erro can be eliminated by commenting out line 14 (but I gather that is not a solution).

The biggest problem however is that buttons in IMCE are missing. 

I have tried to change JQuery to 1.7. Some said that would work. But no result. Then I tried several suggestion from the forum but still no success.

https://www.drupal.org/node/1181070

Pls help! :) Thanks

Image title

khm's picture
khm
Tue, 11/10/2015 - 02:57

I did some more checking this morning and it looks to be a script error that prevents the buttons from being loaded and the view from working. Viewing the IMCE tab with a script analyzer the following error is being caught

TypeError: $(...).tabs is not a function

/sites/all/themes/md_max/js/scripts.js?nxkwq2:200

Did a test: commented out from line 200 in scripts.js

          $(".tabs").tabs({
                fx: {
                    opacity: 'toggle'
                }
            });

Buttons works... but I still see en error when the tab is loaded, can you pls help me find a more tidy way of getting things to work? 

Cheers and thanks

khm's picture
khm
Tue, 11/10/2015 - 03:20

Is this https://orkjern.com/jquery-not-working-drupal-7-not-function a solution that can be used to solve the script problem? Well I trust you know the best solution. 

Error Notice: Undefined index: #title in md_max_textfield() (line 14 of /sites/all/themes/md_max/theme/textfield.theme.inc) is perhaps related to the other script error?

phuonght's picture
phuonght
Tue, 11/10/2015 - 23:23

We checked and could not see button file brower.

Please try to delete line 14 in file textfield.theme.inc.

khm's picture
khm
Wed, 11/11/2015 - 11:10

Hi, commented out and error gone :) 

Everything else seems to be working so I guess that's resolved.

How about my solution to the JS error, i.e. commenting out from line 200 (See above). is that a ok solution?

Thanks

phuonght's picture
phuonght
Wed, 11/11/2015 - 22:02

Line 200 only relates to interface. Problem is solved and we think it is good solution :)

khm's picture
khm
Thu, 11/12/2015 - 03:31

Thanks sir! Case closed :)

Log in or register to post comments
Have More Idea?

We are here to build your website!

No Universal solution fits all special business requirements. Our experienced team is ready with ideas and state-of-the-art technical solutions to consult the best solution within your budget.