Cannot display picture because of wrong picture's URL

Cannot display picture because of wrong picture's URL

by Jeeradate Kaowkanchana -
Number of replies: 9
I install the Moodle version 1.8 at Godaddy with automatic installation service and it installed Moodle in subdirectory = "/vi" .
My domain name is www.beingpro.com then I can call moodle with the following URL " http://www.beingpro.com/vi "
When I try to add the picture with Moodle's HTML Editor, the picture shown up in the editor but when I display the page the picture link loss because picture URL don't include the sub directory that Moodle install.

The html code is " <img width="125" vspace="0" hspace="0" height="70" border="0" src="../file.php/1/seehere.gif" alt="Click below! " title="Click below! " /> "

The Picture's URL is
" "

I think the correct URL should be " http://beingpro.com/vi/file.php/1/seehere.gif "

What should I do to correct this problem?
Thank you in advance for your kind advice.

Best regards,
Jeeradate K.

mixed
Average of ratings: -
In reply to Jeeradate Kaowkanchana

Re: Cannot display picture because of wrong picture's URL

by Jeeradate Kaowkanchana -
I correct the URL and can display only one picture per one wiki page.
Would you please be so kind and advice ?
Best regards,
Jeeradate K.

Below is HTLM from editor of this page http://beingpro.com/vi/mod/wiki/view.php?id=10&page=HowToBeMember

การสมัครเป็นสมาชิกไม่มีค่าใช้จ่ายใดๆทั้งสิ้น<br /><br />โดยจะมีสองขั้นตอนคือ<br />
<ul>
<li>กรอกใบสมัคร</li>
<li>Activate User</li>
</ul><br /><span style="font-weight: bold; color: rgb(0, 0, 255);">การกรอกใบสมัคร</span><br />คลิกที่มุมขวาบนของจอตรงข้อความว่า &quot;Login&quot; ดังรูป<br /><img width="260" vspace="0" hspace="0" height="92" border="0" src="http://beingpro.com/vi/file.php/1/images/Login.jpg" alt="Click at Login! " title="Click at Login! " /><br /><br />เว็บจะแสดงหน้าจอใหม่ ให้คลิกที่่ปุ่ม Create new account ดังรูป<br /><br /><img width="516" vspace="0" hspace="0" height="146"im border="0" title="Click at Create new Account button" alt="Click at Create new Account button" src="http://beingpro.com/vi/file.php/1/images/CreateAccount.jpg" /><br /><br />เมื่อเว็บเปิดหน้าจอใหม่ให้กรอกข้อมูลของท่าน ดังตัวอย่าง (ห้ามลอกตัวอย่างนะครับ)<br />Username, Password ควรเป็นภาษาอังกฤษ Email ต้องกรอกสองครั้งเหมือนกัน จากนั้นคลิกปุ่ม Create my new account ดังรูป<br /><br /><img width="579" vspace="0" hspace="0" height="457" border="0" src="http://beingpro.com/vi/file.php/1/images/FillInform.jpg" alt="Fill in Form and Click Create my New Account" title="Fill in Form and Click Create my New Account" /><br /><br />หาก Username ที่ท่านเลือกมีคนใช้ไปแล้วจะมีข้อความให้เลือกใหม่ดังรูป ให้กำหนด Username ใหม่แล้วคลิกปุ่ม Create my new account <br /><br /><img width="465" vspace="0" hspace="0" height="83" border="0" src="http://beingpro.com/vi/file.php/1/images/NameAlreadyExist.jpg" alt="Username already Exists" title="Username already Exists" /><br /><br /><span style="font-weight: bold; color: rgb(0, 0, 255);">การ Activate New user</span><br /><br />หลังจากสมัครสมาชิกได้เรียบร้อยแล้วจะมี Email ไปที่ Email ที่่ท่านกำหนด ให้คลิก Link ใน Email ดังรูปเพื่อ Activate New User ของท่าน<br /><br /><img width="548" vspace="0" hspace="0" height="99" border="0" src="http://beingpro.com/vi/file.php/1/images/ActivateNewUser.jpg" alt="Click Link to activate new user" title="Click Link to activate new user" /><br /><br />จากนั้นท่านสามารถใช้ User Name และ Password ที่ท่านกำหนดเพื่อเข้าใช้สิทธิต่างในเว็บได้ <br /><br />
In reply to Jeeradate Kaowkanchana

Re: Cannot display picture because of wrong picture's URL

by Richard Enison -
JK,

When I started to read your original post, I was thinking it was a simple problem of having the wrong value for $CFG->wwwroot in config.php. However, the url you showed uses the relative path "..". Whether that path is correct depends on what file it occurred in, and what directory that file is in. It would be very surprising if it were wrong, because if it were every Moodler would experience this problem.

But your second post doesn't deal with this case at all. There is no mention of seehere.gif (or any other .gif file) in it. Instead, it contains html code that mentions three .jpg files that I don't have in my (XAMPPlite) Moodle installation, but then again, I haven't used the Wiki module. Is the html code you show the code as it is generated by view.php, or have you somehow modified it? Are you saying you are only seeing one of these three images, or that you are getting a page break between them? If so, I don't see anything in the html code that would cause that, unless the images are so large that only one fits on a page, which does not appear to be the case.

RLE
In reply to Richard Enison

Re: Cannot display picture because of wrong picture's URL

