Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Update Memberships button problem
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 12, 2012 - 10:00 pm

getting server errors which explains why its not doing anything...

The server encountered an internal error or misconfiguration and was unable to complete your request

and

"NetworkError: 500 Internal Server Error - http://xxxxxxxxxxxx/index.php?.....8;userid=2"

can you check your server error log for any more info???

also, make sure that the file simple-press/forum/profile/ahah/sp-ahah-profile-save.php and make sure its there? though it must if you save other data...  and then verify owner and permissions on it...

do you run mod_security on your server?

Avatar
SPQC
Member
Free Members
sp_UserOfflineSmall Offline
Feb 12, 2012 - 10:06 pm

Mr Papa said

can you check your server error log for any more info???

A PM was sent before this message...  🙂

do you run mod_security on your server?

How can I check this?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 12, 2012 - 10:08 pm

check with your host... or if self managed, you will want to do a php_info() and see if mod_security is loaded... its an apache module... but the bane of developers with all its false positives...

Avatar
SPQC
Member
Free Members
sp_UserOfflineSmall Offline
Feb 12, 2012 - 10:23 pm

Seems not loaded, I got full info mapge and a seach of it gives no result.

Avatar
SPQC
Member
Free Members
sp_UserOfflineSmall Offline
Feb 12, 2012 - 10:25 pm

Mr Papa said

also, make sure that the file simple-press/forum/profile/ahah/sp-ahah-profile-save.php and make sure its there? though it must if you save other data...  and then verify owner and permissions on it...

It's there with rw-r--r-- (0644)

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 12, 2012 - 10:28 pm

mapge??

could look in /usr/local/apache/modules on your server and see if its in there too... of course, assumes you are running apache...

well, still need to figure out what your server does not like... not much I can do until we figure out what is causing the 500 error... its not generally happening on other sites...

Avatar
SPQC
Member
Free Members
sp_UserOfflineSmall Offline
Feb 14, 2012 - 2:41 pm

Update!

I just looked into Admin Toolbox, then Error Log, and this is what happen when I click to update :

 

file: /simple-press/sp-api/sp-api-filters.php
line: 1641
function: stripslashes
Notice | Array to string conversion

 

I think I just nailed it, right?  Hope it's a good clue.  I should have seen this before...  what I was seeing instead was the server Error Log.

 

The server Error Log show :

Premature end of script headers: /wp/index.php

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 14, 2012 - 8:31 pm

well, not sure...  it is only a notice - not an error... but we can try something... in sp-ahah-profile-save.php, around line 103, can you change

            if (isset($_POST['usergroup_join'])) {
                $update = true;
                $joins = sp_esc_str($_POST['usergroup_join']);
                foreach ($joins as $membership) {
                    sp_add_membership($membership, $thisUser);
                }
            }

to

            if (isset($_POST['usergroup_join'])) {
                $update = true;
                foreach ($_POST['usergroup_join'] as $membership) {
                    $membership = sp_esc_int($membership);
                    sp_add_membership($membership, $thisUser);
                }
            }
Avatar
SPQC
Member
Free Members
sp_UserOfflineSmall Offline
Feb 14, 2012 - 8:56 pm

Tested and this is showing below the box (below the update button I click) :

Parse error: syntax error, unexpected T_VARIABLE in /wp-content/plugins/simple-press/forum/profile/ahah/sp-ahah-profile-save.php on line 104 

 

Line 104 is your line 2 in previous post.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 14, 2012 - 9:43 pm

please verify its entered correct... that line did not change from before.. nor did #1

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 617
Members: 17359
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10125
Posts: 79620