Moodle

CLONE -Missing image links when restoring courses in Moodle 1.9

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Trivial Trivial
  • Resolution: Won't Fix
  • Affects Version/s: 1.9
  • Fix Version/s: None
  • Component/s: Backup
  • Labels:
    None
  • Affected Branches:
    MOODLE_19_STABLE

Description

This happens to me as well (In Moodle 1.9)
It doesn't occur with every img tag, but occasionally Moodle will insert an img tag with a relative path, e.g.

src="../../../../file.php/2/Alice/Chapter06/BallBON1.jpeg"

rather than

src="https://ol.lausd.net/moodle/file.php/2/Alice/Chapter06/BallBON1.jpeg"

The latter restores correctly - the former gets broken.

I have been developing using a local version of Moodle on my Windows Vista laptop, then restoring onto the server for my school district. To correct, I look for broken img links on the server, then locate the error in my local version and change the relative path to the absolute path.

The fix, however, would be discovering where in the Moodle source a relative path is being inserted.

I believe that this has been an big issue since Moodle 1.5.x and so far even the latest version of 1.8.2+ still have not fixed this. If you backup a course and restore it on another server, all the text and content would restore correctly, BUT image links are broken due to moodle require absolute links rather than relative. This bug should be fixed ASAP IMHO. Thanks!

Issue Links

Activity

Hide
Michael de Raadt added a comment -

Thanks for reporting this issue.

We have detected that this issue has been inactive for over a year has been recorded as affecting versions that are no longer supported.

If you believe that this issue is still relevant to current versions (2.1 and beyond), please comment on the issue. Issues left inactive for a further month will be closed.

Michael d;

lqjjLKA0p6

Show
Michael de Raadt added a comment - Thanks for reporting this issue. We have detected that this issue has been inactive for over a year has been recorded as affecting versions that are no longer supported. If you believe that this issue is still relevant to current versions (2.1 and beyond), please comment on the issue. Issues left inactive for a further month will be closed. Michael d; lqjjLKA0p6
Hide
Michael de Raadt added a comment -

I'm closing this issue as it appears to have become inactive and is probably not relevant to a current supported version. If you are encountering this problem or one similar, please launch a new issue.

Show
Michael de Raadt added a comment - I'm closing this issue as it appears to have become inactive and is probably not relevant to a current supported version. If you are encountering this problem or one similar, please launch a new issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: