Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Can't read PMs ... Get not implemented? (Read 14175 times)
Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 1759
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Re: Can't read PMs ... Get not implemented?
Reply #4 - Jan 4th, 2015 at 4:05pm
Print Post  
There is a cartoon JonB likes to quote: 2 panels, both show a programmer in front of a computer monitor: 
1st Panel: It doesn't work and I don't know why.
2nd Panel: It works and I don't know why.
Wink
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Batchman
Full Member
***
Offline


I Love YaBB!

Posts: 163
Location: Somewhere just East of Crazy
Joined: Jul 25th, 2014
Gender: Male
Re: Can't read PMs ... Get not implemented?
Reply #3 - Jan 4th, 2015 at 7:31am
Print Post  
OK ... I'll go try that ... thanks!

To steal a quote from police academy ... sort of ...

Quote:
It works! The damn thing works! Am I an idiot or what?

  

If you don't know where you are, but you don't care, you're not lost ... you're exploring!
Back to top
 
IP Logged
 
Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 1759
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Re: Can't read PMs ... Get not implemented?
Reply #2 - Jan 4th, 2015 at 4:34am
Print Post  
GET is an important function that is used by scripts using query strings (these can include jQuery, ajax, javascript, PHP and perl). (And your post about it was on YaBBForum: http://www.yabbforum.com/cgi-bin/community/YaBB.pl?num=1412088306/13#13.) ;

The generally suggested workaround is to find in Subs.pm
Code (Perl)
Select All
    # $output =~ s/($scripturl\?)([^'"]+)/ $1 . URL_modify($2) /eg;
    # sub URL_modify { my $x = shift; $x =~ s/;/&/g; $x; } 



and replace it with
Code (Perl)
Select All
    $output =~ s/($scripturl\?)([^'"]+)/ $1 . URL_modify($2) /eg;
    sub URL_modify { my $x = shift; $x =~ s/;/&/g; $x; } 



This rewrites the query strings to something more likely to pass mod_security. I am guessing the problem with PMs specifically is related to the fact that accessing a PM sends 3 different query sting items where most other YaBB query stings only have 2 items. 

  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Batchman
Full Member
***
Offline


I Love YaBB!

Posts: 163
Location: Somewhere just East of Crazy
Joined: Jul 25th, 2014
Gender: Male
Re: Can't read PMs ... Get not implemented?
Reply #1 - Jan 4th, 2015 at 1:31am
Print Post  
Whatever the issue is, I can send a new message to somebody else, but I cannot read a PM that has been sent to me.
  

If you don't know where you are, but you don't care, you're not lost ... you're exploring!
Back to top
 
IP Logged
 
Batchman
Full Member
***
Offline


I Love YaBB!

Posts: 163
Location: Somewhere just East of Crazy
Joined: Jul 25th, 2014
Gender: Male
Can't read PMs ... Get not implemented?
Jan 4th, 2015 at 1:20am
Print Post  
I posted about this somewhere (I know I did, because when I go to create a new message, I can see I have used the thread title before) but I have no idea where, whether here or the main forum or elsewhere.

I cannot read PMs on any of my forums, because any time I try to access the PMs the browser throws a 501 error saying GET not implemented.

I was told this is not a YaBB error, but is probably something with my host's security settings ... but that doesn't give me much to take to the host, to try and track the issue down.

But this time around I am determined to find a solution to this, which is why I am asking for information again. If I can't find any info to help, here, then I will have to start posting messages on a perl forum (ie about perl), where I will have no idea what I am actually asking about.

The thing is, GET is a fairly important part of the language, isn't it? I am guessing that GET is used for many things in various places in YaBB, so I wonder why this is the only thing that doesn't work. So I am just asking to get some information I can try to pass on ... where else does YaBB make use of GET?

Just trying to gather together some information.
  

If you don't know where you are, but you don't care, you're not lost ... you're exploring!
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint