Title: Using template causing admin-ajax.php forbiden?
Last modified: December 2, 2018

---

# Using template causing admin-ajax.php forbiden?

 *  Resolved [mllapan](https://wordpress.org/support/users/mllapan/)
 * (@mllapan)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/using-template-causing-admin-ajax-php-forbiden/)
 * [https://pastebin.com/urq85eYb](https://pastebin.com/urq85eYb)
    This is the sample
   of new page template I am using, and I included from what I could inspect in 
   browser as a code of WPUF. Problem is that form is hidden and filled correctly,
   I am using Youtube api to autopopulated fields. I already put much work on this.
   So yeah, once field search, is searched for a keyword, youtube videos are shown,
   and each youtube video has hidden and filled correctly wpuf fields, just problem
   is that by clicking submit, in this case it is image i put as a submit button,
   it returns admin-ajax.php 403 forbiden. How do I fix this?
 * Fields hidden…
 *     ```
       ul.wpuf-form .wpuf-el {
           position: relative;
           display: none;
       }
       ```
   
 * Fields being populated…
 * > [View post on imgur.com](https://imgur.com/UYWLmK6)
 * Clicking submit…
 * > [View post on imgur.com](https://imgur.com/PcB0sJx)
 * You can test it in here…
    [http://lapan.com.ba/dodaj-youtube/](http://lapan.com.ba/dodaj-youtube/)
 * Maybe all this what I am doing sounds weird, but as you can see, I want to publish
   video without even guest knowing they are doing it…

Viewing 1 replies (of 1 total)

 *  [Robin](https://wordpress.org/support/users/emazharulislam/)
 * (@emazharulislam)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/using-template-causing-admin-ajax-php-forbiden/#post-10941339)
 * Hello [@mllapan](https://wordpress.org/support/users/mllapan/),
 * It’s really hard to provide the solution in this way. I recommend you to enable
   the wp_debug & wp_debug_log true and submit a post. After doing that a file will
   generate in the wp-content directory named debug.log. If you check that file 
   will find the errors along with the file locations. Check this link: [https://codex.wordpress.org/Debugging_in_WordPress](https://codex.wordpress.org/Debugging_in_WordPress)
 * Thanks.

Viewing 1 replies (of 1 total)

The topic ‘Using template causing admin-ajax.php forbiden?’ is closed to new replies.

 * ![](https://ps.w.org/wp-user-frontend/assets/icon-256x256.gif?rev=2818776)
 * [User Frontend: AI Powered Frontend Posting, User Directory, Profile, Membership & User Registration](https://wordpress.org/plugins/wp-user-frontend/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-user-frontend/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-user-frontend/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-user-frontend/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-user-frontend/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-user-frontend/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Robin](https://wordpress.org/support/users/emazharulislam/)
 * Last activity: [7 years, 6 months ago](https://wordpress.org/support/topic/using-template-causing-admin-ajax-php-forbiden/#post-10941339)
 * Status: resolved