Extension talk:SocialProfile/Archive 1

Very Impressive! Well Done! you have increased the capabilities of mediawiki by leaps and bounds. I should watch you for some time before I implement this extension as I have to be sure it has no vulnerabilities... www.freehospital.org. Can't risk a bug here!

Could not get it to work
I followed the orders precisely on fresh 1.1.1 mediawiki install and got this:

Fatal error: Cannot redeclare wfspecialaddrelationship (previously declared in /************/wiki/extensions/SocialProfile/UserRelationship/SpecialAddRelationshi p.php:20) in /************/wiki/extensions/SocialProfile/UserRelationship/SpecialAddRelationship.php on line 256


 * This extension is still being worked on. It should not yet be considered stable. Siebrand 08:05, 3 March 2008 (UTC)

Affirmative?
Are you sure? If you are right, the tagging of these extension as stable needs revision!

I've just taken time & time to configure it work! Yes, it seem not stable, I've done many small works, luckily i'm successful because i'm a developer :-|

Same Error
Hello, I get the same error during install:

Fatal error: Cannot redeclare wfspecialaddrelationship (previously declared in /Library/WebServer/Documents/wiki/extensions/SocialProfile/UserRelationship/SpecialAddRelationship.php:20) in /Library/WebServer/Documents/wiki/extensions/SocialProfile/UserRelationship/SpecialAddRelationship.php on line 256

Database prefix getting repeated
Hi - there is a comment in UserRelationship/UserRelationshipClass.php: '"For some reason in this function, if you add $wgDBprefix before user_relationship it adds it twice." I'm seeing that problem also in userHasRequestByID and addRelationshipRequest (and I think there are other cases as well). Jlerner 02:58, 20 March 2008 (UTC)
 * Prefixes are also causing an issue for me (version download from SVN 8th April). I've been slowly going through both UserRelationship and also Boards as neither seem to work when $wgDBprefix is set Jarrod 10th April 2008

Got it working (partially)
Hello, thanks for the great contribution to the community! I've got it working partially (I can input profile information), but have run into a few issues. Hopefully you can help.

Issue 1: Upload Avatar
When I go to upload an avatar picture I get the following error: Fatal error: Call to undefined function wfimagearchivedir in D:\Program Files\xampp163\htdocs\wiki\extensions\SocialProfile\UserProfile\SpecialUploadAvatar.php on line 352

Issue 2: User Board
I cannot see User Board messages or a way to create them. SocialProfile is configured as:

$wgUserProfileDisplay['board'] = true;

Issue 3: User Relationships
I cannot see User Relationships or a way to manage them. SocialProfile is configured as:

$wgUserProfileDisplay['foes'] = true; $wgUserProfileDisplay['friends'] = true;

Hope you can help and thanks again!

wont work here too
I also followed all of the Installation steps, but if I try to connect the wiki page all I get is this:

Fatal error: Class 'UnlistedSpecialPage' not found in ...htdocs\mediawiki-1.11.2\extensions\SocialProfile\UserProfile\SpecialUpdateProfile.php on line 13

