Users running a non-download version of Vanilla (pulled from github), on branch release/2019.016 or master from the last 2 weeks should upgrade to release/2019.017 or latest master for security reasons. Downloaded official open sources releases are not affected.
Please upgrade here. These earlier versions are no longer being updated and have security issues.

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

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

    R_Jhgtonight
  • i'm still having an error o:)

  • R_JR_J Cheerleader & Troubleshooter Munich Moderator

    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.