Suddenly images are not shown in the Book Module

Suddenly images are not shown in the Book Module

by Kalyan Chatterjea -
Number of replies: 16

We have a sudden problem. All our book modules are not showing images. We are using the following version of the Moodle in Bluehost:

Moodle 3.0.2+ (Build: 20160211) Version 2015111602.06 Stable version

Kindly help!

Kalyan

Average of ratings: -
In reply to Kalyan Chatterjea

Re: Suddenly images are not shown in the Book Module

by Kalyan Chatterjea -

I can see my images in the server files but not showing! Please help!

In reply to Kalyan Chatterjea

Re: Suddenly images are not shown in the Book Module

by Kim Salinas -
Picture of Testers

Hi Kalyan, are the images not showing in a copy of the course or the original course? If it is a new course, the links may have broken within the file structure. You can tell by clicking on where the broken image is > image icon > and look at the file path.

In reply to Kim Salinas

Re: Suddenly images are not shown in the Book Module

by Kalyan Chatterjea -

Hi Kim

Thanks for your response. I can get the link from the html code and it is showing the following:

<img src="<img src="http://www.wavelinklms.org/wavelink-moodle/draftfile.php/5/user/draft/29662288/Moment-of-a-Force.png" alt="Moment of A Force" style="vertical-align:text-bottom; margin: 0 .5em;" height="200" width="500">


Our Moodle site is located under http://www.wavelinklms.org/wavelink-moodle/ at Bluehost

But I cannot find any folder called draftfile.php...so no wonder Moodle page does not show the picture. The picture is however still available as a server file. If I reinsert the image from File Picker (any server file), I still get this kind of link....so something is wrong.

Please help.

Best Regards

Kalyan

In reply to Kalyan Chatterjea

Re: Suddenly images are not shown in the Book Module

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
Kalyan, may be you are doing the same as what I did here, "Uploading and linking files without the GUI editor" https://moodle.org/mod/forum/discuss.php?d=271062, and running in to the same difficulties with "draftfile".

No, I haven't found a solution, had to change my work flow, sorry.
In reply to Visvanath Ratnaweera

Re: Suddenly images are not shown in the Book Module

by Kalyan Chatterjea -

Dear Visvanath,

I just now picked a file from the File Picker. But you will see in the attached diagram the address chosen has the draftfile folder! Something has gone wrong in the location of images! Can you let me know what should be the ideal location of server files so that the Moodle can access it during display mode?

This is driving me nuts! Our many modules are without diagrams now and we are in big trouble!

Thanks in advance for help!

Best Regards

Kalyan

Attachment Image-Address-from-File-Picker.png
In reply to Kalyan Chatterjea

Re: Suddenly images are not shown in the Book Module

by Kalyan Chatterjea -

Hi All

Just now I tried this demo site:

http://school.demo.moodle.net/mod/book/edit.php?cmid=766&id=39

and I got the following html code:

<p>bbb<img src="http://school.demo.moodle.net/draftfile.php/160/user/draft/410583270/perthlemonsinmygarden.jpg" alt="aaa" style="vertical-align:text-bottom; margin: 0 .5em;" class="img-responsive" height="336" width="448"><br></p>

and the site is working well...the picture was auto sized (which is not happening with me) and it displayed immediately! And they also have the draftfile.php folder...so this is not the problem!

Please help! I am sure there are many gurus out there and I must be very dumb not to detect what is causing this problem!

Kindly help!

Kalyan

In reply to Kalyan Chatterjea

Re: Suddenly images are not shown in the Book Module

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
Hallo Kalyan

As already hinted, I am not a "GUI" person and can not help here. Hope, somebody else could.
In reply to Kalyan Chatterjea

Re: Suddenly images are not shown in the Book Module

by Kim Salinas -
Picture of Testers

Hi Kalyan, I'm wondering if the original file was uploaded from a Private files area? I know I have problems when using the My Private Files and having the linked file carry over. The best results I have is to upload directly into the content from the computer instead of the private files area.

Your problem may be related to how and where the files are coming from if it is one person that has uploaded the problem images. However, if you are seeing the file in the server files and linking to that, and they still don't show up is very strange.

Sorry I can be more helpful sad

In reply to Kim Salinas

Re: Suddenly images are not shown in the Book Module

by Kalyan Chatterjea -

No Kim not private files

Even if I create a new page and insert an image it is not shown!

Going crazy!

Hope I can solve it soon!

In reply to Kalyan Chatterjea

Re: Suddenly images are not shown in the Book Module

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
Hi Kalyan

Some obvious things which I should have asked earlier:
1. "Suddenly" means you had books with images working, then suddenly they (all?) vanished?

If yes, think carefully of everything that happened in between.

2. Right now, you can not get fresh images uploaded to books, right?

Go through all system settings in Moodle {environment, etc.) and see whether Moodle complains about something. Did you try purging the cache? Is your site on "Theme designer mode"?

Talking of themes, I saw that you have a fancy theme. Did you try changing it temporarily to the Moodle default theme?

If everything fails and the problem occurs only in the books module, ask the moderator to move the discussion to the Book forum.
In reply to Kalyan Chatterjea

Re: Suddenly images are not shown in the Book Module

by Nicolas Liebeaux -

Hi!

Just to say that I have the exact same problem, my provider being BlueHost.

In fact, the problem occurred during a test. From a question to the next, the images disappeared, replaced by their "box".


I haven't changed anything in the config.

For example, when i'm editing a question with image, i choose to change the image properties. I can see my image in the integrated files :


But when I select (again) the image, it doesn't show in the question..

So, if you find a solution, it will help a lot ! I find it strange to see this problem suddenly appear..

Have a nice day,

Nicolas

In reply to Nicolas Liebeaux

Re: Suddenly images are not shown in the Book Module

by Phil Carlson -

I am running into the same thing. Have you found a solution?

In reply to Phil Carlson

Re: Suddenly images are not shown in the Book Module

by Nicolas Liebeaux -

Nope.

I have been obliged to change my web hosting company, install a new moodle instance, and start working. 

In reply to Nicolas Liebeaux

Re: Suddenly images are not shown in the Book Module

by Rodrigo Cervantes -

Hi. I´m going through the same problem. Which service provider did you select for your new instalation? We just moved 2 months ago from ICDSoft to Bluehost because of the fast scalability and we actually used it once this week because of the slow performance (support recommended upgrading from 4 to 5 GB of ram).  Although the performance improved, it's useless if the site is not reliable regarding images and files.