tried some things but couldn`t get it fixed, anybody got an Idea oder a solution?

EDIT: solved that problem by adding

D:\wiki\htdocs\mediawiki-1.11.2\images\avatars

at the beginn of the files. its working partially now.


 * Running MediaWiki on Windows qualifies as a Bad Idea™ in my book. Linux is much easier (and cheaper, too). -- Sayuri 13:02, 4 April 2008 (UTC)

Can't access "Populate User Profiles"
Beside some exceptions I got the extension working so far. But I am not allowed to access the SpecialPage "Populate User Profiles".

Trying to access throws an Permission error.

Anybody an idea? —The preceding unsigned comment was added by 194.76.239.153 (talk • contribs). Please sign your posts with ~ !


 * Yes. Look at line 23 of /extensions/SocialProfile/UserProfile/SpecialPopulateExistingUsersProfiles.php. It is  - you need to change   to an existing usergroup of your choice, say,   or   or if you don't want to edit this file, just create a staff usergroup (see Manual:User rights) and add yourself into that group to access the special page. -- Sayuri  12:59, 4 April 2008 (UTC)

Command line?
Hey guys, I already did all what the dokumentation says, (Uploading, editing localsettings.php, etc.), but when I try to run "install.php" in my browser it just says: "This script must be run from the command line". So, what to do now?

And one more question, it says, requirements are [...]Yahoo! User Interface Library [...] What should I do with that? Nothing to install in my wiki, isn't it? :) Thanks for answering 82.210.249.4 13:59, 4 April 2008 (UTC)


 * You don't access install.php through the browser, you access it through a command line. And you need a shell account to run install.php from the command line. If you don't have a shell account but you have, for example, phpMyAdmin, you can create the tables through it too.


 * Yahoo! User Interface Library (YUI) is included with this package: see /SocialProfile/YUI/YUI.php. However, the inclusion of yui.js is a bit buggy, so I suggest that you edit /SocialProfile/YUI/YUI.php and change the relative path in line 17 of YUI.php to a full path. So,  would become something like   or such. -- Sayuri  14:21, 4 April 2008 (UTC)

The previous messages here shows me, that the problem is a common one, but I found no solution yet =/ Would be great if someone could help me :) I don't know, if it is advertising or something else, but for a closer look, the wiki, and especially the user-site, is here (german). Thanks for all :) 91.1.207.188 14:54, 6 April 2008 (UTC)
 * Thanks for that hint, I created the tables manually now, also I edited the line in the YUI.php. But now there is a problem with the "Special:"-Pages. The User-Page is no problem, but when I try to navigate to any "edit"-link, or try to visit any other "Special:"-page I get an error like "Fatal error: Cannot redeclare wfspecialaddrelationship (previously declared in /www/htdocs/v129521/wiki/extensions/SocialProfile/UserRelationship/SpecialAddRelationship.php:20) in /www/htdocs/v129521/wiki/extensions/SocialProfile/UserRelationship/SpecialAddRelationship.php on line 256" or "Fatal error: Class 'SpecialUpdateProfile' not found in /www/htdocs/v129521/wiki/includes/SpecialPage.php on line 321"


 * It works for me, but I'm using the latest version of SocialProfile. Did you download the extension from SourceForge? That could explain it, as SpecialAddRelationship.php should be only 225 lines long. If you downloaded it from SourgeForge (as I presume you did), ditch that version and download it from SVN. Do note that the trunk version of SocialProfile requires MediaWiki 1.11 &mdash; if your wiki is running 1.10, I suggest updating it. -- Sayuri 15:50, 6 April 2008 (UTC)


 * That was the solution, thank you very much. Now it works, it's kinda buggy, and there's still some work, but now I think I can handle this :) Thank you very much :) kleinPhi (91.1.207.188 17:41, 6 April 2008 (UTC))


 * Please let me know (either on my talk page or here) how it goes and if you need more help. -- Sayuri 10:53, 7 April 2008 (UTC)

Hope I could help you, I try to fix these things for me now. Hope I get this :). Greets, kleinPhi (82.210.249.4 11:53, 7 April 2008 (UTC))
 * Ok, just a small summary of the things, I recognized first: On the profile-page there are the spaces missing between the parameter-names and the values (see here), and when you try to edit the profile, you have the entries with "city" and "country" twice, but in the profile-page there is no entry for city, but two for country (but both labeled as "city"... "Ort" and "Stadt" is in german nearly the same and means "city" in these cases...) (click). And some kind of stylesheet or something else is missing, I think it looks not very nice ^^
 * Found something new: Everywhere you have a button to return to the mainpage, you link to title=Main_page. So I don't know, if it is in my wiki only, but I think it is because of the german wiki-installation, and the link should be title=Hauptseite there, that I get an error everytime (and rewrite_mod is off, there is no autmatic redirect in my wiki). Perhabs you can fix it, when the code  "; is linking to something like index.php?title=".wfMsg("ur-main-page") ... I don't know, but perhaps that would help (: 82.210.249.4 12:17, 7 April 2008 (UTC)

I'm so sorry, but I found something again ^^ When you send a friendrequest to someone, and after that this user want to make that other person to his friend over the same way, than he gets the message Blabla wnats to be your friend + the customized message of the other user (on Spezial:ViewRelationshipRequests). But the Buttons there are not working, neither Accept nor Decline. 82.210.249.4 12:21, 7 April 2008 (UTC)


 * Yes, I've encountered some of those problems too. Have you patched MediaWiki's source code? Specifically, you need to add three lines into includes/AjaxFunctions.php. The CSS & JS inclusion for some reason is quite buggy...a rather hack-ish way to "fix" it is to add the appropriate CSS and JS into your wiki's MediaWiki:Common.css and MediaWiki:Common.js pages respectively. So, copy the CSS from extensions/SocialProfile/UserRelationship/UserRelationship.css, extensions/SocialProfile/UserBoard/BoardBlast.css, extensions/SocialProfile/UserBoard/UserBoard.css and extensions/SocialProfile/UserProfile/UserProfile.css into your wiki's MediaWiki:Common.css. That will solve the style issues.


 * ...and then there is the JavaScript. Copy the JS from extensions/SocialProfile/UserRelationship/UserRelationship.js, extensions/SocialProfile/UserBoard/BoardBlast.js, extensions/SocialProfile/UserProfile/UpdateProfile.js and extensions/SocialProfile/UserProfile/UserProfilePage.js to your wiki's MediaWiki:Common.js. After all this is done, the pages should look nice and you should be able to accept / decline friend or foe requests and send board messages.


 * As I sadly don't have commit access (well, yet anyway), I cannot fix anything in the SVN source code. But I've asked iAlex to look into this extension &mdash; I'm sure he can fix whatever there is to fix. ;-) -- Sayuri 14:14, 7 April 2008 (UTC)


 * An alternative to putting the css and javascript into common is to put an absolute url to the following variables - $wgUserBoardScripts; $wgUserProfileScripts; $wgUserRelationshipScripts - in SocialProfile.php helps make it work. --Jarrod 10th April

How to apply the look?
the extension is working so far, at least the profiles are wachable and can be changed but they dont look like in the screeshots. it looks like:

tv <other-info-music>music <other-info-books>books <other-info-video-games>Pong <other-info-magazines>magazine <other-info-snacks>food <other-info-drinks>drink

its just code, how can I apply the template to it so it looks like in the screenshots?


 * Seems that the i18n files aren't being loaded properly for some reason. -- Sayuri 15:50, 6 April 2008 (UTC)


 * aren't this files loaded within the SocialProfile.php? Or is there any other point in the code where I have to reference it? --Demagggus 13:45, 7 April 2008 (UTC)


 * Should be, anyway. -- Sayuri 14:14, 7 April 2008 (UTC)

Similar Issue
I also am able to install and get some basic functionality. However the look isn't anything like the screenshots. Instead I get the below list of properties. How can I get this to look correct? (I'm using MW 1.12)


 * UserName
 * Contributions | Wiki userpage
 * Custom information
 * Custom 1test 1
 * Custom 2custom 2
 * Other information
 * Moviesmovie1, movie2
 * Personal information
 * Real nameJT
 * LocationThe Emerald City,
 * OccupationStudent
 * About melots of text about me ... text text text text text text


 * Please see above. Applying the CSS / JS into MediaWiki:Common.css & MediaWiki:Common.js is a rather hack-ish solution, but it works. As Jarrod said above, setting $wgUserBoardScripts; $wgUserProfileScripts and $wgUserRelationshipScripts to an absolute value in SocialProfile.php might be able to fix that, too. -- Sayuri  11:56, 11 April 2008 (UTC)

Problems installing on MW 1.11
Hi, great idea to do this one. I just tried installing it on MW 1.11 and ran into some problems:
 * 1) The package from SourceForge doesn't contain the files in the root directory (install, install.settings and socialprofile.php)
 * 2) The install.php file said that all four tables have been created:
 * 3) *''The table 'user_board' has been set up correctly.
 * 4) *''The table 'user_profileard' has been set up correctly.
 * 5) *''The table 'user_stats' has been set up correctly.
 * 6) *''The tables 'user_relationship', and 'user_relationship_request' have been set up correctly.
 * But user_profileard wasn't created until I copied the sql code from the sql file in the folder.
 * 1) My profile page is displayed, but when trying to edit the profile it says:
 * 2) *Fatal error: Class 'SpecialUpdateProfile' not found in /var/www/sapschul/includes/SpecialPage.php on line 316
 * When trying to upload a picture it says:
 * 1) * Fatal error: Class 'SpecialUploadAvatar' not found in /var/www/sapschul/includes/SpecialPage.php on line 316
 * 2) What are the hooks for? Do I need them? --Flominator 09:38, 8 April 2008 (UTC)

Hi Flominator, here are a couple answers:


 * 1) SourceForge is outdated. Use SVN download instead. You only need the SourceForge package for the avatars directory plus the images inside it.
 * 2) Table user_profileard? It should be just 'user_profile'...
 * 3) That's a rather strange error, I never had such under MW 1.11. Did you install it from SourceForge? If so, dump the SF files and use the SVN version instead, as it's more up-to-date.
 * 4) Hooks can be used to add more stuff to the profiles, for example. If you don't use them, you don't need to pay them any special attention. -- Sayuri 13:30, 8 April 2008 (UTC)

Notice: Undefined property: stdClass::$stats_currency
Anybody an idea, why this Notice appears? I can't detect any mistake!?! --Demagggus 11:19, 8 April 2008 (UTC)

Some Problems
When I try to upload an avatar I get the following:

Warning: Invalid argument supplied for foreach in /www/htdocs/w008ec1f/wiki/extensions/SocialProfile/UserStats/UserStatsClass.php on line 378 Internal Error The file „/tmp/php8hGx8D“ could not be copied to „“.

Any solutions on this? --78.48.150.39 15:12, 10 April 2008 (UTC)


 * Are you using an old version of SocialProfile package perhaps? I know this error happened in the older releases, but haven't seen it on the trunk version of SocialProfile. -- Sayuri 14:26, 10 April 2008 (UTC)


 * I've just been getting the same internal error, and it was because I didn't have imagemagick installed. It's used in upload to create thumbnails of the avatar Jarrod 10th April 2008


 * OK, I fixed it by putting an avatar folder in /images/ but that Error is still there: Warning: Invalid argument supplied for foreach in /www/htdocs/w008ec1f/wiki/extensions/SocialProfile/UserStats/UserStatsClass.php
 * Now I got a new problem: When I try to add someone as a friend this appears:
 * Fehler in der Datenbank
 * Es gab einen Syntaxfehler in der Datenbankabfrage. Die letzte Datenbankabfrage lautete:

(SQL-Abfrage versteckt)
 * aus der Funktion „UserRelationship::userHasRequestByID“. MySQL meldete den Fehler „1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '`` WHERE ur_user_id_to = '3' AND ur_user_id_from = '1' AND ur_status = '0' LIM' at line 1 (localhost)“.


 * And when I insert a message on a board and press send, nothing happens.


 * Any solution?--78.48.150.39 15:12, 10 April 2008 (UTC)

Board and relationship issue
Hello everyone

As far as i saw, this extension is fantastic. However i ve qome issue with the social functionalities
 * when i try to send a message on a member borad (public or private) clicking the "send" button has no effects
 * A friend of mine added me as a "friend" by clicking on the link he recieved. But the data was not entered in the sql DB (table user_relationship i guess)

On my profile, il don't see the "friends" box as i should according the screenshot There is also a problem with the board because, istead of seing "No message" i see "&lt;userboard_nomessages&gt;" as you can see here

Thank you in advance for your help

--Roulion 17:15, 14 April 2008 (UTC)


 * I've encountered the problem with send button not having any effect...try copying extensions/SocialProfile/UserProfile/UserProfilePage.js into your wiki's MediaWiki:Common.js and see if that helps.


 * If you don't see friends on the profile page, try adding this to LocalSettings.php and see if it helps:


 * The issue with messages being loaded is sadly present in there...neither iAlex or I could figure out what causes it. The simplest solution, for now, is to create MediaWiki:Userboard_nomessages and other messages that show up as &lt;message_name&gt; . It's a rather hacky workout, but hey, it works. ;-) -- Sayuri 17:55, 14 April 2008 (UTC)

Well I applied all the "readme" instructions and the functions (posting messages) works

By the way there still are 2 issues $wgUserProfileDisplay['friends'] = true; $wgUserProfileDisplay['foes'] = true;
 * the Friends/foes borad dosen't appear despite the LocalSettings options
 * the i18n files forthe board message aren't taken into account

=> if i miodify the UserBoardClass.php file, line 62-63 public function sendBoardNotificationEmail($user_id_to,$user_from){ require_once( "UserBoard.i18n.php" ); with public function sendBoardNotificationEmail($user_id_to,$user_from){ require_once( "/extensions/SocialProfile/UserBoard/UserBoard.i18n.php" );

The messages are OK (with the good translation) but the AJAX function doesn't work prperly... :-/

--Roulion 20:42, 14 April 2008 (UTC)


 * Dunno why the friends & foes wouldn't appear...works for me. Perhaps you could try setting it from SocialProfile.php</tt>? Reportedly that doesn't work, but it's worth a shot. ;-)


 * There are some hardcoded messages, but as far as I know, most of them have been removed, but some are still there as they're very hard to fix...such as "posted xx minutes ago" - at least the "minutes", "hours" etc. are hardcoded. But otherwise it should be quite i18n-able. -- Sayuri 21:09, 14 April 2008 (UTC)

Gotcha. By adding directly in a require_once functin in LocalSettings, you can fix it require_once ( "$IP/extensions/SocialProfile/UserRelationship/UserRelationship.i18n.php" ); require_once ( "$IP/extensions/SocialProfile/UserBoard/UserBoard.i18n.php" ); require_once ( "$IP/extensions/SocialProfile/UserProfile/UserProfile.i18n.php" );

Then empty your cache and it should be ok --Roulion 21:30, 14 April 2008 (UTC)

Can anyone help to get this running on MW 1.11 / 1.12?
Hi, I get the same error as many others:

Fatal error: Cannot redeclare wfspecialaddrelationship (previously declared in /************/wiki/extensions/SocialProfile/UserRelationship/SpecialAddRelationshi p.php:20) in /************/wiki/extensions/SocialProfile/UserRelationship/SpecialAddRelationship.php on line 256

If anybody was successful in installing this awesome extension in a current MW environment, can you pleae give a hand on this?

Any support is greatly appreciated...

thx Dominik


 * Hi Dominik, sounds to me that you're running an outdated version of this package, downloaded from SourceForge? If so, pleae download SocialProfile from the official SVN, it's been greatly improved and shouldn't have this bug. -- Sayuri 21:09, 14 April 2008 (UTC)

Extension fix
I achieved to make the extension work properly. I's not very clean but it looks to work

Step 1 In LocalSettings.php add

Step 2

In Include/AjaxFinctions/php add at the end of the file

Step 3 In your Mediawiki:Common.css page, add :

Step 4 In your Mediawiki:Common.js page, add :

Step 5 In the extensions/SocialProfile/UserProfile/UserProfile.i18n.php file, at the end of your language section (english or french for example), add the content of the same language section of the langauge UserBoard/UserBoard.i18n.php file.

caution, respect the end of the array !!

I work properly as you can see here

1 more question : what is the parameter to modify in oder to be able tu suppress messages on his board whatever the date of the message is ? When i cliqu on the suppress link, the message doesn't disappear... --Roulion 08:17, 15 April 2008 (UTC)


 * I followed every mod specified here to try to make mine work properly, these mods made no difference for me...
 * I seem to have 2 main issues crippling this extension for me, as far as I can tell...
 * Prefix, preventing many things working
 * JS?, The 'send' buttons dont do anything, when sending a private message or using the boards, but Firebug does not report any errors to me on the related pages when I click these buttons?
 * --HTPCnz 02:30, 29 April 2008 (UTC)

HTPCnz Problems
I have just installed, yet to test everything througly or do any mods as described above or personal mods... I downloaded the latest version of everything from SVN...and I have the avatars folder (from sourceforge) located in my wikis image folder (as instructions stipulated), and looks to be working properly as avatar did upload, and I see them there in that folder...

Avatar Warning
When I try to upload an avatar I get the following:

Warning: Invalid argument supplied for foreach in /www/htdocs/w008ec1f/wiki/extensions/SocialProfile/UserStats/UserStatsClass.php on line 378

The pitcures show, and are thumbnailed, but yet I get that error? Any ideas what the issue is/how to fix?


 * Nothing that you should care about -- it's annoying, but doesn't cause any real harm. These extensions can be combined with another extension called UserLevels and you can get points from (for example) uploading an avatar. UserLevels extension wasn't included in this package, so that might be why it's throwing out that error on some installations. See Help:User Levels at Wikia Help for more info about the UserLevels extension. I'm hoping that UserLevels will be released some time in the near future. -- Sayuri 13:26, 28 April 2008 (UTC)


 * Fixed - By removing the use of prefix --HTPCnz 05:06, 1 May 2008 (UTC)

Adding Friend/Foe - Database Error
When I tried to add friend, I got this 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 "UserRelationship::userHasRequestByID". MySQL returned error "1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '` WHERE ur_user_id_to = '6' AND ur_user_id_from = '1' AND ur_status = '0' LIMI' at line 1 (mysql.htpcnz.net)".


 * Are you using $wgDBprefix? This is a bug with badly-constructed SQL in one or more of the extension files, I'll fix this if I ever get commit access. -- Sayuri 13:26, 28 April 2008 (UTC)


 * I am unfortunatley, I read the above comments, slowly going through all the comments/bug fixes now, thank you for your prompt reply to all my issues...


 * This being the case, is there no fix for this issue at the mo then? --HTPCnz 13:43, 28 April 2008 (UTC)


 * Fixed - by removing use of prefix, but new problems though, see below --HTPCnz 05:15, 1 May 2008 (UTC)

