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.

Thanks --MatrixVortex 23:30, 16 August 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 ?

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)