I have installed the status.net correctly but I have some problems with the groups.
When I create a closed group and I have pending requests, i try to accept or reject the user that wants to join the group.
When I accept an exception message shows up 'Could not cancel request for user %1$s to join group %2$s.'
And when I reject an error message appears "parseerror"
I use wamp server ..Do you know what might be wrong?
Comments
do you have any idea what might be wrong?
Please paste your config.php (no need to include sensible information)
Enable logging as explained here: http://forum.status.net/discussion/552/sticky-how-to-debug-read-this-before-posting
Try to do these actions again and paste any log output containing any kind of warning or error.
Cheers!
<?php<br />if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); }
$config['site']['name'] = 'Status.net';
$config['site']['server'] = 'localhost';
$config['site']['path'] = 'statusnet-1.1.0';
$config['db']['database'] = 'mysqli://root@localhost/statusnet';
$config['db']['type'] = 'mysql';
$config['site']['profile'] = 'community';
$config['site']['theme'] = 'neo-blue';
addPlugin('Autocomplete');
addPlugin('InfiniteScroll');
addPlugin('Activity');
addPlugin('AutoSandbox');
addPlugin('Blacklist');
addPlugin('Disqus');
addPlugin('EmailReminder');
addPlugin('Event');
addPlugin('GroupFavorited');
addPlugin('LinkPreview');
addPlugin('OpenExternalLinkTarget');
addPlugin('ShareNotice');
addPlugin('SubscriptionThrottle');
addPlugin('TabFocus');
addPlugin('WikiHashtags');
$config['site']['logfile'] = '/tmp/statusnettmp.log';
$config['site']['logdebug'] = true;
$config['sessions']['debug'] = true;
$config['sessions']['handle'] = true;
$config['db']['debug'] = create_function('$class, $message, $logtype, $level','common_log(LOG_DEBUG,"DBDO: $class / $message / $logtype");');
2012-08-06 08:13:22 LOG_WARNING: [localhost:1340.b81ae3e7 POST /statusnet%20real/index.php/group/5/id/approve?profile_id=3] Exception canceling group sub: Call to undefined method User_group::getUser
2012-08-06 08:13:22 LOG_INFO: [localhost:1340.b81ae3e7 POST /statusnet%20real/index.php/group/5/id/approve?profile_id=3] action.php - Server error '500' on 'approvegroup': Could not cancel request for user maria to join group theatro.
2012-08-06 08:13:22 LOG_WARNING: [localhost:1340.b81ae3e7 POST /statusnet%20real/index.php/group/5/id/approve?profile_id=3] ServerErrorAction: 500 Could not cancel request for user maria to join group theatro.
#0 C:\wamp\www\statusnet real\actions\approvegroup.php(165): Action->serverError('Could not cance...')
#1 C:\wamp\www\statusnet real\index.php(365): ApprovegroupAction->handle(Array)
#2 C:\wamp\www\statusnet real\index.php(380): main()
#3 {main}
After examining the log this appears to be the issue
2012-08-08 16:04:56 LOG_ERR: [www.mysite.com:30463.29a11f0a POST /group/1/id/approve?profile_id=12] Exception canceling group sub: Call to undefined method User_group::getUser
Here is more of the log
2012-08-08 16:04:56 LOG_DEBUG: [www.mysite.com:30463.29a11f0a POST /group/1/id/approve?profile_id=12] DBDO: Group_member / INSERT INTO group_member (group_id , profile_id , uri , created ) VALUES ( 1 , 12 , 'tag:www.mysite.com,2012-08-08:join:12:1:2012-08-08T16:04:56+00:00' , '2012-08-08 16:04:56' ) / QUERY
2012-08-08 16:04:56 LOG_DEBUG: [www.mysite.com:30463.29a11f0a POST /group/1/id/approve?profile_id=12] DBDO: Group_member / QUERY DONE IN 0.0023469924926758 seconds / query
2012-08-08 16:04:56 LOG_DEBUG: [www.mysite.com:30463.29a11f0a POST /group/1/id/approve?profile_id=12] DBDO: Group_join_queue / DELETE FROM group_join_queue WHERE ( group_join_queue.profile_id = 12 ) AND ( group_join_queue.group_id = 1 ) / QUERY
2012-08-08 16:04:56 LOG_DEBUG: [www.mysite.com:30463.29a11f0a POST /group/1/id/approve?profile_id=12] DBDO: Group_join_queue / QUERY DONE IN 0.001471996307373 seconds / query
2012-08-08 16:04:56 LOG_DEBUG: [www.mysite.com:30463.29a11f0a POST /group/1/id/approve?profile_id=12] DBDO: Group_join_queue / Clearing Cache for group_join_queue / 1
2012-08-08 16:04:56 LOG_DEBUG: [www.mysite.com:30463.29a11f0a POST /group/1/id/approve?profile_id=12] DBDO: Group_member / Clearing Cache for group_member / 1
2012-08-08 16:04:56 LOG_ERR: [www.mysite.com:30463.29a11f0a POST /group/1/id/approve?profile_id=12] Exception canceling group sub: Call to undefined method User_group::getUser
2012-08-08 16:04:56 LOG_DEBUG: [www.mysite.com:30463.29a11f0a POST /group/1/id/approve?profile_id=12] action.php - Server error '500' on 'approvegroup': Could not cancel request for user hsgis to join group gis.
2012-08-08 16:04:56 LOG_DEBUG: [www.mysite.com:30463.29a11f0a POST /group/1/id/approve?profile_id=12] DBDO: Profile / Clearing Cache for profile / 1
2012-08-08 16:04:56 LOG_DEBUG: [www.mysite.com:30463.29a11f0a POST /group/1/id/approve?profile_id=12] DBDO: User_group / Clearing Cache for user_group / 1
2012-08-08 16:04:56 LOG_ERR: [www.mysite.com:30463.29a11f0a POST /group/1/id/approve?profile_id=12] ServerErrorAction: 500 Could not cancel request for user hsgis to join group gis.
#0 /var/www/statusnet/actions/approvegroup.php(165): Action->serverError('Could not cance...')
#1 /var/www/statusnet/index.php(365): ApprovegroupAction->handle(Array)
#2 /var/www/statusnet/index.php(380): main()
#3 {main}
Linux drtexl80vm 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
Server version: Apache/2.2.22 (Ubuntu)
Server built: Feb 13 2012 01:51:50
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 5013
Server version: 5.5.24-0ubuntu0.12.04.1 (Ubuntu)
PHP 5.3.10-1ubuntu3.2 with Suhosin-Patch (cli) (built: Jun 13 2012 17:19:58)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dba
dom
ereg
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
json
libxml
mbstring
mcrypt
memcache
mhash
mysql
mysqli
openssl
pcntl
pcre
PDO
pdo_mysql
Phar
posix
readline
Reflection
session
shmop
SimpleXML
soap
sockets
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xml
xmlreader
xmlwriter
zip
zlib
[Zend Modules]
config.php
cat /var/www/statusnet/config.php
<?php<br />if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); }
$config['site']['name'] = 'XXXXXX';
$config['site']['server'] = 'XXXXX.com';
$config['site']['path'] = '';
$config['db']['database'] = 'mysqli://XXXX:XXXX@localhost/statusnet';
$config['db']['type'] = 'mysql';
$config['site']['profile'] = 'community';
$config['site']['fancy'] = true;
// Support for file uploads (attachments),
// select supported mimetypes and quotas (in bytes)
// $config['attachments']['supported'] = array('image/png', 'application/ogg');
$config['attachments']['supported'] = true; //allow all file types to be uploaded
// $config['attachments']['file_quota'] = 5000000;
// $config['attachments']['user_quota'] = 50000000;
// $config['attachments']['monthly_quota'] = 15000000;
$config['attachments']['uploads'] = true;
// $config['attachments']['path'] = "/file/"; //ignored if site is private
// $config['attachments']['dir'] = INSTALLDIR . '/file/';
// Email info, used for all outbound email
$config['mail']['notifyfrom'] = 'statusnet@XXXXX.com';
// Domain for generating no-reply and incoming email addresses, if enabled.
// Defaults to site server name.
// $config['mail']['domain'] = 'microblog.example.net';
// See http://pear.php.net/manual/en/package.mail.mail.factory.php for options
$config['mail']['backend'] = 'smtp';
$config['mail']['params'] = array(
'host' => 'XXXXXXX.com',
'port' => 25,
);
// Plugin to require email validation before posting is allowed
// addPlugin('RequireValidatedEmail');
//allow users to delete their profile
$config['profile']['delete']='true';
// Plugin for mobile version of the website
addPlugin('MobileProfile');
// enable memcached php caching platform
$config['memcached']['enabled'] = true;
$config['memcached']['server'] = 'localhost';
$config['memcached']['port'] = 11211;
// Plugin to enable infinite scrolling
addPlugin('InfiniteScroll');
// Plugin to enable the scroll to top error
addPlugin('ScrollToTop');
// Site Debug
// $config['site']['logfile'] = '/tmp/statusnettmp.log';
// $config['site']['logdebug'] = true;
// $config['sessions']['debug'] = true;
// $config['sessions']['handle'] = true;
// $config['db']['debug'] = create_function('$class, $message, $logtype, $level','common_log(LOG_DEBUG,"DBDO: $class / $message / $logtype");');