Send a message
The 'Send a message' does not appear to work at all... The page loads up as it should, but once I have inputted my message, and click the 'send' button, nothing happens?


 * JS probably isn't being loaded properly (you can check it yourself if you have Firefox browser + Firebug add-on). -- Sayuri 13:26, 28 April 2008 (UTC)


 * I dont appear to get any errors coming up in Firebug when on the mentioned pages, and having clicked on the 'send' button...still doing nothing? --HTPCnz 15:36, 28 April 2008 (UTC)


 * Fixed, by removing use of prefix --HTPCnz 05:15, 1 May 2008 (UTC)

Board
I do not see it at all... I am sure I am just being ignorant/lazy here, and probably just have not enabled it


 * Try settings  in your LocalSettings.php. -- Sayuri  13:26, 28 April 2008 (UTC)


 * The above fix worked, viewable now, although I now have the same problem as mentioned above with 'send message'...I am sure I have JS enabled, and have installed the Firefox extension but do not know what I am looking for/to do, as never used before...


 * Please give me more instructions to figure out the JS, if that is the issue in both these cases
 * Thanks --HTPCnz 14:14, 28 April 2008 (UTC)


 * Fixed - but new problems though, see below --HTPCnz 05:15, 1 May 2008 (UTC)

Populate User profiles
When I click on this page, I get the following error:

