Problem running GuMaxDD 1.4 with Mediawiki 1.17

If you are having problems with GuMax, post here.
User avatar
freggern
Rank 1
Rank 1
Posts: 5
Joined: July 30th, 2010, 6:40 pm

Problem running GuMaxDD 1.4 with Mediawiki 1.17

Post by freggern »

ERROR1

Code: Select all

ERROR: stylepath is not defined
FILE: /wiki/skins/common/wikibits.js?301 (584)
ERROR2

Code: Select all

ERROR: jQuery is not defined
FILE: /wiki/skins/gumaxdd/scripts/jquery.droppy.js?301 (5)
ERROR3

Code: Select all

ERROR: jQuery is not defined
FILE: /wiki/index.php/Hauptseite (39)
ERROR1
This ERROR I fix with this changes:
GuMaxDD.php
Change Line 114 from

Code: Select all

<script type="<?php $this->text('jsmimetype') ?>" src="<?php $this->text('stylepath' ) ?>/common/wikibits.js?<?php echo $GLOBALS['wgStyleVersion'] ?>"><!-- wikibits js --></script>
to

Code: Select all

<!--<script type="<?php $this->text('jsmimetype') ?>" src="<?php $this->text('stylepath' ) ?>/common/wikibits.js?<?php echo $GLOBALS['wgStyleVersion'] ?>"></script>-->
Because this looks like loaded with the $this->html('bottomscripts');
ERROR2 && ERROR3
This ERRORS I fix with replace line 135-137

Code: Select all

	<!-- deprecated due to new mediwiki already contain jQuery since 1.16.0, use $wgOut->includeJQuery() instead.
	<script type="<?php $this->text('jsmimetype') ?>" src="<?php $this->text('stylepath') ?>/<?php $this->text('stylename') ?>/scripts/jquery-1.4.2.min.js?<?php echo $GLOBALS['wgStyleVersion'] ?>"></script>
	-->
with

Code: Select all

<script type="<?php $this->text('jsmimetype') ?>" src="<?php $this->text('stylepath') ?>/<?php $this->text('stylename') ?>/scripts/jquery-1.4.2.min.js?<?php echo $GLOBALS['wgStyleVersion'] ?>"></script>
So now my Problem I get

Code: Select all

ERROR: jQuery("#gumax-nav").droppy is not a function
FILE: /wiki/index.php?title=Hauptseite
LINE: 39
In the moment I have no idear to fix this problem...

Regards,
freggern
User avatar
Paul
Development Team Leader
Development Team Leader
Posts: 1132
Joined: October 20th, 2007, 2:23 pm

Re: Problem running GuMaxDD 1.4 with Mediawiki 1.17

Post by Paul »

Sounds there is new issue with new wiki 1.17?
User avatar
Paul
Development Team Leader
Development Team Leader
Posts: 1132
Joined: October 20th, 2007, 2:23 pm

Re: Problem running GuMaxDD 1.4 with Mediawiki 1.17

Post by Paul »

BTW, new wiki 1.17 is not released officially... so I rather wait for the official version.
User avatar
freggern
Rank 1
Rank 1
Posts: 5
Joined: July 30th, 2010, 6:40 pm

Re: Problem running GuMaxDD 1.4 with Mediawiki 1.17

Post by freggern »

Hmm, ok... I fix the problem by my testwiki...

I change

Code: Select all

jQuery(function() { jQuery('#gumax-nav').droppy({speed: 200}); });
to

Code: Select all

/*jQuery(function() { jQuery('#gumax-nav').droppy({speed: 200}); });*/
	jQuery(function() {
	 jQuery.noConflict();
	 $('#gumax-nav').droppy({speed: 100});
	});
Regards,
freggern
User avatar
Paul
Development Team Leader
Development Team Leader
Posts: 1132
Joined: October 20th, 2007, 2:23 pm

Re: Problem running GuMaxDD 1.4 with Mediawiki 1.17

Post by Paul »

Thanks a lot freggern... I will keep an eye on the new wiki release...
User avatar
freggern
Rank 1
Rank 1
Posts: 5
Joined: July 30th, 2010, 6:40 pm

Re: Problem running GuMaxDD 1.4 with Mediawiki 1.17

Post by freggern »

The beta is out and I have one Problem -_-

The

Code: Select all

<?php print Skin::makeGlobalVariablesScript( $this->data ); ?>
not working anymore so the javascript mediaWiki.config.set not display and the resouce loader doesn't include in the skin...

Anyone have a idear to fix this ? :)

Regards,
freggern
User avatar
HollowMac
Rank 0
Rank 0
Posts: 2
Joined: June 23rd, 2011, 4:52 am

Re: Problem running GuMaxDD 1.4 with Mediawiki 1.17

Post by HollowMac »

Hi,

It seems that drop down menu of GumaxDD 1.4 doesn't work with MediaWiki 1.17.

Best Regards.
User avatar
gsic
Rank 0
Rank 0
Posts: 1
Joined: June 27th, 2011, 9:31 am

Re: Problem running GuMaxDD 1.4 with Mediawiki 1.17

Post by gsic »

I applied this solution to this error and it's fixed:

Replace this original code in 1.4 version:

Code: Select all

<script type="<?php $this->text('jsmimetype') ?>"> jQuery(function() { jQuery('#gumax-nav').droppy({speed: 200}); });</script>
With this modified code:

Code: Select all

<script type="<?php $this->text('jsmimetype') ?>">jQuery(document).ready(function($) { $(function() { $('#gumax-nav').droppy({speed: 200}); }) });</script>
This fix was obtained from this MediaWiki page: http://www.mediawiki.org/wiki/JQuery
User avatar
HollowMac
Rank 0
Rank 0
Posts: 2
Joined: June 23rd, 2011, 4:52 am

Re: Problem running GuMaxDD 1.4 with Mediawiki 1.17

Post by HollowMac »

Yes, it works ! :) Thank you for your help ;)
User avatar
zeroy
Rank 1
Rank 1
Posts: 6
Joined: April 19th, 2011, 1:12 pm

Re: Problem running GuMaxDD 1.4 with Mediawiki 1.17

Post by zeroy »

Thanks this solved my drop down menu problem :)
Post Reply