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!''

ERROR: The link you have entered is invalid.
Ok, so I have spent hours trying to figure this out. When users click the link [Send a gift] They get the error, (The link you have entered is invalid.) On the next given page. If they use Special:GiveGift using the users name they get the error. However the original Admin or sysop can create and send Gifts using the same link that everyone els gets the error with. It even gives one other full privileged sysop I created the error. Is it a privilege setting somewhere? I have gone through all the files and setting and cant figure it out.

My unprofessional Conclusion:

 * 1) Works fine for the first admin created but no one else. so a bad link as the error applies  is probably not  the problem.
 * 2) Because it works fine for the first admin created, seems like the bad link would be a request that only allows that admin to access.
 * 3) This is where the link goes(next) when the main admin is allowed to give the gift: /index.php?title=Special%3AGiveGift&user=Test+2 (Test+2 is the user I was sending the gift to)
 * 4) Through my research I am assuming the error is on this page: SpecialGiveGift.php

Thanks --MatrixVortex 23:30, 16 August 2011 (UTC)


 * Special:GiveGift is a mess. The only time I've gotten that "invalid URL" error message (when the URL really wasn't invalid) was when (on a new wiki) there were no gifts. --Jack Phoenix (Contact) 15:00, 20 August 2011 (UTC)


 * Thanks For the reply, :There are gifts because Adman can send them. Looks like I might have to un-install it for now there are some other issues with the user message box no way to block other users from spamming or harassing you. I installed it because I really liked what it does of the users page and I like the awards system. :( --MatrixVortex 14:46, 30 August 2011 (UTC)


 * I believe that I fixed your issue with gifts in r95399; please try upgrading your SocialProfile to the latest trunk and see if that fixes the problem.


 * What issues do you have with the UserBoard feature? It's true that there's no way for an invidual user to block another users from sending them messages (maybe there should be...feel free to file a feature request on Bugzilla!), but obviously administrators should block users who are abusing the board feature to harrass other users. --Jack Phoenix (Contact) 14:57, 30 August 2011 (UTC)


 * Sorry Jack for the late reply. You are correct the user can make a gift and send it. Your patch didn't work sorry to say :(. I haven't had a lot of time to deal with this lately, not to mention I had to shut down the site! Hackers where getting some kind of code in that was leaving there post with no way for admin to delete it! Also the reason you would need the ability for users to block people from posting in their UserBoard on a large site it could get real out of hand if you have a hundred people a day or a hour, complaining about abuse on their userBoard. Seems a simple block button for the user would be better. Thanks again for all your help Jack I hope you get this late reply. --MatrixVortex 13:53, 9 September 2011 (UTC)

Problem when trying to install SocialProfile
Hi

I tried to install SocialProfile to my wiki but when I go to one user page (index.php/User:XXX) i get an error page 500 !

require_once("$IP/extensions/SocialProfile/SocialProfile.php"); $wgUserBoard = true; $wgUserProfileDisplay['board'] = true; $wgUserProfileDisplay['stats'] = true;
 * I have loaded the latest files in extensions/SocialProfile directory
 * I created an avatar and rewards directories in my image directory, with default avatars and reward images
 * I ran the update.php to create the tables in my database
 * I put in my LocalSettings.php the following:
 * 1) SocialProfile

but for all users I got this error ! Any idea why ?

thank ! —The preceding unsigned comment was added by Blackdalhia (talk • contribs). Please sign your posts with ~ !


 * Saying that you get the HTTP 500 error page basically tells me nothing. Do you have access to your webserver's logs and/or PHP's error log? Those logs might provide some useful information about what's going on and why a HTTP 500 page is being displayed.


 * Also, the gifts/awards directory should not be called rewards, but instead it should be called awards; this name is hardcoded in the special pages that are used to upload gift and award images, as well as in a few other places. --Jack Phoenix (Contact) 13:25, 7 August 2011 (UTC)