Permission error

Return to Main Page.


 * You still need the 'staff' permission to access it. Read above. -- Sayuri  13:26, 28 April 2008 (UTC)


 * Fixed using above method --HTPCnz 13:39, 28 April 2008 (UTC)

View Relationship Requests
When I click on this page, I get the following Database error:

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 "UserRelationship::getOpenRequestCountDB". MySQL returned error "1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '` WHERE ur_user_id_to = '1' AND ur_status = '0' AND ur_type = '1' LIMIT 1' at line 1 (mysql.htpcnz.net)".


 * See . -- Sayuri 13:26, 28 April 2008 (UTC)


 * Fixed - by removing use of prefix, but new problems though, see below --HTPCnz 05:15, 1 May 2008 (UTC)

I think thats everything now :) Can someone help me knock these issues out 1 by 1 please? Any help appreciated. My site HTPCnz

--HTPCnz 11:53, 28 April 2008 (UTC)

HTPCnz Latest Progress
Ok, I have removed the use of a prefix on my site to attempt to get this extension running error free...

All of the issues I described above are now resolved, but there are new problems...please help I do feel I have made substantial progress though, as all the feature are actually working, just need to figure out and remove/fix all the warnings that are appearing

This extension is live on my site right now, if anyone would like to view and try to help me resolve these issues... One can make an account to test, or view these pages to see what I have tested so far, and the warnings that appear:
 * Admin user profile - Example of perfect working user profile, but no board/PM posts...
 * Fish user profile - Example of user profile with warnings, after using Board, PM and BoardBlast...

