Question: captcha not showingj

captcha not showingj

no captcha is showing for guest, clicking post will give error.

H

hanni

Asked
no captcha is showing for guest, clicking post will give error.
  • H

    hanni

    Answered
    also cannot view user information with ajax

    mysite.com/d/index.phpajax_calls/get_user_details/1?_=1592872096781

    i assume there is a typo somewhere in the code, but i dont know where to find it.
  • H

    hanni

    Answered
    further research, i am guessing this is because my server is not yet hiding index.php.
    would love help on this whenever you're available.
  • MS

    Mian Saleem

    Answered
    Hello,

    It's because you have added the index.php to the urls :( The index_page in config should be blank. If you change index_page the url structure will change and would result in failure of ajax calls.

    Please reset it back to default and try to change the lines below in the .htaccess

    ```
    # For godady Shared Hosting Server uncomment the line below
    RewriteRule ^(.*)$ index.php?/$1 [L] // I HAVE UNCOMMENTED THIS

    # Please comment this if you have uncommented the above
    # RewriteRule ^(.*)$ index.php/$1 [NC,L,QSA] // I HAVE COMMENTED THIS
    ```

    If you have upload the files in subdirectory `d` then you can uncomment the `# RewriteBase /forums/` and change it to `RewriteBase /d/` in the .htaccess file.


    I hope it will resolve the issue. If you can't make it work, please let me know your server details in private reply. I will try to check for you.

    *You can post private reply by enabling the `PRIVATE for Staff only` at top right of the reply section.*

    Thank you
  • H

    hanni

    Answered
    oh i see now, my computer hid the .htaccess file by default so it never got uploaded when i dragged files in server.
    i'll see if it works with the one provided, i was wondering why i had to make my own file lol
  • H

    hanni

    Answered
    yup all definitely works now
  • Login to Reply