rinatkhaziev / wp-frontend-uploader

WordPress plugin that allows your visitors to upload media from the front-end
53 stars 52 forks source link

This post type is not allowed. #88

Closed dan-online closed 4 years ago

dan-online commented 4 years ago

When using the example shortcode:

[fu-upload-form form_layout="post_media" title="Upload your story and image"
class="my-class validate" post_type="story" append_to_post="true"
success_page="http://example.com/success-page/" category="1" ][/fu-upload-form]

I get

There was an error with your submission

This post type is not allowed.
rinatkhaziev commented 4 years ago

It's a setting you can adjust in the plugin's settings page.

dan-online commented 4 years ago

image

Is it these options?

rinatkhaziev commented 4 years ago

Yes, it's only listing the public ones. Is story a private post type?

dan-online commented 4 years ago

Oh ok I understand now, so when I change that to "post", it leads me to https://domain/wp-admin/admin-ajax.php and the error of There has been a critical error on your website. Learn more about debugging in WordPress.

Thanks for your help so far by the way, I'm quite new to Wordpress as I never use it

rinatkhaziev commented 4 years ago

No problem!

Current versions of WP send you an email with the error and its stack trace. Or you can check your server logs to see what is the error.

dan-online commented 4 years ago

Oh ok, I'll take a look! Might I leave this open until I figure out the issue or if I run into any more problems?

dan-online commented 4 years ago

Ok so there were no errors sent by email but I'm sure its a pretty new version of WP, any other ideas on what it could be?