9701 screwed

      31
chính sách hiển thị Lần gửi thứ nhất Lần gửi cuối cùng Hiển thị phúc đáp một giải pháp tuần từ bỏ Hiển thị phúc đáp theo kiểu kết cấu
*

I create new multiple choice question.And insert picture in question text with html editor tool. When i submit this new question error occur. Please help me và thank for any future help.
*

*

Để ý kiến tới Ekachai Singthong

Re: You don"t have permission lớn access /thietkewebhcm.com.vn/question/question.php on this server.

Bạn đang xem: 9701 screwed


*
*
*
*
*

That is a mis-configured server. I have explained in more detail in previous forums posts, & I can"t be bothered to lớn type it out again now. Please search (the text of the error message should find previous threads).
*

Để phản hồi tới Ekachai Singthong

Re: You don"t have permission to access /thietkewebhcm.com.vn/question/question.php on this server.


Để ý kiến tới Gabriel Carpio

Re: You don"t have permission to access /thietkewebhcm.com.vn/question/question.php on this server.


The problem is the the mod_security on the apache webserver is blocking the $returnurl because the question module editlib.php file places an http:// in the midst of the url. One could hotline using mod_security miss-configured, or the code could be fixed lớn work more lượt thích thietkewebhcm.com.vn 2.0http://tracker.thietkewebhcm.com.vn/browse/MDL-21233Clearly, mod_security blocks this behavior for a reason.To check if this is your problem, when you see the error when using the question module, look at the url on your web browser"s url window. Scroll right to look at the returnurl variable. You should see your site name beginning with http:// with some HEX encoded url stuff và ending with your .edu / .org, etc. Erase from the http khổng lồ the .org part và hit return--you"ll see your question.Now this is a rather brutish hack, but it saves you from creating a .htaccess file and slowing the system. Besides, the problem will go way with 2.0 anyway. Do not attempt this unless you are familiar with editing và testing programs.First, for the question/editlib.php file, địa chỉ this function khổng lồ the bottom of the code: Để bình luận tới Jerre Cope

Re: You don"t have permission lớn access /thietkewebhcm.com.vn/question/question.php on this server.


Thanks, Jerre, for your clear answer to lớn this problem...

My question must look ridiculous khổng lồ you (I know nothing about php editing - I just follow instructions), but could you please explain me where to địa chỉ the last line.

My editlib.php looks like this:

$returnurl = $pageurl->out(false, array("category"=>"$tocategoryid,$contextid")); if (!$checkforfiles) if (!question_move_questions_to_category(implode(",", $questionids), $tocategory->id)) print_error("errormovingquestions", "question", $returnurl, $questionids); redirect($returnurl); else $movecontexturl = new thietkewebhcm.com.vn_url($CFG->wwwroot."/question/contextmoveq.php", array("returnurl" => $returnurl, "ids"=>$questionidlist, "tocatid"=> $tocategoryid)); if ($cm) $movecontexturl->param("cmid", $cm->id); else $movecontexturl->param("courseid", $COURSE->id); redirect($movecontexturl->out()); } }

if (optional_param("deleteselected", false, PARAM_BOOL)) { // delete selected questions from the category if (($confirm = optional_param("confirm", "", PARAM_ALPHANUM)) and confirm_sesskey()) // teacher has already confirmed the action $deleteselected = required_param("deleteselected");

Where exactly should I paste it?


Để bình luận tới eliana neves

Re: You don"t have permission lớn access /thietkewebhcm.com.vn/question/question.php on this server.


Everywhere you see a line:$returnurl =place the line I described directly beneath it. $returnurl = fix_embed_url($returnurl); // elianaThis overrides the line above và helps you see what you"ve changed.Paste the Function paragraph I showed you at the bottom of the file, before ?> at the kết thúc of the file.Before you start editing, copy the original editlib.php to lớn a safe place so that you can start over if necessary.
Để phản hồi tới Jerre Cope

Re: You don"t have permission khổng lồ access /thietkewebhcm.com.vn/question/question.php on this server.


Thanks, Jerre, for your answer.

I´ve done it, but after the change it doesn´t show the quiz, just a blank page.

Is there anything else I could do?


Để bình luận tới eliana neves

Re: You don"t have permission to lớn access /thietkewebhcm.com.vn/question/question.php on this server.


Well let"s start over. Put the original editlib.php back, reproduce the error and paste the url that is in your browser here.
Để phản hồi tới Jerre Cope

Re: You don"t have permission to access /thietkewebhcm.com.vn/question/question.php on this server.


Thanks again

*

The error:

Forbidden

You don"t have permission khổng lồ access /question/question.php on this server.

Xem thêm: Phần Mềm Kiểm Tra Tốc Độ Mạng Internet Phổ Biến Nhất Hiện Nay

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument lớn handle the request.

Apache mod_fcgid/2.3.5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 vps at lingua.alcains.com Port 80Url:http://lingua.alcains.com/question/question.php?id=148&cmid=412&returnurl=http%3A%2F%2Flingua.alcains.com%2Fmod%2Fquiz%2Fattempt.php%3Fq%3D8%26amp%3Bpage%3D0%23q148
Để bình luận tới eliana neves

Re: You don"t have permission to lớn access /thietkewebhcm.com.vn/question/question.php on this server.


OK, Reproduce error again, then erase the url và paste this one in.http://lingua.alcains.com/question/question.php?id=148&cmid=412&returnurl=%2Fmod%2Fquiz%2Fattempt.php%3Fq%3D8%26amp%3Bpage%3D0%23q148Your question should show.Notice the substitute function was for .org, rather than .comReplace the .org part with .com instead.You probably want lớn temporarily set your System / Administration / server / Debugging to lớn development mode while you chạy thử your script. That way, errors you may introduce will be reported. Once, you"ve finished testing, mix the Debugging back lớn None.
Để bình luận tới Jerre Cope

Re: You don"t have permission lớn access /thietkewebhcm.com.vn/question/question.php on this server.


The url you gave shows the question edit window.

I replaced the org for com, and get this from the debugging error:

Parse error: syntax error, unexpected $end in /home/alcains/public_html/lingua/question/editlib.php on line 930

I"ve probably made some errors editing the file.


*
editlib.php
Trung bình điểm tiến công giá: -
Permalink Xem bài được phúc đáp
Để bình luận tới eliana neves

Re: You don"t have permission to access /thietkewebhcm.com.vn/question/question.php on this server.


Very good!That means, when you get the edit right, your problem will be solved. Start with the original editlib.php Take the code with the function noted below và place it at the bottom of the file, above the ?> Ah! I see I left out a closing in my original code post. Sorry. That what I get for trying to communicate in the middle of the night.Here is the function, edited for your .comfunction fix_embed_url($badurl) $repaired_url = preg_replace( "/http.*com/","",$badurl); return $repaired_url;Lastly, there are two occurrences where $returnurl are assigned. Directly beneath each of these địa chỉ cửa hàng this line:$returnurl = fix_embed_url($returnurl); // elianaI am confident you will succeed.
Để bình luận tới Jerre Cope

Re: You don"t have permission khổng lồ access /thietkewebhcm.com.vn/question/question.php on this server.


Sorry, Jerre,

I still get the bad url

http://lingua.alcains.com/question/question.php?id=148&cmid=412&returnurl=http%3A%2F%2Flingua.alcains.com%2Fmod%2Fquiz%2Fattempt.php%3Fq%3D8%26amp%3Bpage%3D0%23q148

with the

Forbidden

You don"t have permission khổng lồ access /question/question.php on this server.

Additionally, a 404 Not Found error was encountered while trying to lớn use an ErrorDocument khổng lồ handle the request.

Apache mod_fcgid/2.3.5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 vps at lingua.alcains.com Port 80
Để bình luận tới eliana neves

Re: You don"t have permission to lớn access /thietkewebhcm.com.vn/question/question.php on this server.


Elianana,I had the same problem today, so I called my webhost và explained the return url security issue khổng lồ them. They took care of it over the phone for me in two minutes and now it works fine. Not worth the aggravation of trying lớn fix it yourself.Jack
Để đánh giá tới Tzvi Daum

Re: You don"t have permission to lớn access /thietkewebhcm.com.vn/question/question.php on this server.


Jerre made it work for me. (Thank you so much for your help, Jerre)

No need to change the mod_security.


Để bình luận tới Jerre Cope

Re: You don"t have permission khổng lồ access /thietkewebhcm.com.vn/question/question.php on this server.


hotlive |

Hi88