Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Javascript files references missing from head section of pages #13

Open
100781 opened this issue Apr 15, 2015 · 4 comments
Open

Javascript files references missing from head section of pages #13

100781 opened this issue Apr 15, 2015 · 4 comments

Comments

@100781
Copy link

100781 commented Apr 15, 2015

Hello!

Im having some difficulty with this module. The module itself is installed, and appears to be working correctly -- Etherpad is working on its own, and the Notes module configuration page is showing that it is successfully connecting to the API.

Navigating to a notes page within a space results in a page that appears to render properly in all areas except where you would expect content to show.

After noticing that the dropdowns in the nav menu weren't working on notes-related pages, I took a look at the page source and noticed a significant difference between these pages and others within HumHub.

Notes-related pages:

    <!-- start: Meta -->
    <meta charset="utf-8">
    <title>SITE-TITLE</title>
    <!-- end: Meta -->

Other pages:

    <!-- start: Meta -->
    <meta charset="utf-8">
    <link rel="stylesheet" type="text/css" href="/assets/3a39f9a6/jquery.atwho.css" />
<link rel="stylesheet" type="text/css" href="/assets/a8f0f84/mail.css" />
<link rel="stylesheet" type="text/css" href="/assets/2a5e6a63/linklist.css" />
<script type="text/javascript" src="/assets/a45496b6/jquery.js"></script>
<script type="text/javascript" src="/assets/3a39f9a6/jquery.caret.min.js"></script>
<script type="text/javascript" src="/assets/3a39f9a6/jquery.atwho.min.js"></script>
<script type="text/javascript" src="/assets/2a5e6a63/fileuploader.js"></script>
<script type="text/javascript" src="/assets/a8f0f84/mail.js"></script>
<script type="text/javascript" src="/assets/2a5e6a63/spacechooser.js"></script>
<script type="text/javascript" src="/assets/2a5e6a63/linklist.js"></script>
<script type="text/javascript" src="/assets/2a5e6a63/searchmenu.js"></script>
<script type="text/javascript" src="/assets/2a5e6a63/spaceHeaderImageUpload.js"></script>
<script type="text/javascript" src="/assets/a8f0f84/activies.js"></script>
<script type="text/javascript">
/*<![CDATA[*/
 $.ajaxSetup({
            data: {"CSRF_TOKEN": "API-KEY-HERE"},
            cache:false
            });
/*]]>*/
</script>
<title>SITE-TITLE</title>
    <!-- end: Meta -->

In addition, Chrome's console is logging a "$ or jQuery is not defined" message for all other JS references on the notes-related pages that depend on jQuery, so it looks like HEAD section of pages related to the module is missing quite a bit. Any ideas?

Thanks!

@stefanschauer
Copy link

the problem seems to be that bootstrap is loaded without jquery. any hint on solving the problem?

@sabweb
Copy link

sabweb commented Apr 23, 2015

I'm having the same problem, the Notes module doesn't load if the new Wiki module is activated. The logs show a PHP fatal error in protected/modules/wiki/WikiModuleEvents.php on line 31 - "Call to a member function isModuleEnabled() on a non-object" when opening a note. The error messages in Chrome are probably only a result from the interrupted page loading process. Maybe an incompatibility between the Notes module and the Wiki module?

@sgregori
Copy link

sgregori commented May 8, 2015

Same problem, any solution ?

SOLUTION:
Some fixes on the Wiki to repair the described error.
https://github.com/sgregori/humhub-modules-wiki/blob/master/WikiModuleEvents.php

@sabatesduran
Copy link

The solutions of @sgregori works for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants