Moodle in English: 2.3.1 and JS problems? | Moodle.org (2024)

2.3.1 and JS problems?

  • ◀︎ Course backup fails to start
  • Windows server: Creating Wins entries for Moodle ▶︎

此话题已锁定,因此您不能再回复。

Moodle in English: 2.3.1 and JS problems? | Moodle.org (1)

2.3.1 and JS problems?

Tony Graham -

回帖数:17

I am using firefox and if JS is enabled I cannot add activities and rsources. When I turn editing on the add resources link is not enabled.


If I turn JS off then I do get the add respources drop down menus but the layout and working of the site is then broken??


Can anyone help with suggestions or know how to fix this

Thanks

平均分: -

永久链接 回复

Moodle in English: 2.3.1 and JS problems? | Moodle.org (2)

回复Tony Graham

Re: 2.3.1 and JS problems?

Mary Cooch -

Moodle in English: 2.3.1 and JS problems? | Moodle.org (3) Moodle in English: 2.3.1 and JS problems? | Moodle.org (4) Moodle in English: 2.3.1 and JS problems? | Moodle.org (5) Moodle in English: 2.3.1 and JS problems? | Moodle.org (6) Moodle in English: 2.3.1 and JS problems? | Moodle.org (7)

What do you mean by "the add resources link is not enabled"? Do you mean that you don't see the activity chooser "add an activity or resource?"

平均分: -

永久链接 显示父帖 回复

Moodle in English: 2.3.1 and JS problems? | Moodle.org (8)

回复Mary Cooch

Re: 2.3.1 and JS problems?

Tony Graham -

I mean that the text "add an activity or resource " is shown but this does nothing, you cannot click on it unless javascript is disabled.


Also just noticed that disabling javascript causes all the menu block to disappear?


I'm using the fusion theme.

平均分: -

永久链接 显示父帖 回复

Moodle in English: 2.3.1 and JS problems? | Moodle.org (9)

回复Tony Graham

Re: 2.3.1 and JS problems?

Sarah Werner -

Hello Tony,

I have the same problems, but until now I don't find a answer.
Do you also have problems with the upload of files?

Kind regards
Sarah

平均分: -

永久链接 显示父帖 回复

Moodle in English: 2.3.1 and JS problems? | Moodle.org (10)

回复Sarah Werner

Re: 2.3.1 and JS problems?

Itamar Tzadok -

You probably have javascript error. Check the javascript console in your browser. Moodle in English: 2.3.1 and JS problems? | Moodle.org (11)

平均分: -

永久链接 显示父帖 回复

Moodle in English: 2.3.1 and JS problems? | Moodle.org (12)

回复Itamar Tzadok

Re: 2.3.1 and JS problems?

Sarah Werner -

For file-upload I get the following error:

2) Error: extend failed, verify dependencies
Source:
http://www.xxx.de/moodle/theme/yui_combo.php?3.5.1/build/yui/yui-min.js

I think it's a problem between javascript and the server, because with other moodles (like this forum) I have no problems with the file-oplaod or anything else.

平均分: -

永久链接 显示父帖 回复

Moodle in English: 2.3.1 and JS problems? | Moodle.org (13)

回复Itamar Tzadok

Re: 2.3.1 and JS problems?

Sarah Werner -

I find a solution for the problem.

There are difficulties in the communication between the Moodle and the local JavaScript library YUI.
If you follow the path Site administration -> Appearance -> AJAX and Javascript there is a box "Use online YUI libraries", if you set it to Yes (Default is No) the javascript should work without any problems.

平均分: -

永久链接 显示父帖 回复

Moodle in English: 2.3.1 and JS problems? | Moodle.org (14)

回复Sarah Werner

Re: 2.3.1 and JS problems?

Tony Graham -

Thank you Sarah

This appears to solve some of my issues.


The main problem now it that moodle refuses to send out emails for registration etc.

平均分: -

永久链接 显示父帖 回复

Moodle in English: 2.3.1 and JS problems? | Moodle.org (15)

回复Tony Graham

Re: 2.3.1 and JS problems?

Tony Graham -

Spoke too soon!

The add resource dropdown menu appears but the links, eg add file, do not function.

Can anyone help please

平均分: -

永久链接 显示父帖 回复

Moodle in English: 2.3.1 and JS problems? | Moodle.org (16)

回复Tony Graham

Re: 2.3.1 and JS problems?

Sarah Werner -

Oh, that's a pity.
Then your
problems seems to caused by other factors than my.
Sorry, that I cannot help you .

平均分: -

永久链接 显示父帖 回复

Moodle in English: 2.3.1 and JS problems? | Moodle.org (17)

回复Sarah Werner

Re: 2.3.1 and JS problems?

Tony Graham -

I still have not found a solution to this problem, is anyone else experiencing similar difficulties.

If I click the "turn editing on" button or link within a course then the main menus and blocks disappear and also the links which would normally allow you to upload a file add a lesson etc are not live. The drop down box appears but none of the links work.

The error I get is as below??

Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 524288 bytes) in /home/blackcat/public_html/learning/lib/htmlpurifier/HTMLPurifier/DefinitionCache/Serializer.php on line 33

平均分: -

永久链接 显示父帖 回复

Moodle in English: 2.3.1 and JS problems? | Moodle.org (18)

回复Tony Graham

Re: 2.3.1 and JS problems?

Mauno Korpelainen -

Tony,

this is not a javascript problem - it's caused by lack of memory on php side.

See http://docs.moodle.org/23/en/Errors_FAQ#Fatal_error_allowed_memory_size_exhausted._How_do_I_increase_my_php_memory_limit.3F

