The link you followed has expired.
-
When I submit a new post I always get the error “The link you followed has expired.” – I have read many things but no solutions have worked. I increased max_post size as well as max_upload size and no luck. I still continue to get the same error every time I try to submit a listing. Please help.
-
Hi there–
You most likely have a theme that has overridden the
job-preview.php
template. Check your theme (and parent theme if you have one) forjob_manager/job-preview.php
. That template was updated in the last release.The most important change is adding the new action
preview_job_form_start
. Please insert the following just after the<form ...>
element:<?php /** * Fires at the top of the preview job form. * * @since 1.32.2 */ do_action( 'preview_job_form_start' ); ?>
Best,
Jake M.
- This reply was modified 5 years, 8 months ago by Jake Morrison (a11n).
Hi Jake,
I am having the same problem. I tried insertting the code provided in script, but nothing changed. Still getting the message – “the link you followed has expired”.
Can you help please?
Thanks,
MaryWe are also experiencing the same issue. We inserted the code after the form element as instructed.
<?php
/**
* Job listing preview when submitting job listings.
*
* This template can be overridden by copying it to yourtheme/job_manager/job-preview.php.
*
* @see https://wpjobmanager.com/document/template-overrides/
* @author Automattic
* @package WP Job Manager
* @category Template
* @version 1.27.0
*/if ( ! defined( ‘ABSPATH’ ) ) {
exit; // Exit if accessed directly
}
?>
<form method=”post” id=”job_preview” action=”<?php echo esc_url( $form->get_action() ); ?>”>
<div class=”job_listing_preview_title”>
<input type=”submit” name=”continue” id=”job_preview_submit_button” class=”button job-manager-button-submit-listing” value=”<?php echo apply_filters( ‘submit_job_step_preview_submit_text’, __( ‘Submit Listing’, ‘wp-job-manager’ ) ); ?>” />
<input type=”submit” name=”edit_job” class=”button job-manager-button-edit-listing” value=”<?php _e( ‘Edit listing’, ‘wp-job-manager’ ); ?>” />
<h2><?php _e( ‘Preview’, ‘wp-job-manager’ ); ?></h2>
</div>
<div class=”job_listing_preview single_job_listing”>
<h1><?php wpjm_the_job_title(); ?></h1><?php get_job_manager_template_part( ‘content-single’, ‘job_listing’ ); ?>
<input type=”hidden” name=”job_id” value=”<?php echo esc_attr( $form->get_job_id() ); ?>” />
<input type=”hidden” name=”step” value=”<?php echo esc_attr( $form->get_step() ); ?>” />
<input type=”hidden” name=”job_manager_form” value=”<?php echo $form->get_form_name(); ?>” />
</div>
</form>
<?php
/**
* Fires at the top of the preview job form.
*
* @since 1.32.2
*/
do_action( ‘preview_job_form_start’ );
?>I fixed it. I replaced the files in the theme/job_manager with all the new files in the plugins/wp-job-manager/templates. Works fine now.
Hi Aslan!
So glad you fixed it. Can you explain how you replaced the files and where? I am not a web guru and need help with this?
Thanks Mary
@aslan_eident Glad you figured it out.
The new code goes just after
<form ...>
but must be before the closing</form>
tag.@napsme Which theme are you using? If you’re not using a custom theme, we also want to make sure we’re reaching out to theme developers to update the template. From your active theme (or parent theme), paste in the contents of
job_manager/job-preview.php
(for example, look for it in/wp-contents/themes/YOUR_ACTIVE_THEME/job_manager/job-preview.php
).@napsme Thanks, Mary. I’ll reach out to the theme developer as well.
Let me know how it goes.
Jake M.
Please let me know how to fix this Issue.
I need this ASAP.
I tried all but nothing works.
I have contacted the theme developer (codethemes) for the theme I am using that is having problems (Robolist Pro) but they have yet to provide any updates or help.
@rohitwebgensis What theme are you using?
If your theme has this directory
/wp-contents/themes/YOUR-ACTIVE-THEME/job_manager
, then copy the contents of/wp-contents/pluging/wp-job-manager/templates
to
/wp-contents/themes/YOUR-ACTIVE-THEME/job_manager
.However, if you made modifications to any job manager template files in your theme, you will lose the changes. Since I copied the files, the display of the job postings changed. We must have copied the template files into the theme to customize the job posting display.
@napsme Here is what fixed the theme and got it working for me.
open the file /job_manager/job-preview.php
Find this line:
<form method="post" id="job_preview" action="<?php echo esc_url( $form->get_action() ); ?>">
And right below it add:<?php /** * Fires at the top of the preview job form. * * @since 1.32.2 */ do_action( 'preview_job_form_start' ); ?>
This will be right before and above the:
<div class="container">
This has the theme working again for me – however codethemes said they were going to update the theme – but judging by their previous lack of support, I have no idea when or if they actually will. I have not had a good experience with them so far.
If anyone else is using the Robolist theme and needs help please let me know and I will try to help out. The plugin dev was correct with what needs to be added.
- This reply was modified 5 years, 8 months ago by kevinstan.
@kevinstan thanks soo much. It worked!!!
I am slightly concerned that this will happen whenever there’s an update. Is there anyway this can be avoided in future. I am planning to go live in May…@napsme We don’t make changes like this lightly. We tried to communicate with theme developers before it was released, but this one was off our radar until now.
In the future, if we have to do something like this again, we’ll add additional notifications from within the plugin with documentation on how to fix it.
Jake M.
- The topic ‘The link you followed has expired.’ is closed to new replies.