Error : warning

Error : warning

by murugan m -
Number of replies: 7
moodle 4.0.2
Hello,
After logging into the course, Soon after changing to edit mode, I got following error message.
Warning
: require_once(/home/tneducat/public_html/backup/util/helper/async_helper.class.php): Failed to open stream: No such file or directory in /home/tneducat/public_html/course/view.php on line 239
I moved the file async_helper.class.php from /.trash/backup/util/helper/async_helper.class.php  
to /public_html/backup/util/.
Still It is not working. I get error message. Can anyone help me?
My thanks in advance.
Attachment moodleerror.jpg
Average of ratings: -
In reply to murugan m

Re: Error : warning

by Leon Stringer -
Picture of Core developers Picture of Particularly helpful Moodlers

I moved the file async_helper.class.php from /.trash/backup/util/helper/async_helper.class.php  
to /public_html/backup/util/.

Did you move it to /public_html/backup/util/helper?

Does the file have the expected contents?

If it's still not working try purging all caches.

Average of ratings: Useful (1)
In reply to Leon Stringer

Re: Error : warning

by murugan m -
Hello,

Thanks for your response.
I tried to create helper folder under /public_html/backup/util/, But I got the error message file_exists.
But the folder helper is not appearing. I tried to unhide using setting. No use

I purged all caches also.
What I should do next?
In reply to murugan m

Re: Error : warning

by Leon Stringer -
Picture of Core developers Picture of Particularly helpful Moodlers

If you share a screenshot maybe of the folder listing maybe we can give you further advice.

But obviously all the Moodle source code files/folders must be present in the correct location – and have the correct contents for your Moodle version – for Moodle to work. If you have one or more files not present, or in the wrong location – or even moved to a .trash folder – then Moodle won't work correctly.

In reply to Leon Stringer

Re: Error : warning

by murugan m -
Hello,
Thanks for taking interest on solving my issue.
As you told I have given you screenshot.
I am having a doubt, If my async_helper.class.php is wrong, from where I can get.
Attachment utilfolder.jpg
In reply to murugan m

Re: Error : warning

by Leon Stringer -
Picture of Core developers Picture of Particularly helpful Moodlers

Yes it is wrong. In backup/util you should have the following subfolders:

checks  destinations  helper    interfaces  output  settings   ui
dbops   factories     includes  loggers     plan    structure  xml

You can download the zip file for Moodle 4.0.2 and extract required folders and files.

But I would recommend downloading the latest 4.0.x version – 4.0.8 – so that you have the latest bug fixes and security updates. Update your site with the following steps:

  1. Move all files and folders from the Moodle source code folder (public_html) into a backup folder.
  2. Download and extract the newer Moodle version's files into the source code folder.
  3. Copy config.php from the backup folder into the source code folder along with any additional plugins and themes.
  4. Log into your site as an admin to start the upgrade.

Moving the existing Moodle source code files and replacing them with the updated ones should ensure you no longer have any missing files.

In reply to Leon Stringer

Re: Error : warning

by murugan m -
Hello,
Thanks for taking interest on solving my issue. 
After upgrading to 4.0.8, my moodle is working fine.
Thank yo so much.
In reply to Leon Stringer

Re: Error : warning

by murugan m -
Hello,

Thanks for taking interest on solving my issue.
As you directed I have attachment the screenshot.

I have a doubt,  suppose my async_helper.class.php is wrong, from where I can download?
Attachment utilfolder.jpg