Changing that line didn't work.
I have been literally chasing this error all day. Let me see if I can make it any more clear where this happening, and hopefully you can point me to the code.
Step One: Somebody leaves a comment on one of my ads.
Step Two: This causes comments.php to generate a message to me telling me someone has left the comment.
Comments.php uses this template to send me the message. Note that there are no broken break tags in this template, so the template is not the problem. The area bolded is where the problem will eventually be...
^User['username'] has posted a comment to the following listing:
"^gettitle"
^Globals['maindir']/showproduct.php?product=^product (this will get a broken break tag piece, />, after it)
If you no longer wish to be notified when comments are posted to the above listing, you can disable notification here:
^Globals['maindir']/comments.php?notify=off¬ifyid=^getid&product=^product (this will get a broken break tag piece, />, after it)
Thanks!
The ^Globals['webname'] Team
^Globals['domain']
Comments.php generates the message using the template above in this piece of code:
Code:
Content visible to verified customers only.
It is this line of code,
$letter = str_replace("^product","$product",$letter); where the string
^product is replaced by the variable
$product that the break tag is being created - whatever is in the variable $product is messed up.
$product is a link to the product that was commented on, and its in this link that there's a piece of a break tag that should not be there. This is what $product looks like when it renders on my member page html:
Code:
Content visible to verified customers only.
Notice the product=18
<br" about halfway through the link. That
<br is half the broken break tag, and should not be there!
At the end of the product link is the other half of the broken break tag, the
/> that keeps showing up in my messages:
product=18<br></a>
/><br />
So something about the contents of that $product variable is messed up. And its not just the $product variable, there are several others with the same problem, and they are all variables that contain links. For example, $toemail, $buyemail, $adid, and $buyuserid in payment_verification.php have the same problem.
I'm thinking there's a function that creates these link variables somewhere, like a function in pp-inc.php - like function convert_returns or maybe function construct_newppurl since this is only happening to variables that store links.
Anyhoo, after comments creates the comment and sends me a message about it, I go on to Step Three: I go to check my messages in my member profile area. This causes member.php to be called, and this line of code generates the HTML for the content of my message:
Code:
Content visible to verified customers only.
Step Four: The following HTML is created and rendered on my screen
Code:
Content visible to verified customers only.
Step 5: And I get a message with junk pieces of broken break tags (specifically the
/> part) after all active links in my message.
From: aNGrYLiTTLeDeAdGiRL [ October 25 09:10AM ] [ Reply ]
New Comment Posted to comment tester at Attackofthecraft.com
aNGrYLiTTLeDeAdGiRL has posted a comment to the following listing:
"comment tester"
comment tester - AttackoftheCraft Handmade Shop
/> <~~ THERE'S THE BROKEN TAG PIECE
If you no longer wish to be notified when comments are posted to the above listing, you can disable notification here:
Message - AttackoftheCraft Handmade Shop
/> <~~ THERE'S THE BROKEN TAG PIECE
Thanks!
So where is this broken <br /> tag? Whew... I need a nap now.