Welcome to WebmasterWorld Guest from 54.145.246.183

Forum Moderators: lawman

A couple of critters

Redirect failures, bugging code trapping, entities gone away

   
9:40 pm on Feb 3, 2010 (gmt 0)

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Having a bit of trouble today. :-P

Blank/failing redirect page:
Since the updates, I've seen an intermittent recurrence of the first problem, it seems a bit worse today. On submit of a reply, or edit of a post, you don't get to the "redirection" screen. Just a bare header at the top, and it's done. The post is not applied, but often back-button, hit it again, it posts. Never saw this before the update.

Code error bug:
As mentioned, the code error trap is a good idea, needs to specify **where** the error is, and understood that is in the works - but today I had a larger problem unrelated to that. Took a full 20 minutes to figger out because I was looking in the wrong place.

It is triggering non-markup code errors on this:
[
0
]

As in, $array[arraynumber], try assembling the above three lines on one line, see if you can get it to post. I think it exists if that is any number at all.

Put the entities back:

This was never a problem before. You broke it. :-)
&
amp;

Used to print as a literal, for example, when explaining why ampersands need to be coded to validate [webmasterworld.com].

We love the unmolested pipes | (there's a joke in there somewhere) but need the entities back.
2:35 am on Feb 4, 2010 (gmt 0)

WebmasterWorld Administrator brett_tabke is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



noted and much appreciated rb!

...fix two things - break a third ;-)
7:47 pm on Feb 4, 2010 (gmt 0)

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Sighting: New user, post count is blank in both their posts and profile, don't know if that's expected behavior or not.
10:16 pm on Feb 4, 2010 (gmt 0)

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



i'm sure you knew this but posts in Foo and some other (supporters) forums don't count.
could that be it?
1:02 am on Feb 5, 2010 (gmt 0)

WebmasterWorld Administrator brett_tabke is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



Thanks. If you happen to have an example, I would like to have a look.
7:27 pm on Feb 5, 2010 (gmt 0)

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member



No it wasn't in foo. Looking . . . .


Here [webmasterworld.com]. Note also their user profile.
11:51 pm on Feb 5, 2010 (gmt 0)

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member



It's probably the same as the previous, but just FYI, turns   to a space too [webmasterworld.com]

  <-- what you can't see is --> &nbsp;

That's going to look like hell when you get it fixed . . .
5:43 pm on Feb 7, 2010 (gmt 0)

WebmasterWorld Senior Member leosghost is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



Just noticed ..I cant set "recent posts" to show more than the last 10 ..but individual fora groups ( such as "community" ) are OK and can be set to show any number of posts ..
and the number of new posts in last 24 hours is showing as only 11 new ..and "next" goes nowhere ..

Kittens
5:57 pm on Feb 7, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm also seeing a seriously truncated recent activity search results. At first it was 25 posts so I used the option at the bottom of the page to show 100 and it gave me 12 minus the first post instead.
12:26 am on Feb 8, 2010 (gmt 0)

WebmasterWorld Senior Member leosghost is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



Fixed :) Merci :)
1:03 pm on Feb 10, 2010 (gmt 0)

WebmasterWorld Senior Member leosghost is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



"recent posts" just dropped to 4 ! ..next "link" does nothing.
6:16 pm on Feb 16, 2010 (gmt 0)

WebmasterWorld Senior Member leosghost is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



Active .."recent posts" is awry again ..
1 post only showing ..list is 1 post long :) next and back go nowhere ..
1 threads active in the last 24 hours (list is trimmed nightly to the last 300 threads)
6:53 pm on Feb 16, 2010 (gmt 0)

WebmasterWorld Senior Member leosghost is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



working again now ..thanks :)
4:14 am on Feb 17, 2010 (gmt 0)

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member



And idea on the "broken code" warning . . . .

One of my "root philosophies" is coding is to put as little weight on the user as possible. Their lives are already so overtaxed an annoying message from me can only serve to annoy them further by blaming them for an error (have your sarco-meter at full scan.)

So a thought occurred to me, one that I often try to implement, is that if I can fix it for them without delay, I should. If I ask for a phone format 123-456-7890, and they provide 1234567890 or anything else,

$phone =~ s/\s+//;
unless ($phone =~ /^\d{3}\-\d{3}\-\d{4}$/) { $phone = &fix_the_damn_phone($phone); }

International formant supporters, it's just an example.

So with a little bit of work, you can do the same thing with the bad BBcode trap. I know you won't get **all** of them, but it shouldn't be a major deal to write up a small function to correct it:

$bb_code_errors = &check_for_bb_code_errors;
if ($bbcode_errors) { $post = &fix_bb_code_errors($post); }
$bb_code_errors = &check_for_bb_code_errors;
if ($bb_code_errors) { &give_up_and_return_to_form; }

Just a thought.
 

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month