Best practice forum (Archived)

该论坛讨论已删除

 
该论坛帖子已被删除
2013年12月5日 Thursday 16:54
该论坛帖子的内容已被删除,无法再访问。
??
Re: Unable to install plugin
?? 发表于 2013年12月5日 Thursday 19:59
 

Hi Liz,

The block installs fine for me?

Cron will never run if there is a block or other plugin waiting to be installed, so that behaviour is normal. Delete the blocks/progress folder first, run cron, then put the folder back and try to install the block again.

Maybe you could turn on debugging Site Administration -> Development -> Debugging and change "Debug messages" to "DEVELOPER" and check the "Display debug messages" box, then try to install the block again and see if you get any error messages which might offer a clue. Remember to change them back afterwards if this is a production site!

We normally don't support problems with third-party plugins though.

该论坛帖子已被删除
2013年12月6日 Friday 15:14
该论坛帖子的内容已被删除,无法再访问。
该论坛帖子已被删除
2013年12月9日 Monday 07:47
该论坛帖子的内容已被删除,无法再访问。
??
Re: Unable to install plugin
?? 发表于 2013年12月11日 Wednesday 13:01
 

Hi Liz,

According to this moodle forum post the usual explanation for plugins refusing to install is incorrect file permissions. The plugin directories (usually /local/xxx) need to be readable by the server's webserver user (usually www-data on Ubuntu, or the IUSR_xxx account on Windows) and may also need Execute privileges.

https://moodle.org/mod/forum/discuss.php?d=187593

Hope that helps,

Ciaran

该论坛帖子已被删除
2013年12月11日 Wednesday 15:35
该论坛帖子的内容已被删除,无法再访问。
??
Re: Unable to install plugin
?? 发表于 2013年12月11日 Wednesday 16:23
 

I've never seen this before so have no real ideas.

You might need a server administrator to check the file permissions and also look in the web server and database log files to see if there are any error messages being logged. Try to uninstall the plugins you have tried to add already (Site Administration -> Plugins -> Plugins overview) and delete their code from the /local/ folder, in case one of these is causing the problem.

??
Re: Unable to install plugin
?? 发表于 2013年12月11日 Wednesday 16:38
 

Also to clarify are you getting the "cron won't run" message on the install/upgrade screen before it stalls; or did you mean that you can't get cron to run after trying to install the plugins?

A screenshot of the stalled upgrade screen would also be useful.

该论坛帖子已被删除
2013年12月11日 Wednesday 16:52
该论坛帖子的内容已被删除,无法再访问。
??
Re: Unable to install plugin
?? 发表于 2013年12月11日 Wednesday 17:18
 

Hmmm. I think at that point in the code it is either trying to update the timezone information, or rebuilding the Cache....could you check the server has access to the internet to get the latest timezone info; and check the permissions on the {$CFG->dataroot}/cache directory (needs to be writeable by the webserver user)?

该论坛帖子已被删除
2013年12月11日 Wednesday 17:46
该论坛帖子的内容已被删除,无法再访问。
??
Re: Unable to install plugin
?? 发表于 2013年12月11日 Wednesday 18:18
 

Yeah I think this is some kind of a timeout error as we've just received a similar report from another client.

Something somewhere must have changed in 2.5.3 to remove the normal overrides that allow long-running processes to complete.

Let me investigate further.

??
Re: Unable to install plugin
?? 发表于 2013年12月11日 Wednesday 19:15
 

Hey Liz,

If you add these lines to your config.php temporarily, it might force debugging messages on.

$CFG->debug = 32767;
$CFG->debugdisplay = 1;

I'm still none the wiser but it does seem to be narrowing down to something somewhere forcing a fatal timeout error.

该论坛帖子已被删除
2013年12月11日 Wednesday 20:03
该论坛帖子的内容已被删除,无法再访问。
该论坛帖子已被删除
2013年12月12日 Thursday 17:30
该论坛帖子的内容已被删除,无法再访问。
该论坛帖子已被删除
2013年12月13日 Friday 07:35
该论坛帖子的内容已被删除,无法再访问。
该论坛帖子已被删除
2013年12月13日 Friday 17:10
该论坛帖子的内容已被删除,无法再访问。
??
Re: Unable to install plugin
?? 发表于 2013年12月15日 Sunday 12:20
 

Hey Liz,

Glad you got it fixed because I was baffled :-)

Can you say exactly how you fixed it in case someone else has a similar problem in the future?

该论坛帖子已被删除
2013年12月16日 Monday 08:29
该论坛帖子的内容已被删除,无法再访问。