Blackdalhia 09:54, 9 August 2011 (UTC) Hi ! and thanks for your quick feebdack "GET /wikiop/mediawiki-1.16.2/index.php/User:Blackdalhia HTTP/1.1" 500 - "http://xxx.xxx.xxx.xxx/mediawiki-1.16.2/index.php?title=Special:UserLogin&action=submitlogin&type=login&returnto=User:Blackdalhia"
 * it is strange : my error log does not show any error messages. My access log shows this :


 * Can you try setting error_reporting( E_ALL ); and ini_set( 'display_errors', 1 ); in your wiki's LocalSettings.php, right after the PHP starting tag, , and seeing if that helps in showing any error messages on the user profile page? --Jack Phoenix (Contact) 16:50, 9 August 2011 (UTC)

Blackdalhia I did it and got the following message : Fatal error: Call to undefined method DatabaseMysql::unixTimestamp in /var/www/html/wikiop/mediawiki-1.16.2/extensions/SocialProfile/UserGifts/UserGiftsClass.php on line 322 seems that the function unixTimeStamp is not defined or the class DatabaseMysal not defined. I am missing one module somewhere right ?


 * You're trying to use the 1.17 (or trunk) version of the extension with MediaWiki 1.16. —Emufarmers(T 06:51, 13 August 2011 (UTC)


 * See Extension talk:SocialProfile/Archive 6 for more background information about that particular fatal. --Jack Phoenix (Contact) 12:28, 13 August 2011 (UTC)

Blackdalhia 02:41, 14 August 2011 (UTC) ha ok. I have used svn to install the version 1.16 ( i hope that I did that because I am not very familiar with svn, I simply did svn co http://svn.wikimedia.org/svnroot/mediawiki/tags/extensions/SocialProfile/)
 * well now there is no crash ! but I have another problem : avatars picture does not work
 * the default one shows a broken link (when I try to open the link I have a message "You don't have permission to access /wikiop/mediawiki-1.16.2/images/avatars/wikiop_2_l.jpg on this server."
 * when I try to upload pictures I have another error message Warning: Invalid argument supplied for foreach in /var/www/html/wikiop/mediawiki-1.16.2/extensions/SocialProfile/UserStats/UserStatsClass.php on line 687
 * This seems to be an access right issue but I don t know how to solve this :/

Blackdalhia 02:50, 14 August 2011 (UTC) I fixed the issue by doing this : chown apache avatars chmod avatars 755
 * it works now :D Really good job guys !!!!!!
 * Just one question : when I refer to users in other pages of my wiki, how do I show the avatar and name of the user instead of Blackdalhia ?
 * What exactly do you mean? Users can choose between a wiki-style user page (UserWiki:) and a social profile (User_profile:) &mdash; whichever they prefer is shown to you when you visit their User: page. --Jack Phoenix (Contact) 15:00, 20 August 2011 (UTC)

Is it possible that this extension could show people's real name and email address? MarkDilley


 * If the user has filled in the "real name" field on their preferences, it will be shown on their social profile (see, for example, http://www.halopedian.com/User_profile:CommanderTony), but e-mail addresses are not published anywhere; they are and continue to be private information. --Jack Phoenix (Contact) 17:08, 11 August 2011 (UTC)

Problem when trying to install SocialProfile (database)
I've problems with the database update. The installation runs fine, I started update.php, but by clicking on a user page the following error occur:

Database error A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was:

(SQL query hidden)

from within function "UserProfile::getProfile". Database returned error "1146: Table 'wikidb.user_profile' doesn't exist...

Any idea, what I can do??? --MoDi2021 12:09, 20 August 2011 (UTC)


 * Apparently the user_profile table wasn't created; maybe the other tables weren't either. See Extension talk:SocialProfile/Archive 5. --Jack Phoenix (Contact) 15:00, 20 August 2011 (UTC)


 * Works. Great! ! ! --MoDi2021 15:37, 20 August 2011 (UTC)

I get some error messages:

SocialProfile\SystemGifts\SystemGiftsClass.php on line 158 SocialProfile\UserStats\UserStatsClass.php on line 552

and

Warning: Invalid argument supplied for foreach in C:\...\extensions\SocialProfile\UserStats\UserStatsClass.php on line 552

Notice: Undefined index: user_board_count in C:\...\extensions\SocialProfile\SystemGifts\SystemGiftsClass.php on line 158

Warning: Invalid argument supplied for foreach in C:\...\extensions\SocialProfile\UserStats\UserStatsClass.php on line 552

Notice: Undefined index: user_board_sent in C:\...\extensions\SocialProfile\SystemGifts\SystemGiftsClass.php on line 158

Don't know why. Any idea??? --MoDi2021 16:06, 20 August 2011 (UTC)

This software looks great, but there seems to be some bugs... I will try to post one day. --MoDi2021 16:10, 20 August 2011 (UTC)


 * The line numbers do not make any sense; line 158 of SystemGifts/SystemGiftsClass.php in trunk is $dbw->update and line 552 of UserStats/UserStatsClass.php is a closing bracket (}). Are you using an outdated version of SocialProfile or something? If so, please update to the latest trunk; you shouldn't be using a non-trunk version of SocialProfile. I've also fixed the "undefined index" notice in r95102 because I had gotten a similar notice on my local testing wiki. --Jack Phoenix (Contact) 19:12, 20 August 2011 (UTC)


 * Maybe a avatar-picture-problem. I can't upload an avater pic and can't make the folders writable. This seems to be a problem of Windows 7. Maybe this causes the trouble... I can't see how to solve this problem with Windows 7. I will look tomorrow... --MoDi2021 21:13, 20 August 2011 (UTC)


 * My local test wiki runs on Windows 7 and I don't have any problems with avatar uploads. Recent versions of SocialProfile (since r93067) support PHP's built-in GD library for image resizing instead of requiring ImageMagick to be installed. --Jack Phoenix (Contact) 01:17, 21 August 2011 (UTC)

There's one bug, I found: By clicking "Wiki userpage" you got the page /:Username and not /User:Username and "Social profile" you got /:Username and not /User:Username. I don't know if this is known. --MoDi2021 21:13, 20 August 2011 (UTC)


 * It's not a bug per se, but rather a configuration issue; you're using an older version of SocialProfile (pre-r93317) that does not automagically register its namespaces and you haven't registered them in your wiki's LocalSettings.php. Newer versions of SocialProfile, since r93317, register the namespaces automagically so all you have to do is to require_once the main setup file and configure SocialProfile (i.e. user levels, points, what to show on user profiles and so on). --Jack Phoenix (Contact) 01:17, 21 August 2011 (UTC)

I tried a newer version, but the problems stay. I can't send a message to another user, it creates WikiUser:Username-sites, but is using correctly User:Username instead and I still can't upload an avatar.

Now the following error occurs: warning: Invalid argument supplied foreach in C:\...\extension\SocialProfile\UserStats\UserStatsClass.php on line 687

Maybe it would be nice to actualize "Download snapshot" ;-) Normal users like me, wont download the correct package without help. --MoDi2021 12:28, 21 August 2011 (UTC)

Creating a gift, I got this error:

Notice: Undefined variable: stash in C:\...\htdocs\...\extensions\SocialProfile\UserGifts\SpecialGiftManagerLogo.php on line 424

I'm using now revision 95135 (link)??? --MoDi2021 12:33, 21 August 2011 (UTC)


 * You say that you can't send a message to another user...which brings up the following question: what version of MediaWiki are you using? Currently SocialProfile is compatible with the 1.16 branch of MW and only with that! MediaWiki 1.17 and newer releases have the ResourceLoader system and SocialProfile does not support ResourceLoader yet (this is bug #29984). The "download snapshot" link is accurate, the trick is to select the trunk version from the dropdown instead of 1.16 version; the 1.16 version refers to the tagged version of SocialProfile and that is very old and outdated; always use the latest trunk version!


 * As for the avatar upload issue, that is obviously an issue specific to your computer &mdash; there are many sites out there which have no problem at all with avatars and avatar uploading works correctly even on my local computer, which is running Windows 7.


 * As for the first notice/warning, it's very old and strangely enough I haven't gotten it in ages; make sure that $wgUserStatsPointValues is defined correctly in your wiki's LocalSettings.php.


 * The second notice is indeed correct, there is an undefined variable in the code; I haven't bothered fixing that since it's not such a big deal and most production sites log errors instead of displaying them. --Jack Phoenix (Contact) 15:40, 21 August 2011 (UTC)


 * Sorry - I didn't saw it... --MoDi2021 21:26, 21 August 2011 (UTC)

In my LocalSettings $wgUseImageMagick was True. I commented this line out and the avator upload works. Don't ask me, why I used it. I don't know when and how this line was added to this file. --MoDi2021 21:05, 22 August 2011 (UTC)

Could this be hacked to make bare minimum profiles?
I think this extension is a good idea but it is really bulky. Is it possible to remove everything except the basic user profile (no friending,board blasts,gifts etc) ? If there was a (very) light weight (and easy to install) version of this extension it would be nice. —The preceding unsigned comment was added by 67.59.193.62 (talk • contribs). Please sign your posts with ~ !


 * Could it? Probably. Will it? I don't know, but I certainly don't have any plans for such a thing. If you want to work on it, feel free to — and once you have something working, you could apply for commit access and commit your code to SVN.


 * As for the easy to install part, I don't know what could be done to make it even easier to install. You have to run the MediaWiki updater script, update.php, after adding all the require_onces to the wiki's LocalSettings.php (you basically have to do this for any and all extensions that add new tables to the database) and you have to move avatars directory from extensions/SocialProfile to $wgUploadPath and create a directory called awards under $wgUploadPath. --Jack Phoenix (Contact) 12:16, 1 October 2011 (UTC)

user_points_weekly
Hello, I went to Generate Top Users Report and it threw an error message saying that user_points_weekly does not exist. I have looked through the extension install and also the trunk version but cannot find an SQL script to create the table. I am also guessing that there will be a monthly table required.

I have checked the database an cannot find a weekly or monthly table.

Have I missed a step in the install? Taylormg 08:25, 18 October 2011 (UTC)


 * Not really. That stuff is really badly documented at the moment (but it's a wiki, so if you can improve the documentation, please do!) &mdash; the SQL schemas for the various user_points_* tables (3 in total) can be found at trunk/extensions/RandomFeaturedUser for the time being; it's likely that I'll bundle those with SocialProfile (instead of RandomFeaturedUser) one day (see the roadmap for more info). --Jack Phoenix (Contact) 16:37, 17 October 2011 (UTC)


 * Thank you for your help, I tried the trunk version of the RandomFeaturedUser extension but found that the sql files where not in sql format found a Working Version Here Now it is working :). Thank you very much. Taylormg 08:57, 18 October 2011 (UTC)


 * The difference is that the URL I gave you links to the ViewVC viewer, whereas your URL links to the "raw" SVN, which is not necessarily as human-readable as ViewVC, but the svnroot URLs must be used for SVN checkouts. --Jack Phoenix (Contact) 20:18, 29 October 2011 (UTC)

gifts and voting
How do gifts and voting work? I see that points can be given when people vote for a comment. But I'm not sure where voting happens, is it another extension? How do I create gifts? --96.24.76.176 08:41, 22 October 2011 (UTC)


 * Voting is provided by Extension:VoteNY, commenting is provided by Extension:Comments. To create new gifts, you must have the giftmanager user right and then you can create new gifts via Special:GiftManager. --Jack Phoenix (Contact) 20:18, 29 October 2011 (UTC)

Namespaces
According to the extension page, the namespaces are registered thru the installation of the extension.. but when i go to special page --> all pages and click on the drop down that shows all of the namespaces UserWiki,UserWiki_talk, User_profile, and User_profile_talk don't show up. Does that indicate that something went wrong with my installation?

--Kay 10:46, 1 December 2011 (UTC)


 * Are you using MediaWiki 1.16? The CanonicalNamespaces hook, which SocialProfile uses to automagically register its namespaces, exists only in 1.17 and newer MediaWikis. --Jack Phoenix (Contact) 16:51, 2 December 2011 (UTC)

Upload error with trunk version on mediawiki 1.18.1
First of all thank you for this nice extension. I run Mediawiki 1.18.1 with the Social Profile (trunk). If i try to upload an avatar as a normal user i get this error: Fatal error: Call to a member function setSubmitText on a non-object in/var/www/wiki.*********.org/includes/specials/SpecialUpload.php on line 349. I allready have the rights setup so the users MAY upload but it has no affect on this error. When i change the user to bureaucrat all work fine.

edit: i just noticed i can upload as soon as i confirm my email address. So shouldn't SocialProfile give a warning to "Please confirm your email address before uploading an avatar"? Thorsten Veenstra 12:36, 24 January 2011


 * Funky! You're certainly right, users should never be getting PHP fatals.


 * Technical explanation: Special:UploadAvatar (extensions/SocialProfile/UserProfile/SpecialUploadAvatar.php) extends MediaWiki's Special:Upload page (includes/specials/SpecialUpload.php) to avoid duplicating lots of code. Special:Upload assumes that the upload form is a HTMLForm, which is not true for Special:UploadAvatar, as no-one (myself included) ever bothered porting that code to use HTMLForm, as it would've been mostly a waste of time.


 * The function showRecoverableUploadError (defined in includes/specials/SpecialUpload.php, from line 343 onwards in MediaWiki 1.18.1) calls the class' getUploadForm method in line 348 and line 349 is $form->setSubmitText( wfMsg( 'upload-tryagain' ) ); &mdash; it does not check that getUploadForm returns an (HTMLForm) object and that's what's causing your problem, because SocialProfile's SpecialUploadAvatar class' getUploadForm returns raw HTML, not an object.


 * Fixing this error is definitely possible, but it requires a bit of thinking and testing...I'd suggest filing a bug on our Bugzilla and assigning it to me to make sure that your bug report doesn't get lost.


 * Thanks for reporting this issue! --Jack Phoenix (Contact) 19:06, 25 January 2012 (UTC)

Special:SystemGiftManager not work
Hello, I am interested in your extension. I have installed it's trunk version 2 days ago. Everything is great, except for the "Add new system gift". When I clicked on the button "Add new gift" on page Special:SystemGiftManager, the result was a blank page. However, Special:GiftManager still works normally.

I have created all necessary tables in my data.. My version is:

MediaWiki 	1.18.0 PHP 	5.2.17 (apache2handler) MySQL 	5.0.77

And I have another question. How does the System Gift work? Does it automatically gives a gift to users when they reach a specific score (such as 5k edits, 10k edits...)?

Thank you for your time. 113.172.123.125 05:14, 26 January 2012 (UTC)


 * There was a PHP fatal error, which I've now fixed in r110206; please update your copy of SocialProfile to fix the issue with Special:SystemGiftManager.


 * The awarding functionality works like this:
 * A privileged user creates a new system gift (=award) with a specified threshold
 * A user reaches the threshold and is automatically given the award by the wiki software


 * --Jack Phoenix (Contact) 12:27, 28 January 2012 (UTC)


 * Thank you, it worked :). But I've found a new bug. When I clicked on Special:GenerateTopUsersReport&period=monthly, the result was: (although I didn't modify any files below)

Non-string key given

Backtrace:


 * 1) 0 /mediawiki-1.18.0/includes/GlobalFunctions.php(1183): MessageCache->get(NULL, true, Object(Language))
 * 2) 1 /mediawiki-1.18.0/includes/GlobalFunctions.php(1307): wfMsgGetKey(NULL, true, Object(Language), false)
 * 3) 2 /mediawiki-1.18.0/languages/Language.php(644): wfMsgExt(NULL, Array)
 * 4) 3 /mediawiki-1.18.0/languages/Language.php(664): Language->getMessageFromDB(NULL)
 * 5) 4 /mediawiki-1.18.0/extensions/SocialProfile/UserStats/GenerateTopUsersReport.php(91): Language->getMonthName(0)
 * 6) 5 /mediawiki-1.18.0/includes/SpecialPageFactory.php(458): GenerateTopUsersReport->execute(NULL)
 * 7) 6 /mediawiki-1.18.0/includes/Wiki.php(226): SpecialPageFactory::executePath(Object(Title), Object(RequestContext))
 * 8) 7 /mediawiki-1.18.0/includes/Wiki.php(626): MediaWiki->performRequest
 * 9) 8 /mediawiki-1.18.0/includes/Wiki.php(533): MediaWiki->main
 * 10) 9 /mediawiki-1.18.0/index.php(57): MediaWiki->run
 * 11) 10 {main}


 * However, Special:GenerateTopUsersReport&period=weekly works just fine. -- 123.20.16.213 06:47, 29 January 2012 (UTC)


 * Thanks for the report, this bug should be fixed with r110248. --Jack Phoenix (Contact) 18:20, 29 January 2012 (UTC)

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)

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 ) {</tt> 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)

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

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

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?