Quick points:
 * Avatars work perfectly now, no warnings
 * Adding Friends/Foes, posting on Boards, or sending PM's all appear to work now, but are throwing up ugly warnings
 * Friends/Foes not displaying after being approved

Here are the new issues in detail:

Board
When posting a message on a board, it works, but I get these errors, showing directly under the Board posting text box/above the post itself....

Warning: Invalid argument supplied for foreach in /home/.hatch/euanhtpc/htpcnz.net/extensions/SocialProfile/UserBoard/UserBoardClass.php on line 66

Warning: Invalid argument supplied for foreach in /home/.hatch/euanhtpc/htpcnz.net/extensions/SocialProfile/UserStats/UserStatsClass.php on line 378

Warning: Invalid argument supplied for foreach in /home/.hatch/euanhtpc/htpcnz.net/extensions/SocialProfile/UserStats/UserStatsClass.php on line 378

Warning: preg_replace_callback [function.preg-replace-callback]: Requires argument 2, 'cut_link_text', to be a valid callback in /home/.hatch/euanhtpc/htpcnz.net/extensions/SocialProfile/UserBoard/UserBoardClass.php on line 272

Apoun refreshing the screen, those warnings disappear, and the board post displays correctly, but then I get this warning at the top of the page:

Warning: preg_replace_callback [function.preg-replace-callback]: Requires argument 2, 'cut_link_text', to be a valid callback in /home/.hatch/euanhtpc/htpcnz.net/extensions/SocialProfile/UserBoard/UserBoardClass.php on line 272

