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!

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)

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)

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 music books 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)