Extension talk:SocialProfile/Archive 8

''Please post new topics here, with the newest posts being at the bottom of the page. Discussions are archived gradually, so please check the archives to make sure that your question hasn't been answered already!''

Avatar Magic Word
Is there any way (or could it be added) to display the avatar of a specified user as a magic word, such as or ? That would enable much greater interaction with social profiles throughout the wiki - in discussions, user listings, requests for adminship and other community business. Gboyers 23:54, 27 January 2012 (UTC)


 * There isn't such a magic word, but creating one should be relatively easy. I'd suggest a filing a ticket on the Bugzilla so that this feature request won't be forgotten. --Jack Phoenix (Contact) 12:27, 28 January 2012 (UTC)

If not, are the avatar pics stored with the user's name in their file name? If yes, I could maybe come up with some code to show the user's avatar (something like . Thanks! Stefahn (talk) 13:59, 29 April 2013 (UTC)
 * Hi Jack, I'm very interested in this feature too (I checked the archives and found other users that would love to see this too). Is there any update on the issue?


 * There's the Bugzilla ticket (34008) but besides that, I haven't made any progress regarding this feature (and frankly, it's not very high on my to-do list). The avatar URLs include the database name ($wgDBname), the user's internal, numeric ID number and a letter indicating the size of the avatar. You might want to try taking a look at the wAvatar class in extensions/SocialProfile/UserProfile/AvatarClass.php; the class is somewhat documented nowadays and it even includes some example code which might help you get started. --Jack Phoenix (Contact) 14:57, 29 April 2013 (UTC)


 * Thanks for your quick reply. I now voted for that bug fix ;) I will use another approach in the meantime (without SocialProfile) but would love to see this though. Stefahn (talk) 17:21, 29 April 2013 (UTC)
 * Just a quick note, this has now been implemented. :) UltrasonicNXT (talk)