Relationship Requests
When accepting a friend request, it works, but I get these errors, showing directly under the page title/above the confirmed relationship status message itself....

Warning: Invalid argument supplied for foreach in /home/.hatch/euanhtpc/htpcnz.net/extensions/SocialProfile/UserStats/UserStatsClass.php on line 378

Warning: Invalid argument supplied for foreach in /home/.hatch/euanhtpc/htpcnz.net/extensions/SocialProfile/UserStats/UserStatsClass.php on line 378

Wmburke 5/27/09 11:45pm EST: I have this same issue, but on line 431. Not even sure how to start troubleshooting it. Running on shared hosting by a2hosting.

Invite Contacts
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.


 * It links to Special:InviteContacts, which wasn't included in this package. If you want it, you could try emailing Wikia (see below for the email addresses you might want to poke). -- Sayuri 10:05, 1 May 2008 (UTC)

Board Blast
Sends the message/s but these warnings show at the top of the page:

Warning: Invalid argument supplied for foreach in /home/.hatch/euanhtpc/htpcnz.net/extensions/SocialProfile/UserBoard/UserBoardClass.php on line 66

Warning: Invalid argument supplied for foreach in /home/.hatch/euanhtpc/htpcnz.net/extensions/SocialProfile/UserStats/UserStatsClass.php on line 378

