homepage Welcome to WebmasterWorld Guest from 174.129.74.186
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Local / WebmasterWorld Community Center
Forum Library, Charter, Moderators: lawman

WebmasterWorld Community Center Forum

    
A couple of critters
Redirect failures, bugging code trapping, entities gone away
rocknbil




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

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.

 

Brett_Tabke




msg:4074059
 2:35 am on Feb 4, 2010 (gmt 0)

noted and much appreciated rb!

...fix two things - break a third ;-)

rocknbil




msg:4074533
 7:47 pm on Feb 4, 2010 (gmt 0)

Sighting: New user, post count is blank in both their posts and profile, don't know if that's expected behavior or not.

phranque




msg:4074625
 10:16 pm on Feb 4, 2010 (gmt 0)

i'm sure you knew this but posts in Foo and some other (supporters) forums don't count.
could that be it?

Brett_Tabke




msg:4074682
 1:02 am on Feb 5, 2010 (gmt 0)

Thanks. If you happen to have an example, I would like to have a look.

rocknbil




msg:4075096
 7:27 pm on Feb 5, 2010 (gmt 0)

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


Here [webmasterworld.com]. Note also their user profile.

rocknbil




msg:4075217
 11:51 pm on Feb 5, 2010 (gmt 0)

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 . . .

Leosghost




msg:4075850
 5:43 pm on Feb 7, 2010 (gmt 0)

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

KenB




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

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.

Leosghost




msg:4076033
 12:26 am on Feb 8, 2010 (gmt 0)

Fixed :) Merci :)

Leosghost




msg:4077575
 1:03 pm on Feb 10, 2010 (gmt 0)

"recent posts" just dropped to 4 ! ..next "link" does nothing.

Leosghost




msg:4081471
 6:16 pm on Feb 16, 2010 (gmt 0)

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)

Leosghost




msg:4081500
 6:53 pm on Feb 16, 2010 (gmt 0)

working again now ..thanks :)

rocknbil




msg:4081865
 4:14 am on Feb 17, 2010 (gmt 0)

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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Local / WebmasterWorld Community Center
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved