Viewing 12 replies - 1 through 12 (of 12 total)
  • Hi Jijo,

    A 404 error page means that the requested web page was not found.

    Do your permalinks contain %postname%?

    Does a plain text submit work (No images, videos, or attachments)?

    Otherwise try using Firebug on Firefox and it’s ‘Net’ tab to see what pages are requested when the post is submitted.

    TheProfessor

    I’m experiencing the same issues. When I’m logged in as an Admin, I am able to upload from the front end (with and without images) just fine but when trying to upload as a subscriber, it redirects me to an unknown page and I get the 404 error message after I hit ‘Submit’.

    Could anyone please explain why this is happening? Would greatly appreciate a solution/suggestions.

    Thanks

    OK, I just quickly wanted to add now that I think it might have something to do with the redirect. Cos when I changed the Post Status from pending to Published, the error message disappeared. Does anyone know why this is happening?

    Thread Starter Jijo Jose

    (@jijojose)

    The plugin is set to redirect to the post which was submitted by the user, but if we set it to pending or draft, redirect will be invalid cos the page isn’t published yet.

    After tweaking a bit in the plugin code I managed to redirect it to the homepage. I wish i could redirect it to a custom page.

    Please can you share the code that allows you redirect to the homepage? I would like to do the same. Thanks

    Thread Starter Jijo Jose

    (@jijojose)

    Find this file: wp-user-frontend/wpuf-add-post.php

    search for this line: //plugin API to extend the functionality

    6th line after the above line is something like this wp_redirect($post_id); , change it to wp_redirect(home_url());

    Sorry I am not good with codes, so not able to explain properly.

    Thread Starter Jijo Jose

    (@jijojose)

    @professor99 Yes, my permalink contains %postname%. Does this matter?

    @jijo Jose

    Thanks very much! ??

    Thread Starter Jijo Jose

    (@jijojose)

    my pleasure.

    it will be great if someone could help me to redirect the page to a custom page. when I try to add anything other than home_url(), it gives me error.

    Hi all,

    Can confirm this is a bug when the user is logged in with the role subscriber. When a user submits a post as observed the page is redirected to the new post. Whilst the new page does exist it’s status is pending. WordPress doesn’t allow users with the role subscriber to access pending pages and returns the very misguiding 404 error instead.

    Really WPUF allowing subscribers to post is a bug itself as it goes against WordPress default role capabilities which don’t allow subscribers to post. The role that should be used for this is ‘contributor’ who don’t have a problem viewing pending posts.

    So a non code fix is to assign the role contributor to these users.

    Other than that either implement Jijo’s fix and maybe test to see if the user has subscriber role and act accordingly.

    Also by default the development version redirects to the originating page so it doesn’t have this problem

    Hi Jiro

    it will be great if someone could help me to redirect the page to a custom page. when I try to add anything other than home_url(), it gives me error.

    wp_redirect requires an absolute URL

    Thread Starter Jijo Jose

    (@jijojose)

    Hi Jiro

    it will be great if someone could help me to redirect the page to a custom page. when I try to add anything other than home_url(), it gives me error.

    wp_redirect requires an absolute URL

    So I can use full length url’s?

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘404 error after submitting a post’ is closed to new replies.