Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Shoutbox Problems

Asked Modified Viewed 4,519 times
D
Druid
D
Druid 10
  • Member, joined since
  • Contributed 110 posts on the community forums.
  • Started 56 threads in the forums
  • Started this discussions
asked
Member

is there some kind of bug that would stop members shouting in the Shoutbox sometime members have to re shout several times before their shout have been posted i have tried to reload the Shoutbox panel but the problem remains ?
0 replies

18 posts

L
lelebart
L
I don't know! I don't know why I did it, I don't know why I enjoyed it, and I don't know why I'll do it again! Bart Simpson
  • Member, joined since
  • Contributed 133 posts on the community forums.
  • Started 21 threads in the forums
answered
Member

@WEC, @Digitanium:
had this post the correct code -for shoutbox- (...without #)?

edit: because i mod like this:
...

      if ($settings['version'] == "6.01.11") {
      fallback(str_replace("&","&",FUSION_SELF.(FUSION_QUERY ? "?".FUSION_QUERY : "")));
      } else {
      fallback(FUSION_SELF.(FUSION_QUERY ? "?".FUSION_QUERY : ""));
      }

...

   if ($settings['version'] == "6.01.11") {
   echo "<form name='chatform' method='post' action='".FUSION_SELF.(FUSION_QUERY ? "?".FUSION_QUERY : "")."'>";
   } else {
   echo "<form name='chatform' method='post' action='".FUSION_SELF.(FUSION_QUERY ? "?".str_replace("&","&amp;",FUSION_QUERY) : "")."'>";
   }
   echo "

...
Edited by lelebart on 21-08-2007 22:10,
0 replies
W
WEC
W
WEC 10
  • Veteran Member, joined since
  • Contributed 946 posts on the community forums.
  • Started 5 threads in the forums
answered
Veteran Member

This fixed the shoutbox_panel.php

Now you just need to change the member_poll_panel.php to use:

fallback(FUSION_SELF.(FUSION_QUERY ? "?".FUSION_QUERY : ""));


Instead of:

header("Location: ".FUSION_SELF.(FUSION_QUERY ? "?".FUSION_QUERY : ""));


0 replies
F
Falk
F
Falk 148
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 12 questions
answered
Super Admin

Try now, small error.
0 replies
W
WEC
W
WEC 10
  • Veteran Member, joined since
  • Contributed 946 posts on the community forums.
  • Started 5 threads in the forums
answered
Veteran Member

This returns:

Quote

Not Found

The requested URL /forum/viewthread.phpforum_id=6&thread_id=46 was not found on this server.
0 replies
F
Falk
F
Falk 148
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 12 questions
answered
Super Admin

Hmm, ok, in shoutbox_panel.php, look for:

echo "<form name='chatform' method='post' action='".FUSION_SELF.(FUSION_QUERY ? "?".str_replace("&","&amp;",FUSION_QUERY) : "")."'>


Replace with:

echo "<form name='chatform' method='post' action='".FUSION_SELF.(FUSION_QUERY ? "?".FUSION_QUERY : "")."'>
Edited by Falk on 20-08-2007 17:33,
0 replies
W
WEC
W
WEC 10
  • Veteran Member, joined since
  • Contributed 946 posts on the community forums.
  • Started 5 threads in the forums
answered
Veteran Member

I tested this, but you are still redirected to forum index when you are located in a forum thread and try to post a shout or a vote in a poll?
0 replies
F
Falk
F
Falk 148
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 12 questions
answered
Super Admin

Well it SHOULD fix the problem.
0 replies
D
Druid
D
Druid 10
  • Member, joined since
  • Contributed 110 posts on the community forums.
  • Started 56 threads in the forums
  • Started this discussions
answered
Member

i have also tried the code and at first it seemed to be working fine but this morning same problems
0 replies
F
Falk
F
Falk 148
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 12 questions
answered
Super Admin

It didn't come up right, fixed it now
0 replies
K
Ken
K
Ken 10
No Support by PM. Please use the forum.
  • Senior Member, joined since
  • Contributed 713 posts on the community forums.
  • Started 43 threads in the forums
answered
Senior Member

I tried your suggestion Nick, but it seems that it didn't kill the bug :|
Edited by Ken on 20-08-2007 00:01,
0 replies
F
Falk
F
Falk 148
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 12 questions
answered
Super Admin

In v7 we have alterations to the fallback and redirect functions in maincore.php, simply replace:

// Redirect browser using the header function
function redirect($location, $type="header") {
   if ($type == "header") {
      header("Location: ".$location);
   } else {
      echo "<script type='text/javascript'>document.location.href='".$location."'</script>\n";
   }
}

// Fallback to safe area in event of unauthorised access
function fallback($location) {
   header("Location: ".$location);
   exit;
}


With:
// Redirect browser using the header function
function redirect($location, $type="header") {
   if ($type == "header") {
      header("Location: ".str_replace("&amp;", "&", $location));
   } else {
      echo "<script type='text/javascript'>document.location.href='".str_replace("&amp;", "&", $location)."'</script>\n";
   }
}

// Fallback to safe area in event of unauthorised access
function fallback($location) {
   header("Location: ".str_replace("&amp;", "&", $location));
   exit;
}
Edited by Falk on 20-08-2007 00:41,
0 replies
W
WEC
W
WEC 10
  • Veteran Member, joined since
  • Contributed 946 posts on the community forums.
  • Started 5 threads in the forums
answered
Veteran Member

And similar applies to the infusions\member_poll_panel\member_poll_panel.php

Find:

header("Location: ".FUSION_SELF.(FUSION_QUERY ? "?".FUSION_QUERY : ""));


Replace with:

      // header("Location: ".FUSION_SELF.(FUSION_QUERY ? "?".FUSION_QUERY : ""));
      header("Location: ".str_replace("&#amp;","&",FUSION_SELF.(FUSION_QUERY ? "?".FUSION_QUERY : "")));


Again remove # in code to get correct entity for &#amp;
0 replies
W
WEC
W
WEC 10
  • Veteran Member, joined since
  • Contributed 946 posts on the community forums.
  • Started 5 threads in the forums
answered
Veteran Member

If the sanitising of $_SERVER globals are kept as they are in 6.01.11, then i'll suggest this change to \infusions\shoutbox_panel\shoutbox_panel.php:

Find:

fallback(FUSION_SELF.(FUSION_QUERY ? "?".FUSION_QUERY : ""));


Replace with:

      // fallback(FUSION_SELF.(FUSION_QUERY ? "?".FUSION_QUERY : ""));
      fallback(str_replace("&#amp;","&",FUSION_SELF.(FUSION_QUERY ? "?".FUSION_QUERY : "")));


Find:

echo "<form name='chatform' method='post' action='".FUSION_SELF.(FUSION_QUERY ? "?".str_replace("&","&#amp;",FUSION_QUERY) : "")."'>


Replace with:

   // echo "<form name='chatform' method='post' action='".FUSION_SELF.(FUSION_QUERY ? "?".str_replace("&","&#amp;",FUSION_QUERY) : "")."'>
   echo "<form name='chatform' method='post' action='".FUSION_SELF.(FUSION_QUERY ? "?".FUSION_QUERY : "")."'>


Remove # in code to get correct entity for &#amp;
0 replies
W
WEC
W
WEC 10
  • Veteran Member, joined since
  • Contributed 946 posts on the community forums.
  • Started 5 threads in the forums
answered
Veteran Member

This is a bug caused by the function cleanurl() introduced in 6.01.11.

Replacing & with &.amp; works for urls displayed as html, but it will not work for urls passed directly to the browser.

As example http://www.php-fusion.co.uk/forum/viewthread.php?forum_id=39&.amp;thread_id=17737

will not lead to this thread but redirect to forum index.

Note: remove the . in above &.amp; It's put there in order not to enterpretet the entity.

Digi needs to fix this.
0 replies
W
WEC
W
WEC 10
  • Veteran Member, joined since
  • Contributed 946 posts on the community forums.
  • Started 5 threads in the forums
answered
Veteran Member

Yup,

It's broken in 6.01.11.

Seems like when you are on an extended url containing &, then shout will fail and you get redirected.
0 replies
K
Ken
K
Ken 10
No Support by PM. Please use the forum.
  • Senior Member, joined since
  • Contributed 713 posts on the community forums.
  • Started 43 threads in the forums
answered
Senior Member

Yes, I have seen the shoutbox failure on lots of sites now. It seems to fail when you read a forum thread (viewthread.php) and then type a message in the shoutbox.

Edit: The shout is stored on this site though, but after you post the site redirects to http://www.php-fusion.co.uk/forum/
Edited by Ken on 09-08-2007 13:31,
0 replies
D
Druid
D
Druid 10
  • Member, joined since
  • Contributed 110 posts on the community forums.
  • Started 56 threads in the forums
  • Started this discussions
answered
Member

yes this problem has only started to occur after my last upgrade to v6.01.11. also i am having trouble with visiting Custom Pages instead of the link redirecting them to the Custom page it logs members out but if they click on the Back button then they continue to be logged on :|
0 replies
S
Sveinungs
S
  • Veteran Member, joined since
  • Contributed 935 posts on the community forums.
  • Started 3 threads in the forums
answered
Veteran Member

Hi Druid,
there might be something there. I just noticed the same thing on one site running v6.01.11.
This could be related to the last upgrade, I had no time to look into it, but we might need to look into it. Does anybody else have the same experience?
0 replies

Category Forum

Bugs and Errors - 6

Labels

None yet

Statistics

  • Views 0 views
  • Posts 18 posts
  • Votes 0 votes
  • Topic users 6 members

0 participants

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet