这是indexloc提供的服务,不要输入任何密码
Skip to content

PHP conflict with other plugin #127

@razor2016

Description

@razor2016

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions