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
  • #1041

    Bruno Marinho
    Participant

    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

    #1042

    Ryan
    Keymaster

    Hello,

    Do you get any errors in your webserver error logs?

    Ryan

    #1043

    Bruno Marinho
    Participant

    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 77.54.39.16] 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

    #1044

    Ryan
    Keymaster

    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.

    #1045

    Bruno Marinho
    Participant

    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… :

    #1046

    Ryan
    Keymaster

    I will test it out and see if I can reproduce it and fix it up.

    #1047

    Bruno Marinho
    Participant

    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?

    #1048

    Ryan
    Keymaster

    Oh, maybe it’s mod_security that’s causing that. I actually think I fixed that in a recent dev snapshot.

    #1049

    Bruno Marinho
    Participant

    replacing only write_ad.php?

    I’ll test…

    #1050

    Bruno Marinho
    Participant

    replaced users/write_ad.php and include/ads.inc.php with the snapshot 2.1.r167 and same happens…

    #1051

    Ryan
    Keymaster

    I think there would probably have been other things modified as well. I will find the commit and see.

    #1052

    Ryan
    Keymaster
    #1053

    Ryan
    Keymaster

    Forum cant handle the urls.

    #1054

    Bruno Marinho
    Participant

    SOLVED 😀

    Thank you Ryan!

Viewing 14 posts - 1 through 14 (of 14 total)

You must be logged in to reply to this topic.