Warning: Invalid argument supplied for foreach in /home/.hatch/euanhtpc/htpcnz.net/extensions/SocialProfile/UserStats/UserStatsClass.php on line 378

Warning: Invalid argument supplied for foreach in /home/.hatch/euanhtpc/htpcnz.net/extensions/SocialProfile/UserBoard/UserBoardClass.php on line 66

Warning: Invalid argument supplied for foreach in /home/.hatch/euanhtpc/htpcnz.net/extensions/SocialProfile/UserStats/UserStatsClass.php on line 378

Warning: Invalid argument supplied for foreach in /home/.hatch/euanhtpc/htpcnz.net/extensions/SocialProfile/UserStats/UserStatsClass.php on line 378

Apoun viewing the recipitants user page, there is now this additional error displayed at the top of the page:

Warning: preg_replace_callback [function.preg-replace-callback]: Requires argument 2, 'cut_link_text', to be a valid callback in /home/.hatch/euanhtpc/htpcnz.net/extensions/SocialProfile/UserBoard/UserBoardClass.php on line 272

That is the same, and adds to the original error there from posting in the boards to that user.


 * I solvived the cut_link_text problem by upgrading from MediaWiki 1.11.0 to 1.12.0. -- Sayuri 10:05, 1 May 2008 (UTC)

