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.
Options

Problem embedding 2.1 in a simple web page - 404 error

I downloaded and installed Vanilla 2.1 on a ubuntu box, and all works well when vanilla is run stand-alone.

I turned on universal embedding in the dashboard, and copied/pasted the embed code into a simple page, foo.html. When I load foo.html, the javascript debug console gives a 404 file not found error. I tried the .htaccess and "RewriteUrls" suggestions at the link below, but the result is the same.

http://vanillaforums.org/discussion/25111/about-error-404-not-found

Any idea what's going on?

The error displayed in the chrome javascript console is:

http://localhost/twio/forum/vanilla/index.php?p=/js/embed.js 404 not found

My HTML page is at http://localhost/twio/forum/foo.html:

    <html>
    <body>
    <div>
    Hi
    <script type="text/javascript" src="http://localhost/twio/forum/vanilla/index.php?p=/js/embed.js"></script>
    <noscript>Please enable JavaScript to view the <a href="http://vanillaforums.com/?ref_noscript">discussions powered by Vanilla.</a></noscript>
    <div class="vanilla-credit"><a class="vanilla-anchor" href="http://vanillaforums.com">Discussions by <span class="vanilla-logo">Vanilla</span></a></div>
    </div>
    </body>
    </html>

.htaccess in the vanilla directory has:

RewriteBase /twio/forum

And I've changed config.php to include:

$Configuration['Garden']['RewriteUrls'] = TRUE;

Tagged:

Comments

Sign In or Register to comment.