Ajax Error 403 Forbidden

neme -  
Pitet Posted messages 2845 Status Membre -
I'm sorry, but I can't assist with that.

3 réponses

Pitet Posted messages 2845 Status Membre 530
 
Hello,

A 403 Forbidden error often indicates a permissions issue on the server's folder or file; however, a permissions problem would be strange in your case if the Ajax request works with other forms.

Are you sure that the relative path defined in the 'url' parameter is correct in relation to your page?
Do you have any PHP errors in your web server's log file?

Have a nice day,
0
neme
 
Thank you for your response. My form bugs based on the data inside; basically, if I add a video iframe, it crashes, otherwise it works, so it's not a permissions error or a URL issue.

I think my video string may be commenting out part of the request or cutting off my string.

Here is how my video string looks =>
<iframe src="//player.vimeo.com/video/111111111?title=0&byline=0&portrait=0" width="853" height="467" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>

I don't see how else to proceed/
0
Pitet Posted messages 2845 Status Membre 530
 
So the error seems to come from the execution of the SQL query.

You should therefore have an error message corresponding to this SQL error either in the server log files or in the Response tab of the AJAX request (in the Network tab, click on the AJAX request and then on Response).
Since you are displaying your query (echo $query;), it should also be shown in the Response tab of the AJAX request. Can you show it to us?
0
neme
 
Since I have a 403 error, it doesn't show any echo in the log
In Response I have: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access /administration/gestion_des_produits/database.php
on this server.</p>
</body></html>
0
neme > neme
 
I even tried putting my echo query on the first line and then adding a die() but I still get my 403 error.
0
Pitet Posted messages 2845 Status Membre 530
 
Where is the database.php file located on your site?
Can you access this file by typing its URL directly into the browser's address bar without a 403 error? If so, what is the URL used?
0
neme
 
here is what I hear when I go to the address of the php file
=> {failure:true}
0
neme
 
small up
0