Friends/Foes
They are not displaying


 * Try setting the following on LocalSettings.php:


 * -- Sayuri 10:05, 1 May 2008 (UTC)


 * Fixed, using method above --HTPCnz 10:35, 1 May 2008 (UTC)

Extension Progress?
This extension is a great start (shame I cant yet get working on my wiki) but I am wondering, will it eventually offer everything that is offered on Wikia sites?

From reading about this extension suite at Wikia, there are many more features not included here yet...which make this on par with typical social networking sites of today...



Features such as:
 * Recent activity
 * Gifts
 * User score/level
 * Awards
 * Statistics
 * Pictures
 * Games
 * Users able to easily make their own user boxes
 * Users able to easily add extra custom user boxes
 * The ability to display user avatar/score/level on main page (custom to their logon)

With that list, the extension suite should really be renamed to Social Networking

Any chance of all that been made available to the public, to put on other wikis? Fantastic suite of features

--HTPCnz 07:47, 29 April 2008 (UTC)


 * While I really cannot answer the original question, I agree I'd just simply love to see some of these released to the public aswell.


 * I've asked about the UserLevels extension plus the needed supporting parser hook extensions (&lt;loggedin&gt;, &lt;loggedout&gt;, &lt;welcomeUser&gt;, &lt;randomuserswithavatars&gt; tags) and also about the TopUsers special page. Maybe you should email  to ask about this, or contact the New York Team who coded these extensions (even though they cannot release code themselves apparently) or Gil Penchina, Wikia's CEO  as I hear that Gil's in charge of code releases. -- Sayuri  13:09, 30 April 2008 (UTC)


 * I will do just that then...all of them.
 * But I doubt my 1 voice is going to make any difference, but no harm in trying?
 * One would like to think wikis and the tools/extensions made for them are for benefit of all the community, as is Wikia, but I guess it is their work, hence their intellectual property, and used to give the Wikia sites a point of difference/cool features that other sites don't have, so to improve their appeal, hence business model (I assume their is one). --HTPCnz 16:27, 30 April 2008 (UTC)


 * Trying can't hurt you (well - hopefully!) and I've done my part regarding this, now just gotta hope for the best...in my humble opinion, this very talk page speaks for itself &mdash; people simply love Wikia's extensions and would like to see more of them. -- Sayuri 16:32, 30 April 2008 (UTC)

Can't Upload Adventars
My Proplem is that by my Hoster the Php-funktion exec is deactivated, so the scipt can't recize the images and save the images.

Can someone can recode the function createThumbnail ? I think this php-funktion's you need for this: 84.173.71.227 07:34, 1 May 2008 (UTC)
 * ImageCreateFromJPEG, ImageCreateFromGIF, ImageCreateFromPNG
 * ImageCreate
 * imagecopyresized,
 * ImageJPEG,ImageGIF,ImagePNG


 * I'm afraid that it's quite unlikely a working function would be removed because your hosting provider sucks. Perhaps you could try modifying the file/files by yourself to suit your hosting provider. -- Sayuri 10:05, 1 May 2008 (UTC)
 * I'm not so good in Php, but I try it out. One question, In whitch variable or file is the picturedata (raw data) from the upload in the function createThumbnail ? 84.173.71.227 10:29, 1 May 2008 (UTC)

Problem Uploading Avatars
I have just installed SocialProfile to mediawiki 1.8. (and by the way its very nice!)

When trying to upload avatars I get this message:


 * Warning: Invalid argument supplied for foreach in /var/www/html/mediawiki/extensions/SocialProfile/UserStats/UserStatsClass.php on line 611 Fatal error: Call to undefined function imagecreatefrompng in /var/www/html/mediawiki/extensions/SocialProfile/UserProfile/SpecialUploadAvatar.php on line 296

Upon investigation I found on line 611 of UserStatsClass.php "//FIXME: invalid argument supplied for foreach. The FIXME leads me to believe that there is probably a known cause/workaround for this.

The changes I have made to LocalSettings (immediately after the require_once...) are $wgUserProfileDisplay['friends'] = true; $wgUserProfileDisplay['foes'] = true; $wgUserBoard = true; $wgUserProfileDisplay['board'] = true; $wgUserProfileDisplay['stats'] = true;

Edit: OK I found the issue: GD was not installed. I fixed it with "yum install php-gd"