New messages
Hi, on Mediawiki system, when someone edits the User_talk of another user, it has a notice at the top of the page indicating when the user is online. The extension this time includes the new message system (board), but it only sends an email when someone left a new message on the board. I wonder if there is anyway to display a notification when a user is online? (Or can it be added if there's no way yet?). It may be similiar to the User_talk or having a new button like "My new messages ", with the number of new messages in the parentheses and then link it to Special:UserBoard. The "My new messages " button can be next to the "My talk" button.

Thanks in advance -- Thucproa1 04:11, 29 January 2012 (UTC)


 * It can be done, and extensions such as LiquidThreads have done it (you can see an example on this very wiki &mdash; a default MW instance doesn't have "new messages" link in the top right in the Monobook skin).


 * It's a good idea, although I'm afraid I don't have the time to implement it right now. I'd suggest filing a ticket on the Bugzilla. For now, you can use the  tag (in conjunction with the WikiTextLoggedInOut extension maybe) to display "you have new board messages" etc. to the user. Do note that you need to require the UserWelcome.php file separately by adding   to the wiki's LocalSettings.php. Add the tag to a prominent place, such as the wiki's main page, so that the users will see it after logging in. --Jack Phoenix (Contact) 18:20, 29 January 2012 (UTC)


 * I have tested  with the trunk version of this extension, and my MW version is 1.18.0. When the user has a new gift or a relationship request, it displays a notification, but a notice "have new message" is not displayed when user has a new message. Maybe I missed some configuration in LocalSettings.php or something? --Thucproa1 14:39, 30 January 2012 (UTC)


 * UserWelcome doesn't have any configuration, it should work out of the box...if it doesn't, that's definitely a bug; please file it as such on the Bugzilla. --Jack Phoenix (Contact) 11:24, 4 May 2012 (UTC)

Points System
I get Warning: Invalid argument supplied for foreach in UserStatsClass.php on line 685 constantly. Is there any way to disable the point calculations? Aedgington 23:15, 4 February 2012 (UTC)


 * Not really. You could disable that warning, though. See below for info on how to do that. --Jack Phoenix (Contact) 11:24, 4 May 2012 (UTC)

Upload Avatar does not appear to be working - Mediawiki 1.17.2
I am attempting to upload an avatar after installing the extension, but nothing happens - i get no image on the page, and no image is placed in the avatar folder

I have read (either here or in the archive) that the confimation e-mail may be needed to make this work

That is a problem, because my wiki has no mail functionality. Is there a way i can either turn off the e-mail confirmation, or confirm all my users without the mail?

It is a wiki that is restricted to a specific domain, and only a set of specific users can access it, so having this turned of is not a concern for me.
 * does the user or group have upload permissions?. --thorstenveenstra 14:10, 8 February 2012 (CET)
 * did you make your "avatar" folder writable? When you look on folder "avatar" on your server via FTP tool, its "Owner" must be "apache". --Thucproa1 17:18, 8 February 2012 (UTC)
 * all administrators and users have upload permissions - i just verified. My server is 2008 R2 and the IIS user has write permissions to the image directory, and the avatars directory inside. Normal file and image uploads work fine.    I try to upload an avatar, and it appears to complete with no issue, but the image is not in the directory and the preview screen (showing all the sizes) is blank.
 * I reinstalled from today's trunk, and it works fine -- sigh -- this has been my situation all week.   Thanks for the help!!

I'm seeing the same problem avatars dir is 777 recursive useing a user w/ all rights norm uploads work fine .... no errors in apache log ... im not sure what to look for next
 * Corrected image folder was in the root not under images

update.php
I am using MAMP and when I go to the maintenance directory from terminal and type $php update.php all I get is an error that says command not found  Help! 24.130.249.87 00:01, 27 February 2012 (UTC)
 * Did you try php update.php instead?Jasper Deng (talk) 01:40, 27 February 2012 (UTC)

Deleted a table
Hi. I deleted the admin gift table from the database and now the extension doesn't work. I ran the update script hoping to get the table back but it didn't work. How do I re install the extension? Thank you 67.59.193.62 20:42, 27 February 2012 (UTC)

edit - now I'm getting this really bad looking database error that doesn't get fixed if I remove the Required once string from local settings.

Here it is: ''A database error has occurred Query: SELECT value,exptime FROM `objectcache` WHERE keyname = 'wikiaudio:stats:request_with_session' LIMIT 1 FOR UPDATE Function: SqlBagOStuff::incr Error: 145 Table './wikiaudio/objectcache' is marked as crashed and should be repaired (localhost)''

EDIT I fixed the second error with a simple mysql phpmyadmin table repair. Still am not sure how to get the table back however 24.130.249.87 05:23, 28 February 2012 (UTC)


 * Can you enable MySQL query logging temporarily and then run php update.php to see what DB queries are performed against the database?


 * Alternatively you could go the non-geeky route and just run php maintenance/sql.php extensions/SocialProfile/UserGifts/usergifts.sql, but that wouldn't be fun at all. (Still, I'm pretty sure that re-running update.php should create the table...) --Jack Phoenix (Contact) 11:24, 4 May 2012 (UTC)

Problem with uploading avatars for users
Hey all!

I have a wiki, in which users don't have editing permission. I've created a group called 'staff', only which have editing permission. However, I want users to be able to upload avatars to their SocialProfile, and that doesn't work. When a user tries to upload an avatar it says only 'staff' and sysops have that permission. users can edit their profile without a problem.

What am I doing wrong?

Thanks,

Asaf

—The preceding unsigned comment was added by 94.159.139.150 (talk • contribs)


 * Special:UploadAvatar allows users with the upload permission to upload avatars; this same permission is required to use Special:Upload, the standard MediaWiki upload form for uploading media to the wiki. --Jack Phoenix (Contact) 11:24, 4 May 2012 (UTC)

Failed to UploadAvatar
It shows: Warning: Invalid argument supplied for foreach in X:\xampp\htdocs\wiki\extensions\SocialProfile\UserStats\UserStatsClass.php on line 685

Wiki version is: 1.18.1

I have upload rights
 * Make sure you have the correct version of SocialProfile for your version of MediaWiki.Jasper Deng (talk) 01:57, 4 March 2012 (UTC)


 * I have the same problem. The solution? thks82.51.61.141


 * I'm still not sure what's causing that warning, maybe it's a misconfigured $wgUserStatsPointValues or $wgUserLevels or something. If it bothers you that much and you don't want to turn off error reporting, wrap the offending line in wfSuppressWarnings; and wfRestoreWarnings; so that the line foreach ( $this->point_values as $point_field => $point_value ) { would look something like this:


 * That should hopefully get rid of that notice. --Jack Phoenix (Contact) 11:24, 4 May 2012 (UTC)

Invite Contacts
bringing up an old issue but i was wondering if it will be looked into

Checking the 'Relationship Requests' page for requests and finding none, there is a message stating: 'You have no friend or foe requests. If you want more friends, invite them!'

Following the 'invite them' link will lead to a non existant page, that comes up with this error:

No such special page

You have requested an invalid special page.

A list of valid special pages can be found at Special:Specialpages.

Return to Main Page.

—The preceding unsigned comment was added by Aditaa (talk • contribs)


 * It will be looked into whenever someone has the time and resources to do that. Please keep in mind that I'm doing all this on my spare time, without being paid by anyone &mdash; while it can be fun and rewarding at times, it sadly doesn't pay my bills. In addition to that, I have plenty of other online projects to take care of.


 * I committed a (more) updated version of InviteContacts to SVN in r84110 because someone requested it via e-mail; they said they were interested in fixing the extension. InviteContacts was later on removed from SVN due to licensing concerns (apparently it contains parts of some proprietary PHP application), but I wouldn't call that the real problem; I'd call the bad code quality the real problem.


 * If you want to fix it or know someone who'd be interested in fixing it, feel free to! The code is out there after all. --Jack Phoenix (Contact) 11:24, 4 May 2012 (UTC)


 * Hi, it's 2014 and it doesn't work... Is there a plan to fix this problem? Or has somebody fixed the problem? --hollosch (talk) 23:32, 15 January 2014 (UTC)


 * No and no. If you want to write a library/libraries to support importing contacts from major social networking sites and e-mail service providers, you're more than free to. (The original issue with InviteContacts was that it used a proprietary and very ugly PHP library called GetMyContacts; I fiddled around with OpenInviter, but it appears to be just as broken as GetMyContacts.) --Jack Phoenix (Contact) 07:21, 16 January 2014 (UTC)

update 1.5
hi all, where i find socialprofile 1.5? Here i found old version. i have mediawiki 1.8. thks;) —The preceding unsigned comment was added by 82.51.58.250 (talk • contribs)


 * Go to ExtensionDistributor again and select "Development version (trunk)" to get the newest version of SocialProfile (which, at the time of writing, is 1.5). --Jack Phoenix (Contact) 11:24, 4 May 2012 (UTC)

Can you add Gravatar support?
Which will be much more convince for users. —The preceding unsigned comment was added by Zoglun (talk • contribs)


 * Personally I'm not too fond of Gravatar, but I can see why someone would like to use it. You could file a feature request ticket on Bugzilla to get this tracked, but I can't promise that I'd start working on it anytime soon. --Jack Phoenix (Contact) 11:24, 4 May 2012 (UTC)

Is it really friending?
That is, does it just make friend lists, or is there also a mechanism to get alerts on the activity of friends, or see their activity on some special page, without visiting each one individually? A friend list is a good start, but activity tracking is what makes it social. —The preceding unsigned comment was added by Salquint (talk • contribs)


 * Yes, it makes friend lists, but there's also Special:UserActivity, which should show your friends' activity on the site...in practise it seems to also show the activity of friends of your friends. --Jack Phoenix (Contact) 11:24, 4 May 2012 (UTC)


 * Cool, I'll try it out, thanks for the info. In my case, I'd want to transclude it onto a page that has other user specific things on it, so this could work ...although I'm not sure how the activity of friends of friends will be met.  --Salquint (talk) 14:32, 4 May 2012 (UTC)

On SQLite?
I use an SQLite DB, the problem is that when I updated my DB, after installing SocialProfile, the DB crashed. Is there any solution. Also, the avatar upload does not work, even using MySQL. I cannot switch to any other DB because of the number of active users.--Muqman 52 (talk) 05:01, 11 May 2012 (UTC)


 * I don't think no-one's ever tested SocialProfile with SQLite &mdash; it may work, but then again it might not; it's been built against and tested almost exclusively on MySQL only.


 * As for avatar issues, try upgrading to r115379. --Jack Phoenix (Contact) 15:37, 4 June 2012 (UTC)

Turning off sections of the Profile
Is there a way to turn off sections of the Profile; particularly the Other Information and Custom Information tabs. Further, can individual fields be turned off? I would like to pilot SocialProfile in my company but the more personal/consumer/facebook-like fields such as Movies are frowned upon as having no business value OR there is a legal concern about collect personal information in Europe and other countries. --Tim W (talk) 11:27, 11 May 2012 (UTC)


 * There are no configuration variables for that, but you can always edit the source code. --Jack Phoenix (Contact) 15:37, 4 June 2012 (UTC)

Reset User Activities
Can I delete all content on page Special:UserActivities? I want to reset it. Thucproa1 (talk) 06:35, 13 May 2012 (UTC)


 * I don't think that's possible, sorry. --Jack Phoenix (Contact) 15:37, 4 June 2012 (UTC)

My Users can't upload new avatar
Hi, i just install Social Profile in my mediawiki 1.19.0 but when i enter into "Upload Avatar" server send the next message:

Warning: Missing argument 1 for SpecialUploadAvatar::loadRequest, called in /var/www/mediawiki/mediawiki3/includes/specials/SpecialUpload.php on line 159 and defined in /var/www/mediawiki/mediawiki3/extensions/SocialProfile/UserProfile/SpecialUploadAvatar.php on line 35

Fatal error: Call to a member function getUpload on a non-object in /var/www/mediawiki/mediawiki3/includes/upload/UploadFromFile.php on line 19

any solution for this problem? —The preceding unsigned comment was added by Hevercking (talk • contribs)


 * Try upgrading to r115379. --Jack Phoenix (Contact) 15:37, 4 June 2012 (UTC)

Uninstall
Hi, how can i uninstall the extension completly and correctly (database, etc.) ? —The preceding unsigned comment was added by Hollosch (talk • contribs)


 * How can you uninstall something incorrectly? ;-)


 * That being said, uninstallation's pretty much the same as it's for any extension; remove the require_once line and any associated configuration settings from your wiki's LocalSettings.php and drop the database tables created by the extension (gift, system_gift, user_board, user_gift, user_profile, user_relationship, user_relationship_request, user_stats, user_status, user_status_history, user_status_likes, user_system_gift and user_system_messages).


 * Although having the database tables around isn't going to do any harm and it's useful if you decide to reinstall SocialProfile one day. --Jack Phoenix (Contact) 15:37, 4 June 2012 (UTC)


 * Thanks !!! --109.193.123.129 08:58, 5 June 2012 (UTC)

