Testing to recreate issue

Hi,

this is trying to replicate the issue described in posting-issues/119661

Some problem even with the above link, I’ll describe in second post.

//Address
}elseif(!preg_match(“/[1]{2,}/”, trim($_POST[‘address’]))){
$error .= “
Address does not pass validation\n”;

adding more text

$fp = fopen('/hermes/bosoraweb144/b2972/glo.ttri/holytablets/ht_login_area_1844/registration_data.csv', 'a');
fwrite($fp . ',' . $name . ',' . $lastname . ',' . $address . ',' . $city . ',' . $country . ',' . $nationality . ',' . $email . ',' . $phone . ',' . $comment . ',' . PHP_EOL);
fclose($fp);

Ok, I think cpradio is close to it, but please read further note.
Might have to do with deleting lines, after writing

Some problem even with the above link, I’ll describe in second post.
note this second (blank) line I added using “enter” key

I pasted the code, selected it, and used </>, and it was shown correctly in the preview; then I deleted the second blank line (see the above quote), and it displayed as you can see above.

Further note
I am 100% positive that in that post I did not see it displayed correctly the very first time I used </>.

Thank you


  1. a-zA-Z0-9’ - ↩︎

So in this case, the first comment in your first code block isn’t indented…

//Address
    }elseif(!preg_match("/^[a-zA-Z0-9' -]{2,}/", trim($_POST['address']))){
        $error .= "
Address does not pass validation\n";

Which is interesting.

Next time you get it to happen, can you leave it as is and ping me using @cpradio?

Now to the linking issue mentioned in op.

I wrote

this is trying to replicate the issue described in

then copy/pasted from browser bar the full path to the thread, and at this point in the preview it displayed quote of cpradio’s comment

Yep, that is the dreaded 502 error. We’ve fixed a few areas where it was happening, but we still have more.

below this line there should be the full path to the thread
http: // community.sitepoint . com /t /posting-issues/119661
instead of my op.
I just noticed cpradio’s quote might have been because there was the /22 added to the link, even though I had not scrolled down to that post, having opened only the thread to copy the address.

Next time you get it to happen, can you leave it as is and ping me using @cpradio?

Sure I will.

1 Like

BTW
the 502 doe not occur when editing the post.
I just replied

sure I will

w/o quoting you, and had to close sitepoint, and reopen it to add your quote due to the fact that after freply the 502 does not display the edit button.

Yes, that would be why. Discourse recognizes where you left off on a topic, so if you open it from the Topic List to grab the URL, it will have the post you haven’t read yet in the URL. Stripping the /22 would have made it show the original post. :smile:

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.