Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Try Vanilla Forums Cloud product

Ready to contribute?

Amazing! Sign our contributors' agreement and then join us on GitHub.

Update for critical security issue in PHPMailer included in release Vanilla 2.3.1
Please upgrade to 2.3 here. The 2.2 and earlier branches are no longer being updated.

Javascript url isn't properly built

edited April 2012 in Vanilla 2.0 - 2.2

First of all, thanks to the development team. Vanilla is the way I see forums : simple and pretty.

I've just installed one and I noticed that none of the Javascript functionalities were active. I looked in the code and it appears that some of the directories separators are missing and it's the reason why the page can't find the scripts.

The same applies to the themes previews pictures but other urls are ok (profile pictures, css, etc.).
Oh and the invitation emails only contain : "EmailInvitation".

In my opinion, the problem is caused by PHP : maybe some option from the hosting provider ( or the version of PHP (according to phpinfo : "PHP Version 5.2.9-1.illimite").

My version of Vanilla is the last one :

Here is a portion of the vanilla page.

<link rel="stylesheet" type="text/css" href="/applications/dashboard/design/style.css?v=" media="all" />
<link rel="shortcut icon" href="/themes/default/design/favicon.png" type="image/x-icon" />
<link rel="canonical" href="http://forum.***.fr/categories" />

<script src="/jslibraryjquery.js?v=" type="text/javascript"></script>
<script src="/jslibraryjquery.livequery.js?v=" type="text/javascript"></script>
<script src="/jslibraryjquery.form.js?v=" type="text/javascript"></script>
<script src="/jslibraryjquery.popup.js?v=" type="text/javascript"></script>
<script src="/jslibraryjquery.gardenhandleajaxform.js?v=" type="text/javascript"></script>
<script src="/jsglobal.js?v=" type="text/javascript"></script>
<script src="/applicationsvanillajsbookmark.js?v=" type="text/javascript"></script>
<script src="/applicationsvanillajsdiscussions.js?v=" type="text/javascript"></script></head>

Best Answer

  • x00x00 MVP
    edited April 2012 Accepted Answer

    You could try something like

    define('PATH_ROOT', '/.');

    technically this is bug, but it is a very edge case, most people do not have your setup.

    Another way you could do it, put the forum in folder, use .htaccess to rewrite so you preserve your uri structure, and use

     $Configuration['Garden']['StripWebRoot'] = TRUE;
     $Configuration['Garden']['WebRoot'] = forumfolder; //note no preceding or trailing slash

    grep is your friend.


Sign In or Register to comment.