Install docs
Afternoon - I've just installed the extension on a Wiki I maintain but I don't have command line access to run the install routine (e.g. the update.php) on the hosting package I use.

I've created the tables manually by trawling the folders within the extension but it would be nice if you could package with the source a brief ReadMe that details the table names created and the permissions needed for any subfolders. I'm pretty sure I have them all (and renaming all tables to 'mw_' fooled me :P) - I know perhaps my situation is unusual in not being able to run command line PHP (perhaps not) but I'm not averse to copy/pasting command line SQL and so on. Lyndka@hotmail.co.uk
 * Edited to Add I know you probably know it's happening but the Gift Manager tries to display the Gift Image when you create a Gift - but you haven't uploaded the image for it yet (the image upload seems to try and do the same thing). How feasible to add a 'default' icon something like an exclamation point (!) as the gift image until it's overwritten? Lynd. —The preceding unsigned comment was added by 80.177.187.99 (talk • contribs)


 * Adding a default icon shouldn't be too hard, I believe. Please file a bug report/feature request on our Bugzilla. --Jack Phoenix (Contact) 14:21, 7 April 2013 (UTC)

Crash on install
I am trying to install this extension. I place the SocialProfile folder into my extensions directory and I add the appropriate line to Local Settings. But when I try to go to /mw-config to update I get a HTTP Error 500 the same for the user pages. I am running MW 19.2, does anyone know what could be causing this error? wilmer.lindau@epicnuts.com —The preceding unsigned comment was added by 83.172.95.178 (talk • contribs)


 * You should take a look at Manual:How to debug and try to find out just what is causing the HTTP 500 error. --Jack Phoenix (Contact) 14:21, 7 April 2013 (UTC)

Sharing avatat between wikis?
I have several wikis. I am sharing all of SocialProfile database tables with my another wikis, but don t know how to do the same with profile avatars?

06:17, 21 January 2013 (UTC) —The preceding unsigned comment was added by 91.127.238.255 (talk • contribs)


 * It's not really possible at the moment. Please file a bug report/feature request on our Bugzilla. --Jack Phoenix (Contact) 14:21, 7 April 2013 (UTC)

