Last modified: 2014-08-18 17:05:30 UTC
When I send a user a friend request I receive an email notification, I click on the link and get direceted to Special:ViewRelationshipRequests I click Accept and it doesnt do anything. It just sits there. I am using MediaWiki 1.23.2 and SocialProfile 1.7.0 (9ded612) 14:52, 22 July 2014. It also happens if I click reject. It works fine in Mediawiki 1.19 in my other wiki with the same configuration. My Config (unrelated to the relationship aspect of SocialProfile) is: $wgUserProfileDisplay['friends'] = true; $wgUserProfileDisplay['foes'] = true; $wgUserBoard = true; $wgUserProfileDisplay['board'] = true; $wgUserProfileDisplay['stats'] = true; require_once("$IP/extensions/SocialProfile/UserStats/EditCount.php"); // Necessary edit counter // The actual user level definitions -- key is simple: 'Level name' => points needed $wgUserLevels = array( 'Recruit' => 0, 'Apprentice' => 1200, 'Private' => 1750, 'Corporal' => 2500, 'Sergeant' => 5000, 'Gunnery Sergeant' => 10000, 'Lieutenant' => 20000, 'Captain' => 35000, 'Major' => 50000, 'Lieutenant Commander' => 75000, 'Commander' => 100000, 'Colonel' => 150000, 'Brigadier' => 250000, 'Brigadier General' => 350000, 'Major General' => 500000, 'Lieutenant General' => 650000, 'General' => 800000, 'General of the Army' => 1000000, ); $wgUserStatsPointValues['edit'] = 50; // Points awarded on a mainspace edit $wgUserStatsPointValues['vote'] = 10; // Points awarded for voting for an article $wgUserStatsPointValues['comment'] = 5; // Points awarded for leaving a comment $wgUserStatsPointValues['comment_plus'] = 5; // Points awarded if your comment gets a thumbs up $wgUserStatsPointValues['comment_ignored'] = 0; // Points awarded if another user ignores your comments $wgUserStatsPointValues['opinions_created'] = 5; // Points awarded for writing a blog article $wgUserStatsPointValues['opinions_pub'] = 100; // Points awarded for having that article hit the "Blogs" page $wgUserStatsPointValues['referral_complete'] = 100; // Points awarded for recruiting a new user $wgUserStatsPointValues['friend'] = 50; // Points awarded for adding a friend $wgUserStatsPointValues['foe'] = 50; // Points awarded for adding a foe $wgUserStatsPointValues['gift_rec'] = 0; // Points awarded for receiving a gift $wgUserStatsPointValues['gift_sent'] = 0; // Points awarded for giving a gift $wgUserStatsPointValues['points_winner_weekly'] = 100; // Points awarded for having the most points for a week $wgUserStatsPointValues['points_winner_monthly'] = 1000; // Points awarded for having the most points for a month $wgUserStatsPointValues['user_image'] = 1000; // Points awarded for adding your first avatar $wgUserStatsPointValues['poll_vote'] = 50; // Points awarded for taking a poll $wgUserStatsPointValues['quiz_points'] = 5; // Points awarded for answering a quiz question $wgUserStatsPointValues['quiz_created'] = 30; // Points awarded for creating a quiz question $wgNamespacesForEditPoints = array( 0 ); // Array of namespaces that can earn you points. Use numerical keys. Default is 0 -- only main namespace edits can earn a user points. $wgShowExceptionDetails = true;
I can't reproduce this and I don't think it's a SocialProfile bug, but rather a bug in your particular setup, as plenty of other wikis running master version of SocialProfile and MediaWiki 1.23.x are working just fine. On most (if not all?) pages on your wiki I get a JavaScript error in the browser's console: "Unknown dependency: json". SocialProfile (nor any of the related social tools, if memory serves me correct) doesn't use JSON in its JavaScript files; in fact, the only matches for "json" in SocialProfile are related to the internationalization files, which in turn have nothing to do with JavaScript. Now, this JavaScript error is enough to trigger a "chain reaction" in that it breaks other scripts -- such as SocialProfile's -- that run after it. Special:ViewRelationshipRequests requires JavaScript in order to function properly. Your problem is likely caused by an extension or extensions designed for MediaWiki 1.24alpha/master only. I can't say for sure, given that you have plenty of extensions installed, but I think this might be caused by MobileFrontend: in the current master version of MobileFrontend, in the file /extensions/MobileFrontend/includes/Resources.php, the mobile.nearby module depends on jquery.json module, and modules named jquery.<something> are usually (but not always) MediaWiki core modules, but in 1.23 there's no such module in core. As a final note unrelated to the issue at hand, you might want to uninstall ExtensionDistributor, since (as per its description page on MediaWiki.org: https://www.mediawiki.org/wiki/Extension:ExtensionDistributor) it's basically useless outside MediaWiki.org.