Ok, find and remove:
PHP Code:
$article_content = $article_content."<br>Can Adopt? ".$canadopt."<br>";
That looks correct to me so I don't know why the line I told you to add would give an error like that.
Maybe find this:
PHP Code:
$article_content = $langa1."".$type.$langa2;
Replace with:
PHP Code:
$article_content = $langa1."".$type."".$langa2;
Maybe that will fix the issue? I don't see though why the code I gave you would cause an error.
Are some adoptables still letting you adopt? What do the ones that you get the access denied message have in common / set for conditions?