Global settings
Excuse my ignorance; I'm probably missing something obvious, but is there a way to have avatars, profile information, points and user levels update for the same user globally on a wiki family, similar to how it is done on Wikia wikis? Would $wgSharedDB do it? If so, which tables would I need to use? --GeorgeBarnick (talk) 05:00, 5 March 2013 (UTC)


 * Not really, since point data is based on edits, which reside in the  table, which in turn is wiki-specific. You can file a bug report/feature request on our Bugzilla if you wish for such a feature to be implemented one day. --Jack Phoenix (Contact) 14:21, 7 April 2013 (UTC)

Default board messages configuration
Hi, is it possible to configure the board messages to "private" as default? --hollosch (talk) 00:00, 12 March 2013 (UTC)


 * It's not configurable per se, but you can hack the extension for your purposes to make that option the default. --Jack Phoenix (Contact) 14:21, 7 April 2013 (UTC)

Translate
Hi, somebody can add text to translate on translatewiki.net? I want use this amazing extension, but I want use it in my native language - Polish. Translate from files is bad idea, because I do it only for me, and after update, I must translate again. Greetings, Rycerzodie (talk) 11:29, 7 April 2013 (UTC)


 * As far as I'm aware, SocialProfile has been available on translatewiki.net for localization for many years. If this isn't the case, please poke the appropriate people on the #mediawiki-i18n IRC channel on freenode. --Jack Phoenix (Contact) 14:21, 7 April 2013 (UTC)

Can't create the database table needed to install SocialProfile on my MW 1.20.3 localhost
I keep getting the following when I try to run update.php (either web updater or command line):

The last attempted database query was: "CREATE TABLE `user_board` ( `ub_id` int(11) PRIMARY KEY auto_increment, `ub_user_id` int(11) NOT NULL default '0', `ub_user_name` varchar(255) NOT NULL default , `ub_user_id_from` int(11) NOT NULL default '0', `ub_user_name_from` varchar(255) NOT NULL default , `ub_message` text NOT NULL, `ub_type` int(5) default '0', `ub_date` datetime default NULL ) ENGINE=InnoDB, DEFAULT CHARSET=binary " from within function "DatabaseBase::sourceFile( C:\xampp\htdocs\mediawiki\extensions\SocialProfile/UserBoard/user_board.sql )". Database returned error "1146: Table 'my_wiki.user_board' doesn't exist (localhost)"

Arcane21 (talk • contribs) 00:46, 9 April 2013‎


 * Frankly, beats me. I just tested this locally on my Windows 7 Ultimate with the ShoutWiki codebase (which in reality is just the normal MediaWiki stack + a bunch of extensions + some strange hacks against edge case fatal errors and whatnot) by running update.php from CLI and it worked flawlessly. Try again, maybe? You could also post details about your environment &mdash; I can see that you're using Windows and XAMPP, but that doesn't tell me much. --Jack Phoenix (Contact) 20:11, 14 April 2013 (UTC)
 * Thanks for getting back to me. My environment is as follows:

MediaWiki - 1.20.3 PHP - 5.4.7 (apache2handler) MySQL - 5.5.27 OS - Windows 7 64-bit Home Premium

I've tried multiple times to get this extension working on my current localhost wiki with constant failure, but oddly, I just setup a new "test" localhost wiki with only this extension added (as well as the other extensions that are included with stock MW 1.20.3), and it did work flawlessly.

I'm not sure what the trouble is, but if I find out what caused the problem, I'll send you a bug report either here or the Bugzilla, whichever would be more convenient for you.

