Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Solution: Couldn't find a Vanilla Forum at this url :/

VenomeVenome New
edited November 2014 in Vanilla 2.0 - 2.8

I was looking for solution for error like above, and finally I found it.

If you using wordpress vanilla-forums-plugin, edit the functions.php file and look for:
/**
* Validate that the provided url is a vanilla forum root. Returns properly for$
*/
function vf_validate_url($url) (..)

change it all for:

function vf_validate_url($url) {
$html = vf_rest($url);
$wr_pos = strpos($html, '\'WebRoot\' : "');
if ($wr_pos > 0) {
$webroot = substr($html, $wr_pos + 13);
$webroot = substr($webroot, 0, strpos($webroot, '"'));
$webroot = stripslashes($webroot);
return $webroot;
} else {
return FALSE;
}
}

From:
https://github.com/vanilla/wordpress-vanilla/issues/1#issuecomment-54651312

Comments

  •  function vf_validate_url($url) {
       $html = vf_rest($url);
       $wr_pos = strpos($html, '\'WebRoot\' : "');
       if ($wr_pos > 0) {
          $webroot = substr($html, $wr_pos + 13);
          $webroot = substr($webroot, 0, strpos($webroot, '"'));
          $webroot = stripslashes($webroot);
          return $webroot;
       } else {
          return FALSE;
       }
     }
    

    grep is your friend.

  • i'm still having an error o:)

  • R_JR_J Admin

    I would say, a description of your problem and what you have already done to solve it could really be helpful ;)

  • my problem is the url can't validate and i have tried the procedure above but i still get that same error. Couldn't find a Vanilla Forum at this url :/

Sign In or Register to comment.