平均分:Useful (1)

永久链接 显示父帖 回复

Moodle in English: 2.3.1 and JS problems? | Moodle.org (19)

回复Mauno Korpelainen

Re: 2.3.1 and JS problems?

Tony Graham -

Thanks for that, however when I create the .htaccess file and include the line

php_value memory_limit 64M

I get

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@blackcatlearning.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


The hosting company I use have been pretty useless in helping to sort this out!

平均分: -

永久链接 显示父帖 回复

Moodle in English: 2.3.1 and JS problems? | Moodle.org (20)

回复Tony Graham

Re: 2.3.1 and JS problems?

Ken Task -

Moodle in English: 2.3.1 and JS problems? | Moodle.org (21)

Not all shared hosting/remotely hosted solutions are the same. And ditto for supporting Moodle version 2.

If I am correct (by putting together bits and pieces), have determined that you are remotely hosted at WebHosting UK Com. If I am incorrect, then please disclose some more information concerning your hosting setup.

http://kb.webhosting.uk.com/
First article is about how to increase memory usage for PHP for WordPress.
http://kb.webhosting.uk.com/how-to-increase-the-memory-limit-of-php-and-wordpress/

"If your website is hosted on a cPanel hosting account, you will have to talk to the web host for increasing the memory limit. As WordPress comprises of a collection of PHP files, you will also have to increase the memory limit of PHP."

If one has to do that for WordPress, would imagine the same is true of Moodle.

http://kb.webhosting.uk.com/?s=Moodle

Renders nothing … ie no articles.

Perhaps the closest one may get to AMP stack references related to Moodle is:
http://kb.webhosting.uk.com/uk-website-hosting/linux-hosting/php-web-hosting/

They also have a forum: http://forums.webhosting.uk.com/forum.php
Nothing Moodle specific, but one for PHP and MySQL might help:
http://forums.webhosting.uk.com/php-hosting/
http://forums.webhosting.uk.com/mysql-hosting/

Not saying it's impossible hosting Moodle on webhosting.uk, but looks like it's an 'adventure'.

Best of luck ... 'spirit of sharing', Ken

平均分: -

永久链接 显示父帖 回复

Moodle in English: 2.3.1 and JS problems? | Moodle.org (22)

回复Ken Task

Re: 2.3.1 and JS problems?

Tony Graham -

Thanks Ken and Mauno

I have now got it working but it runs very slowly. I dont have the fastest broadband connection in the world but pages on my site are running especially slowly.


Yes I am hosted at Webhosting UK.


I tried changing php memory in php but that didnt work. Have persuaded Webhosting Uk to increase my php memory to 256M and so site now running.


Thanks for your help and support I appreciate it.

平均分: -

永久链接 显示父帖 回复

Moodle in English: 2.3.1 and JS problems? | Moodle.org (23)

回复Tony Graham

Re: 2.3.1 and JS problems?

Mauno Korpelainen -

You might have theme designer mode on:

Site administration > Appearance > Themes > Theme settings > Theme designer mode should be unchecked

and check also if

Site administration > Appearance > AJAX and Javascript settings are in defaults

平均分: -

永久链接 显示父帖 回复

Moodle in English: 2.3.1 and JS problems? | Moodle.org (24)

回复Tony Graham

Re: 2.3.1 and JS problems?

Ken Task -

Moodle in English: 2.3.1 and JS problems? | Moodle.org (25)

Might also change sessions from DB to file.

Site Admin -> Server -> Session Handling

Comments on the form:

"If enabled, this setting will use the database to store information about current sessions. This is especially useful for large/busy sites or sites built on cluster of servers. For most sites this should probably be left disabled so that the server disk is used instead. Note that changing this setting now will log out all current users (including you). If you are using MySQL please make sure that 'max_allowed_packet' in my.cnf (or my.ini) is at least 4M."

On a remotely hosted shared system bet there are limits/restrictions on DB as well which means one may never get close to a 'faster' Moodle 2 and might also experience some failed functionality as a result (backups and restores of certain courses an example).

'spirit of sharing', Ken

平均分: -

永久链接 显示父帖 回复

Moodle in English: 2.3.1 and JS problems? | Moodle.org (26)

回复Mary Cooch

Re: 2.3.1 and JS problems?

David O'Brien -

Hi,

I have just had an academic with the same issue. When the Turn editing button is clicked (on) the Add an activity or resource link is not a hyperlink, just static text. Turning editing on an off a few times resolved the issue this time.

A thought that came to mind is that we are using the Yahoo YUI Library, if the Add an activity or resource is connected to the YUI could there have been a network delay in calling that?

Just a thought!

Regards

平均分: -

永久链接 显示父帖 回复

  • ◀︎ Course backup fails to start
  • Windows server: Creating Wins entries for Moodle ▶︎
Moodle in English: 2.3.1 and JS problems? | Moodle.org (2024)

References

Top Articles
Latest Posts
Recommended Articles
Article information

Author: Aracelis Kilback

Last Updated:

Views: 6273

Rating: 4.3 / 5 (44 voted)

Reviews: 91% of readers found this page helpful

Author information

Name: Aracelis Kilback

Birthday: 1994-11-22

Address: Apt. 895 30151 Green Plain, Lake Mariela, RI 98141

Phone: +5992291857476

Job: Legal Officer

Hobby: LARPing, role-playing games, Slacklining, Reading, Inline skating, Brazilian jiu-jitsu, Dance

Introduction: My name is Aracelis Kilback, I am a nice, gentle, agreeable, joyous, attractive, combative, gifted person who loves writing and wants to share my knowledge and understanding with you.