(My current guess is that it is either an error in my SQL database, or a conflict with another extension I installed that is causing database conflicts. I suspect it may be the latter, as I've tried quite a few extensions before SocialProfile, and I'm sure I'd notice other problems if my database had an error in the user tables, but I plan to test both theories)

Again, thank you for your timely response. Arcane21 (talk) 01:36, 15 April 2013 (UTC)Arcane


 * I'm glad it worked out for you eventually, though I must say that it was odd that you stumbled upon such an error in the first place! Please do let me know if you stumble upon it ever again. --Jack Phoenix (Contact) 14:57, 29 April 2013 (UTC)

Avatar uploads don't seem to do anything
I finally got SocialProfile set up and functional, but the "upload avatar" feature feature seems to be functional but doesn't actually do anything.

For example, I will take a .gif or .jpg, select it and wait for it to upload. There will be no error message or any sign it failed, but all the preview pictures of the file I attempted to upload as my avatar are blank.

The avatar folder is in my image upload directory, and the stock avatar picture provided shows up on my profile page, and the avatar upload log even records all my avatar upload attempts, but the actual upload just silently fails to actually do anything.

Help would be appreciated.

Arcane21 (talk) 09:09, 17 April 2013 (UTC)Arcane21


 * Check the file (well, folder if we're being semantically correct) permissions and ensure that your webserver user is capable of creating new files (=writing) in the $wgUploadDirectory/avatars directory. --Jack Phoenix (Contact) 14:57, 29 April 2013 (UTC)

Invalid argument supplied for foreach in UserStatsClass.php on line 611
Hello, I've got a very frustrating problem and I'm in desperate need of help.

The whole SocialProfile thing is just fantastic, and it works great until I try to upload an avatar. The standard avatar image link is broken, and whenever I try to upload a new avatar, this irritating error is showing: Warning: Invalid argument supplied for foreach in /storage/content/...../public_html/extensions/SocialProfile/UserStats/UserStatsClass.php on line 611 When I look at line 611 it shows nothing that is logical to my eyes. I need help, my users won't be able to upload any avatars! And perhaps I should say - you can upload files using the standard MediaWiki file uploader. And the images I try to upload as an avatar should work.

Thanks! /Skywalker Luke Skywalker (talk) 20:26, 12 May 2013 (UTC)


 * Check the folder permissions &mdash; make sure that your webserver user is capable of writing to $wgUploadPath/avatars (and $wgUploadPath/awards for the system gift functionality to work). On *NIX-like servers, something like  should do the trick (repeat for the awards folder, just swap "avatars" to "awards"). --Jack Phoenix (Contact) 12:08, 22 May 2013 (UTC)

Not working on 1.21
I can't get it work on 1.12. Special pages works, but the user page doesn't let switch between wiki page and user profile, always shows the wiki page. Worked in 1.19 before upgrading to 1.21. Can be tested on:

EDIT: Made it to work adding this to UserProfilePage class:

public $user_id; public $user_name; public $user; public $is_owner;

--Krusher (talk) 23:48, 18 June 2013 (UTC)


 * Awesome, thank you for this patch! I've committed it to git just a moment ago. :-) --Jack Phoenix (Contact) 22:05, 9 July 2013 (UTC)
 * Thanks for the patch, Krusher, I've been hoping to have this working on my own wiki for awhile now. Arcane21 (talk) 13:32, 14 July 2013 (UTC)Arcane

I'm having an issue with the special page going blank on 1.22alpha (I've using the new visual editor so I need 1.22) I just have basic include once line in localsettings, any thoughts anyone? - MarkJurgens

Notice: Inaccessible property via __get
Notice: Inaccessible property via __get: user_id in /home/content/50/8262350/html/****/community/includes/Article.php on line 1918'''

So I am getting there error after install. McDoku (talk) 18:13, 27 June 2013 (UTC)


 * 49280, which has been somewhat fixed by Krusher's patch, which I've just committed to the code repository (see the section above this one). --Jack Phoenix (Contact) 22:05, 9 July 2013 (UTC)

Notice: Undefined index: 0 in extensions/SocialProfile/UserProfile/UserProfilePage.php on line 193
I am getting this error at the top of my user pages wiki/User: Any ideas how to remove it? The code at 193 is: $user_badges = qa_badge_plugin_user_form($userid); return ' Badges '.$user_badges['fields'][0]['value']; Thanks -- (talk) 08:41, 14 July 2013 (UTC)


 * This is a custom, site-specific hack and generally speaking it's rather impossible to debug issues such as this one without knowing what else has been changed. If you take a look at the HEAD (newest) version of /extensions/SocialProfile/UserProfile/UserProfilePage.php, you'll see that line 193 is way different from yours. In fact, SocialProfile has never included a function called.


 * Anyway, what's causing this issue is rather bad code or to be more specific, bad assumptions. It is assumed that  returns a multi-dimensional array and we can just access it like this:  . In your case, the function has not returned what this line expects. Changing the line   to this should shut up the notice you were seeing:


 * And finally, if this was happening on a production server, you probably should turn  off in your php.ini and instead ensure that notices, warnings, etc. are logged (  is set to   and   points to a file that the webserver user has read & write access to). --Jack Phoenix (Contact) 14:01, 14 July 2013 (UTC)


 * Thanks, you are right it is custom code, I didn't notice that. Your fix (minus a ; after ['value'] fixed it. Thanks for your help. --Tech (talk) 06:50, 15 July 2013 (UTC)

Missing file for postgresSQL
Creating user_status table ...Could not open "/etc/mediawiki/extensions/SocialProfile/UserStatus/userstatus.postgres.sql". —The preceding unsigned comment was added by 193.239.152.189 (talk • contribs)


 * Yes, generally speaking it's difficult to open nonexistent files. UserStatus (the version that currently ships with SocialProfile) was developed as a Google Summer of Code 2011 project (more about the history can be found on the social tools page). Like most developers out there, Zhenya tested his code against MySQL(/MariaDB) only.


 * Personally speaking, I've never written PostgreSQL code before today. Postgres is somewhat supported by core, but most extensions do not support it. As always, you are free to file a bug on Bugzilla (https://bugzilla.wikimedia.org/) about this, but I can assure you that it will not be a high-priority one. I don't have Postgres installed nor any plans to install it and test SocialProfile against it, and judging by comments on bug #51441, there are some rather fascinating DBMS-specific issues on Postgres. My suggestion? Use MySQL/MariaDB. --Jack Phoenix (Contact) 21:34, 24 July 2013 (UTC)

Points Reset
Is there an easy way to reset everyone's score? Also, is there a reason why the scores would initially start fresh at 0 and only include edits made after the installation of the extension, and then all the sudden it updates the points to include all of the edits since the creation of the wiki? —The preceding unsigned comment was added by Mgunnin (talk • contribs)


 * Visit Special:UpdateEditCounts. You need to have the updatepoints user right before you can access this special page. The only reason why such a reset would happen if someone had visited Special:UpdateEditCounts. --Jack Phoenix (Contact) 21:34, 24 July 2013 (UTC)


 * Yeah I understand that but if I wanted to just completely reset everyone to 0 points, is there anyway to do that other than completely re-installing? Mgunnin (talk) 06:28, 27 July 2013 (UTC)


 * I'm not sure why you would want to do that. Care to elaborate? (I'm just curious.)


 * In any case, this SQL query should do it:


 * It gives everyone 1000 points (that's what all users start out with, at least after you've run Special:UpdateEditCounts) and sets their edit count in the stats table to 0 (just to clarify, this has nothing to do with MediaWiki core it and it won't mess with your users' real edit counts in any way, shape or form).


 * --Jack Phoenix (Contact) 14:30, 27 July 2013 (UTC)

Localization
Why SocialProfile doesn't use translatewiki.net anymore? —The preceding unsigned comment was added by 91.98.122.229 (talk • contribs)


 * As I explained on my talk page, it was removed over a year ago with no explanation (nor was I ever contacted) and my changeset to have it readded has gone unnoticed. So, long story short, you probably should ask their staff instead as I don't have the slightest clue. --Jack Phoenix (Contact) 21:02, 21 October 2013 (UTC)

Special:UpdateProfile Not Resolving To Edit Window
I updated my wiki to MediaWiki 1.21.2, then updated the installed SocialProfile extension to e812758, the latest version.

Now when I click on  to update my profile, the edit window fails to appear. Instead the browser will try to resolve to the edit screen, but never does. What's going on? How can I fix this?

Davydog (talk) 02:41, 21 October 2013 (UTC)


 * I'm afraid you'll have to be a bit more specific than that. What do you mean by "the edit window fails to appear"? And where do you "click on Special:UpdateProfile"?


 * When you're viewing your own profile (while logged in, obviously), there are multiple links to Special:UpdateProfile and its various "subpages", so to say. Clicking on the normal MediaWiki edit link basically redirects you to User:Your name (or User profile:Your name, depending on if you've chosen the social user page or the wiki user page to use as the default). While not ideal (it probably should redirect to Special:UpdateProfile instead of the user's user page), this behavior is intentional.


 * As far as I'm concerned, it works just as it has worked before. Sounds like what you're experiencing is either related to your web server's configuration and/or your MediaWiki configuration. --Jack Phoenix (Contact) 21:02, 21 October 2013 (UTC)


 * Still having issues after much time spent attempting to resolve them. You asked:
 * 1. What do you mean by "the edit window fails to appear"?


 * 1a. After clicking on either the  menu link or the   section link, the page goes blank while the browser window continuously attempts to resolve to something.
 * and


 * 2. And where do you "click on Special:UpdateProfile"?
 * 2a. I click on either the  link where the top menu items are on my UserProfile page (when I'm logged in, of course) or on the   section link.


 * Other Issues
 * Attempting to remove another user as "friend" produces this error:


 * Attempting to add another user as friend produces this error:


 * Clicking on one of the gift images produces this (even though the update.php was run several times):
 * —The preceding unsigned comment was added by Davydog (talk • contribs)


 * Thank you for the clarifications, I've fixed the other three issues, so (de)friending, (de)foeing and viewing a gift should work again. Please update your SocialProfile (or manually apply 92163, 92164 and 92165).


 * As for the issue with Special:UpdateProfile...I'm afraid I'm still not able to reproduce it anywhere. It works on my local development setup, it works on many production setups and it works on the social tools development wiki, which is running the latest code (git HEAD). --Jack Phoenix (Contact) 01:20, 27 October 2013 (UTC)


 * I've been trying everything I can think of to generate error messages, including inserting the following into my LocalSettings.php file, underneath the &lt;?php:


 * Even that didn't work, however. Ironically, after much performance tuning on the wiki, I was able to briefly make the Special:UpdateProfile edit window briefly appear. But a repeated attempt brought the same blank screen and spinning browser.


 * Your fix for the database error described above seemed to work, however.
 * -Davydog (talk) 03:50, 4 November 2013 (UTC)


 * JavaScript Error?
 * I just found a clue as to what might be causing the issue. A possible JavaScript error.


 * When I disallow JavaScript on the browser, the formatting of the SocialProfile page is skewed, but clicking on a Special:UpdateProfile link brings up the edit window. Of course I must re-enable JavaScript to save any changes, but that produces the never-resolving browser again.


 * Interestingly, I was able to make a few updates to my SocialProfile page, click the save button, switch off JavaScript after the browser window failed to resolve, then abandon the never-resolving page. Despite all that, my updates appeared to be saved anyway.


 * Hope this helps...




 * Hi! I have these same problem - when I click "Edit profile" or go to Special:UpdateProfile, I will redirect to page with only code: PS. Sorry for my English, I can't write English well. --Kam193 (talk) 20:50, 9 November 2013 (UTC)


 * Just like to add theat I too, have the exact same issue. However, if I add &debug=1 to the URL, it works fine. --ILikePizza555


 * Hi, I have same problem. My firefox return Java error


 * After update mediawiki to 1.22.0 it's work fine. --89.222.167.6 08:42, 9 December 2013 (UTC)


 * @89.222.167.6: Looks like you're right. Upgrading to MediaWiki 1.22.0 seems to fix this issue. Thanks for the tip!
 * -Davydog (talk) 02:31, 15 December 2013 (UTC)

Board = status update?
So is the Board like a Facebook status update? Leucosticte (talk) 06:02, 21 October 2013 (UTC)


 * Boards are like "walls" on Facebook, if my terminology is correct (I'm not a Facebook user). Status updates are provided by Extension:UserStatus (which requires Extension:SportsTeams, which is somewhat alpha/beta software and can be tricky to install). --Jack Phoenix (Contact) 21:02, 21 October 2013 (UTC)

Restriction of profile and avatar visibilty
Could someone add the option of restricting profile (and avatar) visibility, as this might be useful on wikis with restricted edit modes. For example, if login, plus email confirmation is required to edit pages, maybe it should be required to view profiles as well.--Myrtonos (talk) 13:54, 22 October 2013 (UTC)


 * From a technical point of view, this sounds rather easy to implement. However, there are other associated questions, such as:


 * Should the users have some say over this matter? IMHO, they should, which would require implementing a GUI for changing these settings (which in reality would most likely translate to "just slap the options to Special:UpdateProfile/preferences and be done with it")
 * How fine-grained should the permissions be?
 * and of course:
 * When should these restrictions be available & editable? Only when a wiki is somehow locked down? Always (a.k.a "out-of-the-box")? Something else?


 * --Jack Phoenix (Contact) 19:17, 25 October 2013 (UTC)

Social Profile and Wikiforum
Wikiforum during the updating of my wiki fails... how do i solve it? thank you! —The preceding unsigned comment was added by 151.18.63.81 (talk • contribs)


 * I'm not sure what you mean. In any case, try upgrading both extensions as well as MediaWiki core, if possible. --Jack Phoenix (Contact) 12:36, 28 November 2013 (UTC)

escapeFullURL was deprecated in MediaWiki 1.19
Use of Title::escapeFullURL was deprecated in MediaWiki 1.19. [Called from SpecialViewRelationshipRequests::execute in /home/gleki/public_html/mediawiki-1.19.2/extensions/SocialProfile/UserRelationship/SpecialViewRelationshipRequests.php at line 87]

Please fix it. 217.66.19.48 08:27, 25 November 2013 (UTC)


 * I wasn't aware of this. In any case, it's not a super-high priority issue since it works and only clutters up logs if you have certain debug logs enabled. --Jack Phoenix (Contact) 12:36, 28 November 2013 (UTC)

Add friend button doesn't work
MediaWiki 1.23alpha. "Accept" button (when trying to add friends) doesn't work. Nothing special in debug. Help? Gleki.arxokuna (talk) 12:43, 27 November 2013 (UTC)


 * Thanks for the report. There was a JavaScript issue, which I've now fixed in 98090. Please update SocialProfile and try again &mdash; it should now work. --Jack Phoenix (Contact) 12:36, 28 November 2013 (UTC)

Inaccessible property via __get
I installed the Extension. The update.php didn't update the mysql, so I create tables manual in phpadmin.(This worked in Comments extension). So When I going to user profilesite, I get this message: Notice: Inaccessible property via __get: user_id in /home/atomjani/public_html/hasznosithato.tk/includes/Article.php on line 1995 But the user profile is older, there I seen change. Atomjani (talk) 20:57, 9 December 2013 (UTC)


 * Ensure that you're running the most recent versions of MediaWiki and SocialProfile. (This is related to 49280, which was fixed in July 2013.) --Jack Phoenix (Contact) 07:21, 16 January 2014 (UTC)

TranslateWiki is waiting for adding SocialProfile messages
Take a look http://translatewiki.net/wiki/Thread:Support/Please_add_support_for_SocialProfile Gleki.arxokuna (talk) 08:09, 22 December 2013 (UTC)

Can't edit User: pages
If a user SomeName doesn't exist and when I create a page User:SomeName I can't edit it's code when SocialProfile is enabled. VisualEditor works okay, though. Can this be fixed?178.204.8.218 18:26, 2 January 2014 (UTC)
 * While I agree this is a bit of an annoyance, it's not something I see being changed in the extension, but what you can do is remove or comment out lines 95-97 of /extensions/SocialProfile/UserProfile/UserProfile.php. After that, you should be able to edit the namespace like normal, and still have the ability for user profiles to appear on the user page. --GeorgeBarnick (talk) 02:44, 5 January 2014 (UTC)

How to get to upload avatar or change profile
Using mediawiki 1.21 i installed SocialProfile extension and all databases and settings are done but how in the world can i get to the upload avatart or edit userprofile pages?

In other words. Where is the interface for this extension —The preceding unsigned comment was added by 145.72.98.1 (talk • contribs)


 * See the screenshots. Basically there are various different special pages and other interfaces. You can access the avatar uploading special page as well as the special page to edit profile info via your own user page (Special:MyPage). --Jack Phoenix (Contact) 07:21, 16 January 2014 (UTC)

Tnx for the reply. I see special pages indeed but in the profile pages there is nothing to see. If i open a user page of a user i just made it says. There is currently no text in this page. You can search for this page title in other pages, search the related logs, or edit this page.

I can give gifts and so on but there are no profiles pages like the one seen in the mentioned screenshots.

UPDATE: If i go to http://<MYSITE>/wiki/index.php/Special:UpdateProfile i see the pages as mentioned so i can now indeed edit my userprofile. Next question. How do i get this info on my userpage?

UPDATE2: I solved my problem of no userprofileinfo coming up on the userpage. The solution on http://www.mediawiki.org/wiki/User_talk:Krusher fixed it for me.


 * Krusher's patch has been present in SocialProfile for a while already; are you really running the newest version of SocialProfile under the newest stable version of MediaWiki (which is currently 1.22.2)? --Jack Phoenix (Contact) 17:23, 6 February 2014 (UTC)

How to use user's data on a page using mediawiki language
Hi, I'd like to know how to use user's data (name, etc) on a page by using mediawiki language. Thanks, Fred —The preceding unsigned comment was added by 109.223.241.197 (talk • contribs)


 * You mean social data such as the user's interests, foods, etc. shown on their social profile page? You can't. --Jack Phoenix (Contact) 17:23, 6 February 2014 (UTC)

Update never ends
Hello. I load the files, I've updated the LocalSettings and run the update via mw-config/ though the update never finished. It ends on lines: ''#7 /mw-config/index.php(29): wfInstallerMain

'' and never gets further.
 * 1) 8 {main}

The wiki works well except for user pages which return 'A database query error has occurred. This may indicate a bug in the software.' so the table doesn't seem to have been created. When I remove require_once SocialProfile.php from LocalSettings, user pages start to work again. Any idea what stops update from finishing? Shall I create the tables manually (but then the next update might break again) or do I need rights to update any file in the mediawiki folder? Thanks Vaasha


 * No idea, but if you're capable of creating the database tables manually, do that. --Jack Phoenix (Contact) 17:23, 6 February 2014 (UTC)

Update fails
I have installed SocialProfile on a 1.19.0 mediawiki.

After copying the files and modifying LocalSettings I do an update using the web application and I get the following message:

Warning: call_user_func_array expects parameter 1 to be a valid callback, class 'CommentsHooks' not found in C:\xampp\htdocs\wikipart\includes\Hooks.php on line 216

An error occured: Detected bug in an extension! Hook CommentsHooks::onLoadExtensionSchemaUpdates failed to return a value; should return true to continue hook processing or false to abort. Backtrace: #0 C:\xampp\htdocs\wikipart\includes\GlobalFunctions.php(3847): Hooks::run('LoadExtensionSc...', Array) #1 C:\xampp\htdocs\wikipart\includes\installer\DatabaseUpdater.php(69): wfRunHooks('LoadExtensionSc...', Array) #2 C:\xampp\htdocs\wikipart\includes\installer\DatabaseUpdater.php(120): DatabaseUpdater->__construct(Object(DatabaseMysql), false, NULL) #3 C:\xampp\htdocs\wikipart\includes\installer\DatabaseInstaller.php(256): DatabaseUpdater::newForDB(Object(DatabaseMysql)) #4 C:\xampp\htdocs\wikipart\includes\installer\WebInstallerPage.php(525): DatabaseInstaller->doUpgrade #5 C:\xampp\htdocs\wikipart\includes\installer\WebInstaller.php(254): WebInstaller_Upgrade->execute #6 C:\xampp\htdocs\wikipart\mw-config\index.php(50): WebInstaller->execute(Array) #7 C:\xampp\htdocs\wikipart\mw-config\index.php(18): wfInstallerMain
 * 1) 8 {main}

What could I do? thanks --Adbaco (talk) 09:50, 6 February 2014 (UTC)


 * Update your MediaWiki and all associated extensions, including, but not limited to SocialProfile. (Whilist 1.19 is a long-term support (LTS) release, I have no interest nor resources to support that, so only the newest stable version &mdash; 1.22 &mdash; of MediaWiki is supported, unless otherwise stated.) --Jack Phoenix (Contact) 17:23, 6 February 2014 (UTC)


 * Hi Jack, thanks for your reply, I'll give that a try. Adbaco (talk) 08:21, 7 February 2014 (UTC)

Avatar upload fails if there's already a Avatar.jpg file uploaded
If there's already an Avatar.jpg file, upload of a new avatar fails. This is a quick workaround:

/**	 * Only needed for the redirect; needs fixage */	public function getTitle { return Title::makeTitle( NS_FILE, 'Avatar-placeholder'.uniqid.'.jpg' ); }

replace the getTitle function in SpecialUploadAvatar.php with the above.

I hope it can be useful to anyone. --Krusher (talk) 18:53, 13 February 2014 (UTC)


 * Do you mean a literal page called File:Avatar.jpg or if the user in question has already uploaded an avatar (via Special:UploadAvatar)? In any case, I'll take a look at this (at a later date) and commit it to git, as it seems sensible. --Jack Phoenix (Contact) 17:51, 19 February 2014 (UTC)

Recalculate points
It would be nice to have a maintenance script to recaltulate user points for wikis that had this extension installed after a lot of editing. Would it be hard to do? --Krusher (talk) 15:07, 19 February 2014 (UTC)


 * There's already the special page called Special:UpdateEditCounts, which can do just that. You need the  user right to access it. --Jack Phoenix (Contact) 17:51, 19 February 2014 (UTC)

Friending non-functional
I'm not a wiki wizard by any stretch and am new to the software. Not being a coder I'm challenged with some of the additions in local settings. That said, Social works fine for me with two exceptions. System gifts work, user gifts do not and friending and foeing do not. The remainder of the software works like a top. Click "add as friend" a blank white page ensues and the request does not log as evidenced by no show on the page that offers you your friend requests. site is diywik.com/w/index.php/Main_Page. Any conjectures or ideas for what I can try or what I did wrong? Contact Robbi

Try downloading a new snapshot (on the Extension:SocialProfile page, click on the "Git master" link) onto your wiki's  directory and see if that fixes it. If it doesn't, take a look at the Manual:How to debug to learn about debugging such issues and please feel free to stop by the #mediawiki IRC channel on irc.freenode.net for real-time help. --Jack Phoenix (Contact) 21:57, 23 February 2014 (UTC)
 * Hi Robbi, are you sure you're running the newest version of SocialProfile on your wiki? Your problems sound much like the two issues I fixed on 27 October 2013 (see 92164 and 92165 if you want to know all the gory, technical details).


 * Hi Jack. Thanks for the fast response. I did take the lastest stable version, which is what made it a surprise that most of it worked and some of it didn't-- :) and what made me certain that I was at fault in the mix. Thanks for the details and the links, I'll read over the details and see if it's my issue. I'll take your advice and pop into IRC too.RobbiDrake (talk) 05:35, 25 February 2014 (UTC)

Mails being sent as HTML instead of text
All mails in MediaWiki are sent as plain text, but SocialProfile tries to send it as HTML mail. As a result, the email displays HTML tags as text. The problem seems to be parsing the mediawiki text with parse method, instead of text method. For example:

if ( $user->isEmailConfirmed && $user->getIntOption( 'notifymessage', 1 ) ) { $board_link = SpecialPage::getTitleFor( 'UserBoard' ); $update_profile_link = SpecialPage::getTitleFor( 'UpdateProfile' ); $subject = wfMessage( 'message_received_subject', $user_from )->text; $body = wfMessage( 'message_received_body',				$user->getName,				$user_from,				$board_link->escapeFullURL,				$update_profile_link->escapeFullURL			)->parse;

should be:

if ( $user->isEmailConfirmed && $user->getIntOption( 'notifymessage', 1 ) ) { $board_link = SpecialPage::getTitleFor( 'UserBoard' ); $update_profile_link = SpecialPage::getTitleFor( 'UpdateProfile' ); $subject = wfMessage( 'message_received_subject', $user_from )->text; $body = wfMessage( 'message_received_body',				$user->getName,				$user_from,				$board_link->escapeFullURL,				$update_profile_link->escapeFullURL			)->text;

In file UserBoardClass.php:77.

--Krusher (talk) 18:45, 26 February 2014 (UTC)