by Jeeradate Kaowkanchana -
Dear Khun Richard Enison,
Thank you very much. The first question is solved. smile
About the second question, the HTML I show is copy from the HTML Editor of Moodle but when I browse the page and view code it is not correct as you told. I don't know it error at Server or Moodle 's script or my configuration is not correct.
Would you please be so kind an comment?

Best regards,
Jeeradate K.

In reply to Jeeradate Kaowkanchana

Re: Cannot display picture because of wrong picture's URL

by Richard Enison -
JK,

I'm glad you've solved your first problem.

As for the second: Yes, your previous post said it was in the HTML Editor, but how did it get there? And if the HTML source in your browser is different, could we see that, so maybe we can answer your question as to why it is different?

RLE
In reply to Richard Enison

Re: Cannot display picture because of wrong picture's URL

by Jeeradate Kaowkanchana -
Dear Khun Richard Enison,

Sorry for late reply as I hand been assigned and aways from internet connection. The following is the HTML code from Editor.

การสมัครเป็นสมาชิกไม่มีค่าใช้จ่ายใดๆทั้งสิ้น<br /><br />โดยจะมีสองขั้นตอนคือ<br />
<ul>
<li>กรอกใบสมัคร</li>
<li>Activate User</li>
</ul><br /><span style="font-weight: bold; color: rgb(0, 0, 255);">การกรอกใบสมัคร</span><br />คลิกที่มุมขวาบนของจอตรงข้อความว่า &quot;Login&quot; ดังรูป<br /><img width="260" vspace="0" hspace="0" height="92" border="0" title="Login " alt="Login " src="http://beingpro.com/vi/file.php?file=/1/images/Login.jpg" /><br /><br />เว็บจะแสดงหน้าจอใหม่ ให้คลิกที่่ปุ่ม Create new account ดังรูป<br /><br /><img width="516" vspace="0" hspace="0" height="146" border="0" src="http://beingpro.com/vi/file.php?file=/1/images/CreateAccount.jpg" alt="Create Account" title="Create Account" /><br /><br />เมื่อเว็บเปิดหน้าจอใหม่ให้กรอกข้อมูลของท่าน ดังตัวอย่าง (ห้ามลอกตัวอย่างนะครับ)<br />Username, Password ควรเป็นภาษาอังกฤษ Email ต้องกรอกสองครั้งเหมือนกัน จากนั้นคลิกปุ่ม Create my new account ดังรูป<br /><br /><img width="579" vspace="0" hspace="0" height="457" border="0" src="http://beingpro.com/vi/file.php?file=/1/images/FillInform.jpg" alt="Fill in Form" title="Fill in Form" /><br /><br />หาก Username ที่ท่านเลือกมีคนใช้ไปแล้วจะมีข้อความให้เลือกใหม่ดังรูป ให้กำหนด Username ใหม่แล้วคลิกปุ่ม Create my new account <br /><br /><img width="465" vspace="0" hspace="0" height="83" border="0" src="http://beingpro.com/vi/file.php?file=/1/images/NameAlreadyExist.jpg" alt="User Already Exists" title="User Already Exists" /><br /><br /><span style="font-weight: bold; color: rgb(0, 0, 255);">การ Activate New user</span><br /><br />หลังจากสมัครสมาชิกได้เรียบร้อยแล้วจะมี Email ไปที่ Email ที่่ท่านกำหนด ให้คลิก Link ใน Email ดังรูปเพื่อ Activate New User ของท่าน<br /><br /><img width="548" vspace="0" hspace="0" height="99" border="0" src="http://beingpro.com/vi/file.php?file=/1/images/ActivateNewUser.jpg" alt="Activate New user" title="Activate New user" /><br /><br />จากนั้นท่านสามารถใช้ User Name และ Password ที่ท่านกำหนดเพื่อเข้าใช้สิทธิต่างในเว็บได้ <br /><br />


And the picture of the editor show all the picture as below but output as link below
http://beingpro.com/vi/mod/wiki/view.php?id=10&page=view/HowToBeMember Show only one picture.

Editor Picture

Thank you in advance for your kind help.
Best regards,
Jeeradate K.


In reply to Jeeradate Kaowkanchana

Re: Cannot display picture because of wrong picture's URL

by Mauno Korpelainen -

Jeeradate,

press first button "Update this wiki" and then Show advanced. Next from

Wiki auto-linking options - Check "Disable CamelCase linking" - and Save and display

I copied your text to my test server wiki and this seems to work.

In reply to Mauno Korpelainen

Re: Cannot display picture because of wrong picture's URL

by Jeeradate Kaowkanchana -
Dear Khun Mauno Korpelainen,
Thank you very much. Your advice is work.
It shows the pictures, This mean that if I use Thai language then I have to use the HTTP Link not the CamelCase.

Best regards,
Jeeradate K.


In reply to Jeeradate Kaowkanchana

Re: Cannot display picture because of wrong picture's URL

by Mauno Korpelainen -

Administration -> Server -> HTTP and UNCHECK Use slash arguments

Images are visible, for example

Login

http://beingpro.com/vi/file.php?file=/1/images/Login.jpg

In reply to Mauno Korpelainen

Re: Cannot display picture because of wrong picture's URL

by Jeeradate Kaowkanchana -
Thank you for you kind response. It only show first picture, the other picture in this Wiki page don't show up.
Best regards,
Jeeradate K.