The main content part of the course is not loading. When you press F5 it will sometimes load a second time.
I am using the Tabtopics course format.
Was the course format working OK prior to this?
Yes, it seems to work fine when I add &theme=clean
We switched from Essential and never had this problem before.
We experience this in Edge & Chrome on different machines and different connections...
Here is a problem...
( ! ) Strict standards: Declaration of format_tabtopics_renderer::section_hidden() should be compatible with format_section_renderer_base::section_hidden($sectionno, $courseorid = NULL) in C:\wamp64\wamp\www\moodle31\course\format\tabtopics\renderer.php on line 21
Call Stack
# Time Memory Function Location
1 0.0016 330056 {main}
...\view.php:0
2 0.1336 9216824 require_once( 'C:\wamp64\wamp\www\moodle31\course\format\tabtopics\renderer.php' ) ...\view.php:130
Hi
Oh by the way, you did not say which version of Moodle or Pioneer you are currently using?
Thanks
Mary
Oops... Moodle 3.1 (Build: 20160523) and Pioneer v1.4.3.1 for Moodle v3.1 2016060700
Any fixes would be greatly appreciated....
Replace this section (see link below) of your Moodle site ../course/format/tabtopics/renderer.php...
https://github.com/OohooDevTeam/moodle-format_tabtopics/blob/master/renderer.php#L111-L112
with this...
public function section_hidden($sectionno, $courseorid = NULL) {
echo parent::section_hidden($sectionno, $courseorid = NULL);
}
Save and then Purge all cache
It works OK on my test server...I dont get any JS errors so it may be some other plugin still in conflict.
Cheeers
Mary
I changed this on my test-Moodle, purged all cache, but I still get the .js error.
Must be something different then. Dit you also have the radial completion and radial grade on your test course?
I hate these errors because they're not consistent. Sometimes it loads the content div, sometimes it doesn't. Since computers have no moods this makes no sense.
I personally use Chrome, but that's not really important. Our students have their own laptops and use whatever browser they like. Just Internet Explorer is out of the question for me
I have not changed any JS setting in Moodle. Our Moodle is hosted by a third party, so I can not change core code.
Developer mode doesn't give any warnings or errors. Chrome Console shows this:
What does clicking on require.js:15 show in terms of information? That could point to the specific line of JS (possibly in an AMD module) that is causing the issue.
Mismatched anonymous define() module errors are described here: http://requirejs.org/docs/errors.html#mismatch.
Gareth,
Could this be something to do with it?
refers to event keys in relation to web-kit and Internet Explorer.
Just a thought as I am clueless when it comes to JS
Mary
To be honest Mary, I don't know. I'm still learning JS too and don't have the Pioneer theme installed to replicate the error.
Well the only thing I discovered when using IE11 (possibly same in Chrome) is that there is no page scroller, so on first look the page looks dead and you only see the top of the course page. I have a scroller om my mouse so it works OK but if you are used to dragging the side scroller up and down you may be foxed into thinking that the page is not loading.
That's my theory...unless it is something to do with the way the Pioneer theme is made? It's hard to say really.
M
Hi Richard,
When you say that the page content does not load, do you mean you do not see a scrollbar?
I just tested this in IE11 and unlike Firefox, the IE11 page has no scroller. However you can scroll the page to see the lower half of the page using the up/down arrow keys, or your mouse if you hover over the side that the scroller is usually on (right side) then the scroller appears and enables you to view the rest of the page.
Just curious?
Cheers
Mary
Hi Mary,
The main content pane doesn't load. So I can see everything, except for the course content. Pressing F5 usually fixes it. The second time it loads, most of the time the content loads.
But even then sometimes you can keep pressing reload and it still won't load.
Does that answer the question?
Gareth, is this the information you're requesting?
Thanks Richard, yes it is, it might have helped but has not, worth a try though in the debugging process. Try the "require.js:34" line and see if that is the anonymous function.
Worth noting:
TabTopics course format is not supported past Moodle2.6 (https://moodle.org/plugins/pluginversions.php?plugin=format_tabtopics)
While Pioneer is not supported before Moodle2.9 (https://moodle.org/plugins/pluginversions.php?plugin=theme_pioneer)
This probably means that the two have never been tested together even if TabTopics does happen to work on Clean. It also means that TabTopics is possibly not loading JS in the currently recommended manner (haven't checked that for sure though), which could cause a potential clash with some themes or other plugins.
Richard
Yep, it's like ham & eggs... at some point nobody tried it together but it tastes good
Is there an alternative to tabtopics? We use it in all our courses...
Ive just installed the OneTopic format - also Tabs based, but supported and developed through 3.1
I see, I have tried this as well. But it doesn't look nice and I tried styling it with CSS... but that's not easy.
My students are used to tabs, not plain text next to each-other... real tabs give the impression that you are actually clicking on different layers on top of each-other, so there should be some different colors.
It should look something like this:
I found extra information concerning this:
It only occurs when radial grade and radial activity completion is enabled. When I disable this, the page will always load completely.
It does (create a donut chart) and it is using JS (and even worse than that, the JS is inline in the layout file so not using proper JS loading techniques, let alone AMD).
I will look at adapting the code further to implement it more fully in the proper ways - although in mitigating circumstances, one of the advantages when i first 'borrowed' the original was the fact that everything - layout, less and JS was all in one file for portability (as always, credit to the original author but bugs in work Ive done - I take responsibility for ). But, it now becomes apparent, has the unfortunate problem of clashing with other things that do not load the JS properly.
So I now know what my next bit of learning is going to be - migrating this JS into AMD :D
Thanks Richard, for your work, effort, time, etc.
We are very happy with Pioneer so far. And ofcourse I have a lot of wishes for other features, but I won't bother you with those
Let me know what you come up with. I am following the new default theme that they are working on. I think shortly after M3.2 is released I am going to see if we can take that and blend some of the features Pioneer offers in that format. I've always wanted a single page layout.