Getting “Acess denied” on users/write_ad.php Million Dollar Script › Forums › Bug Reports › Getting “Acess denied” on users/write_ad.php This topic contains 13 replies, has 2 voices, and was last updated by Bruno Marinho 4 years, 4 months ago. Viewing 14 posts - 1 through 14 (of 14 total) Author Posts March 5, 2013 at 3:17 am #1041 Bruno MarinhoParticipant Hi, I’m getting this error publishing new add on my hosting server (v2.1). I google it and i found it was a bug detected and solved on 2.0.15? Any clue how can i solve it? Thank you. Regards BM March 5, 2013 at 4:44 am #1042 RyanKeymaster Hello, Do you get any errors in your webserver error logs? Ryan March 5, 2013 at 11:57 pm #1043 Bruno MarinhoParticipant Hello Ryan, Thank you for your reply. I’m getting theis page: “Forbidden You don’t have permission to access /users/write_ad.php on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.” Error log shows me this line: “[Tue Mar 05 09:50:40 2013] [error] [client 188.8.131.52] File does not exist: /home/phkesw/public_html/dev.portugal-relax.com/403.shtml, referer: http://dev.portugal-relax.com/users/write_ad.php” Any clue 😐 Thank you again… Regards, BM March 6, 2013 at 12:10 am #1044 RyanKeymaster Hmm, sounds like maybe the file permissions aren’t right on the write_ad.php file? Files should likely be 644 and folders should be 755 unless your host has some weird setup. March 6, 2013 at 12:28 am #1045 Bruno MarinhoParticipant Just checked… all folders have 755 and files have 644. It seems “Forbidden” only shows up if URL form field isn’t left blank when submiting ad. Ex: http://www.google.com gives me the error… http://dev.portugal-relax.com/users dont give me the error… weird… : March 6, 2013 at 1:24 am #1046 RyanKeymaster I will test it out and see if I can reproduce it and fix it up. March 6, 2013 at 1:30 am #1047 Bruno MarinhoParticipant I guess something is blocking me from linking external url’s on the host server. I can’t reproduce it on my local machine… no problem linking above urls. Maybe a workaround? March 6, 2013 at 1:47 am #1048 RyanKeymaster Oh, maybe it’s mod_security that’s causing that. I actually think I fixed that in a recent dev snapshot. March 6, 2013 at 1:49 am #1049 Bruno MarinhoParticipant replacing only write_ad.php? I’ll test… March 6, 2013 at 2:01 am #1050 Bruno MarinhoParticipant replaced users/write_ad.php and include/ads.inc.php with the snapshot 2.1.r167 and same happens… March 6, 2013 at 2:32 am #1051 RyanKeymaster I think there would probably have been other things modified as well. I will find the commit and see. March 6, 2013 at 2:34 am #1052 RyanKeymaster Yeah some database queries would have to be done I guess to alter the form. Basically remove the http:// from the url box. http://dev.milliondollarscript.com/source/comp.php?repname=mds&compare%5B%5D=%2Fbranches%2F2.1@161&compare%5B%5D=%2Fbranches%2F2.1@162 and http://dev.milliondollarscript.com/source/comp.php?repname=mds&compare%5B%5D=%2Fbranches%2F2.1%2Fusers@157&compare%5B%5D=%2Fbranches%2F2.1%2Fusers@163 March 6, 2013 at 2:36 am #1053 RyanKeymaster Forum cant handle the urls. March 6, 2013 at 3:29 am #1054 Bruno MarinhoParticipant SOLVED 😀 Thank you Ryan! Author Posts Viewing 14 posts - 1 through 14 (of 14 total) You must be logged in to reply to this topic.