Skip Navigation

[Resolved] Cred Post Form Generated Content Shows 404 Page Not Found

This support ticket is created 6 years, 6 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 5 replies, has 3 voices.

Last updated by Christian Cox 6 years, 6 months ago.

Assisted by: Christian Cox.

Author
Posts
#902172

I am trying to: publish a post using a cred post form. After submission the post page registers a "404 Page Not Found" instead of the published post. When I add a post directly from the WordPress interface "For Sale" custom post type I set up, it works fine and the page is created and can be viewed. Also, the custom "Views" I have set up do show the cred post form generated content, but the post itself can't be viewed.

I expected to see: a post with the url: hidden link

Instead, I got: a 404 page with the url of: hidden link

#902202

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Steve,

Thank you for contacting our support forum.

I suspect that this is being caused by you permalinks. What I suggest is for you to reset your permalinks and try again.

To do this go to Settings -> Permalinks and then select the default permalinks, save and then set it back to postname and resave.

This should cause the items to start working again.

Thanks,
Shane

#902233

Hi Shane,

I reset the permalinks and am having the same problem. It seems the cred submission form is still adding this to the end of the post url: ?cred_referrer_form_id=10989, resulting in a "404 Page Not Found".

What other issues could be responsible for this?

Thanks,
Steve

#902516

Hi Steve, Shane has a national holiday today so I will be glad to continue supporting you here. Can you tell me more about your site?
- What post type are the posts created by CRED? Is this post type created by Types, or by another plugin or theme?
- Can you find and edit in wp-admin the posts created by CRED? If so, please edit one and publish it from wp-admin. Does it begin to appear on the front-end of the site?
- Do you have any caching plugins or server-side caching systems implemented on your site? Can you clear them if so?

#903996

Hello Christian,

I am trying to post a Toolset custom post type with the cred form.

I do not have any caching plugins installed.

Yes, I can find and edit the post created by the cred form in the wp-admin, but it will not show up on the front end because the cred form has added ?cred_referrer_form_id=10989 to the end of the post url when the cred form created it. It opens a "404 page not found" instead.

The strange thing is that the "views" i have created show the post and the correct url, without the added ?cred_referrer_form_id=10989.

#904532

?cred_referrer_form_id=10989
This is a URL parameter that is added by CRED automatically to help manage responses when multiple forms exist on the same page, and is the expected result of a new CRED post submission. It shouldn't cause a 404 error unless something else is going on. When I go to either of these URLs, I see the same 404 error:
hidden link
hidden link

Can you share the URLs of some other posts created by CRED where I can see the issue?
Then try the following troubleshooting steps:
- Temporarily deactivate all plugins except Toolset plugins and activate a default theme like Twenty Seventeen. Retest the form.
- If the 404 error is resolved, reactivate your theme and plugins one by one until the conflict is revealed.
- If the 404 error is not resolved, please turn on server logs so we can see if anything else is causing an error. If you are not familiar with server logs, I can show you how to activate them temporarily. Go in your wp-config.php file and look for define(‘WP_DEBUG’, false);. Change it to:

define('WP_DEBUG', true);

Then add these lines, just before it says 'stop editing here':

ini_set('log_errors',TRUE);
ini_set('error_reporting', E_ALL);
ini_set('error_log', dirname(__FILE__) . '/error_log.txt');

Then submit the CRED Form once more to trigger a 404 error. This will create an error_log.txt file in your site's root directory. Please send me its contents. Once that is done, you can revert the changes you made to wp-config.php.