admin管理员组文章数量:1122832
I just encountered a bug when I am trying to post with images. When I am adding media using "Add Media" button, the image will not add and will have this error:
POST .php 403 (Forbidden)
However, when I am trying to add other media such as pdf, it will add.
When I tried using an inline html image syntax to add the image. When saving the draft or publishing it, it will return a 403 forbidden page.
We did not change anything from .htaccess, but just started experiencing it. What I have done so far:
- Updating securit plugins.
- Changing the uploads permission to 755.
But no avail on these steps. Wordpress version: WordPress 6.3.4
I just encountered a bug when I am trying to post with images. When I am adding media using "Add Media" button, the image will not add and will have this error:
POST https://philsa.gov.ph/wp-admin/admin-ajax.php 403 (Forbidden)
However, when I am trying to add other media such as pdf, it will add.
When I tried using an inline html image syntax to add the image. When saving the draft or publishing it, it will return a 403 forbidden page.
We did not change anything from .htaccess, but just started experiencing it. What I have done so far:
- Updating securit plugins.
- Changing the uploads permission to 755.
But no avail on these steps. Wordpress version: WordPress 6.3.4
Share Improve this question edited May 30, 2024 at 4:31 Nikko asked May 30, 2024 at 4:13 NikkoNikko 1013 bronze badges 2- Are you using any cache plugins? Try purging the cache then checked for the permissions applied to cached files. – jhedmendoza Commented May 30, 2024 at 6:56
- I only have WP Server Stats, I have purge the cache in that plugin. The issue still persists. I cant even add older files before the issue arose. – Nikko Commented May 30, 2024 at 7:16
1 Answer
Reset to default 1Many times, this type of issue occurs due to SSL as well. So, try adding these plugins one by one, such as Really Simple SSL, SSL Insecure Content Fixer, or WP Force SSL & HTTPS SSL Redirect, and see if the issue is fixed
本文标签:
版权声明:本文标题:uploads - Cannot add image (png, jpeg, etc.) but can add pdf, 403 forbidden when posting 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736304701a1932325.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论