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

Sorry, the requested file could not be found #38

Closed
Richardvi opened this issue Sep 5, 2023 · 6 comments
Closed

Sorry, the requested file could not be found #38

Richardvi opened this issue Sep 5, 2023 · 6 comments

Comments

@Richardvi
Copy link

I found this in my error-logs, but I have no idea which file this is regarding. Might be nice to have an id, filename or anything else that could make me fix this issue.

[05-Sep-2023 12:22:29 Europe/Amsterdam] Default exception handler: Sorry, the requested file could not be found Debug:
Error code: filenotfound

  • line 2140 of /lib/filelib.php: moodle_exception thrown
  • line 397 of /theme/learnr/lib.php: call to send_file_not_found()
  • line 5291 of /lib/filelib.php: call to theme_learnr_pluginfile()
  • line 44 of /pluginfile.php: call to file_pluginfile()
@Richardvi
Copy link
Author

I think this is a serious problem and it crashes my automated backups that run at night. In the error-logs, I found this:

[05-Sep-2023 13:59:32 Europe/Amsterdam] instantiating backup controller 4e9164a4a18b6b92ff7a180b4fba3417
[05-Sep-2023 13:59:32 Europe/Amsterdam] setting controller status to 100
[05-Sep-2023 13:59:32 Europe/Amsterdam] loading controller plan
[05-Sep-2023 13:59:32 Europe/Amsterdam] setting controller status to 300
[05-Sep-2023 13:59:32 Europe/Amsterdam] applying plan defaults
[05-Sep-2023 13:59:32 Europe/Amsterdam] setting controller status to 400
[05-Sep-2023 13:59:32 Europe/Amsterdam] setting file inclusion to
[05-Sep-2023 13:59:32 Europe/Amsterdam] checking plan security
[05-Sep-2023 13:59:32 Europe/Amsterdam] setting controller status to 700
[05-Sep-2023 13:59:32 Europe/Amsterdam] saving controller to db
[05-Sep-2023 13:59:32 Europe/Amsterdam] calculating controller checksum 76771bb2e4d1a191b7efddf10454c770
[05-Sep-2023 13:59:32 Europe/Amsterdam] loading controller from db
[05-Sep-2023 13:59:32 Europe/Amsterdam] setting controller status to 800
[05-Sep-2023 13:59:32 Europe/Amsterdam] saving controller to db
[05-Sep-2023 13:59:32 Europe/Amsterdam] calculating controller checksum 8f5ec1ea1cdaf682c202a72239decb6e
[05-Sep-2023 13:59:32 Europe/Amsterdam] loading controller from db
[05-Sep-2023 13:59:32 Europe/Amsterdam] setting controller status to 1000
[05-Sep-2023 13:59:32 Europe/Amsterdam] saving controller to db
[05-Sep-2023 13:59:32 Europe/Amsterdam] instantiating restore controller cbde049dc65e6e6248d1882bc6f58725
[05-Sep-2023 13:59:32 Europe/Amsterdam] setting controller status to 100
[05-Sep-2023 13:59:32 Europe/Amsterdam] loading backup info
[05-Sep-2023 13:59:32 Europe/Amsterdam] loading controller plan
[05-Sep-2023 13:59:32 Europe/Amsterdam] setting controller status to 300
[05-Sep-2023 13:59:32 Europe/Amsterdam] applying restore defaults
[05-Sep-2023 13:59:32 Europe/Amsterdam] Unknown setting: questionbank
[05-Sep-2023 13:59:32 Europe/Amsterdam] Unknown setting: overwrite_conf
[05-Sep-2023 13:59:32 Europe/Amsterdam] Unknown setting: course_fullname
[05-Sep-2023 13:59:32 Europe/Amsterdam] Unknown setting: course_shortname
[05-Sep-2023 13:59:32 Europe/Amsterdam] Unknown setting: course_startdate
[05-Sep-2023 13:59:32 Europe/Amsterdam] Unknown setting: questionbank
[05-Sep-2023 13:59:32 Europe/Amsterdam] setting controller status to 400
[05-Sep-2023 13:59:32 Europe/Amsterdam] checking plan security
[05-Sep-2023 13:59:32 Europe/Amsterdam] setting controller status to 600
[05-Sep-2023 13:59:32 Europe/Amsterdam] saving controller to db
[05-Sep-2023 13:59:32 Europe/Amsterdam] calculating controller checksum c7259c78ab269d22bcf55267dffd78f6
[05-Sep-2023 13:59:32 Europe/Amsterdam] loading controller from db
[05-Sep-2023 13:59:32 Europe/Amsterdam] setting controller status to 700
[05-Sep-2023 13:59:32 Europe/Amsterdam] saving controller to db
[05-Sep-2023 13:59:32 Europe/Amsterdam] calculating controller checksum dd0074425cdbebfe36336adbe9835ef8
[05-Sep-2023 13:59:32 Europe/Amsterdam] loading controller from db
[05-Sep-2023 13:59:32 Europe/Amsterdam] setting controller status to 800
[05-Sep-2023 13:59:32 Europe/Amsterdam] saving controller to db
[05-Sep-2023 13:59:32 Europe/Amsterdam] calculating controller checksum 46fe8afd2aebe840fc1616a2a5639218
[05-Sep-2023 13:59:32 Europe/Amsterdam] loading controller from db
[05-Sep-2023 13:59:32 Europe/Amsterdam] Default exception handler: Sorry, the requested file could not be found Debug:
Error code: filenotfound

  • line 2140 of /lib/filelib.php: moodle_exception thrown
  • line 397 of /theme/learnr/lib.php: call to send_file_not_found()
  • line 5291 of /lib/filelib.php: call to theme_learnr_pluginfile()
  • line 44 of /pluginfile.php: call to file_pluginfile()

I experience a lot of errors in my automated backup procedure. This might be the problem?

@Richardvi
Copy link
Author

Yes, this seem to have something to do with backup of a course:

[08-Sep-2023 15:31:26 Europe/Amsterdam] Default exception handler: Sorry, the requested file could not be found Debug:
Error code: filenotfound

  • line 2140 of /lib/filelib.php: moodle_exception thrown
  • line 397 of /theme/learnr/lib.php: call to send_file_not_found()
  • line 5291 of /lib/filelib.php: call to theme_learnr_pluginfile()
  • line 44 of /pluginfile.php: call to file_pluginfile()

What exactly is happening here Chris?

image

@dbnschools
Copy link
Owner

Can you set the max width and height to see if the issue goes away?

@Richardvi
Copy link
Author

Could you explain that more Chris, do you mean that I should just enter values like this?
$filedata = $file->resize_image(10, 10);

@Richardvi
Copy link
Author

Could it be related to courses having a course-image?

@dbnschools
Copy link
Owner

LearnR is now a child theme of Boost Union. I have discontinued the development of this fork. All new releases will be as a proper child theme to Boost Union under the same name. I am closing this issue since the newest version will not have the same issues. The latest release posted here is a child theme now.

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

2 participants