• Resolved wpublish2

    (@wpublish2)


    Hello,

    Could you please inform if something has changed on the following filter with the latest update(s)? It is causing a “Too many redirects” error:

    pt-ocdi/plugin_page_setup

    It was working normally about 2 or 3 weeks ago. My usage:

    add_filter( 'pt-ocdi/plugin_page_setup', 'change_strings_ocdi_plugin_page_setup' );
    
    function change_strings_ocdi_plugin_page_setup( $default_settings ) {
    
    	$default_settings['page_title'] = esc_html__( 'Theme Content Importer', 'cbx-project' );
    	$default_settings['menu_title'] = esc_html__( 'Import Demo Data', 'cbx-project' );
    	$default_settings['capability'] = 'import';
    	$default_settings['menu_slug']  = 'pt-one-click-demo-import';
    
    	return $default_settings;
    }
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter wpublish2

    (@wpublish2)

    This issue happened to me and my customer, in different servers. I don’t have any access to the server of my customer, so I think this fail will happen on any server.

    Plugin Author Gregor Capuder

    (@capuderg)

    Hi @wpublish2,

    the default menu_slug is now just ‘one-click-demo-import’. We didn’t want to break existing links to the import page, so we released this fix: https://github.com/awesomemotive/one-click-demo-import/issues/238

    We are now redirecting all pt-one-click-demo-import to the one-click-demo-import, but since you are setting up the old value, it is stuck in an infinite redirect.

    If you are not changing the default value of the menu_slug, you shouldn’t set it at all. Please remove this line from the filter: $default_settings['menu_slug'] = 'pt-one-click-demo-import';

    That should resolve your issue.

    Have a nice day!

    Thread Starter wpublish2

    (@wpublish2)

    Thanks Gregor, that is solved.

    Regards!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Too many requests – pt-ocdi/plugin_page_setup filter’ is closed to new replies.