Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP conflict with other plugin #127

Open
razor2016 opened this issue Dec 12, 2019 · 0 comments
Open

PHP conflict with other plugin #127

razor2016 opened this issue Dec 12, 2019 · 0 comments
Milestone

Comments

@razor2016
Copy link

razor2016 commented Dec 12, 2019

Hi there,

This is a great plugin and working just fine, but I am having an issue when I have both this plugin and wp job manager plugin active.

The class in question is RT_Transcoder_Handler , there is a method in it named handle_callback which is fired in the init hook.

Now, I'm hoping you are familiar with the wp job manager plugin. Anyway, it has [submit_job_form] and [job_dashboard] shortcodes. These shortcodes renders job sumbit and edit forms.

When I submit these forms, your plugin method handle_callback gets $job_id from the form submission in line number 985 and dies in line number 1116. Also you have an undefined variable $mail in line number 1098.

I tried by myself, but could not fix it. I tried to remove the action conditionally like:

if($jobmnager) {
     remove_action( 'init', array( $rt_transcoder_admin->transcoder_handler, 'handle_callback' ), 20 );
}

But I failed because the transcoder_handler property is private.

So maybe renaming the variable job_id in the filter_input function (line number 985) can fix the issue.

Really appreciate your help.

Thanks
Razor

@pooja-muchandikar pooja-muchandikar added this to the 1.3.2 milestone Oct 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants