Support » Plugin: Freesoul Deactivate Plugins - Plugin manager and cleanup » Plugin deactivated with FDP in settings but it does not work

  • Resolved calliesens

    (@calliesens)


    Hello, I’ve deactivated a plugin (DDPro) in FDP settings
    Please see screenshots here:
    screenshot

    But it’s still showing up on pages whenever there’s a 404 error/page can’t be found. How do I deactivate DDPro on error pages as well? Is that possible?
    screenshot

    And after activating FDP, I also got an error from my theme that states:

    Parse error: syntax error, unexpected ‘;’ in /home/senscoms/test.sens.com.sg/wp-content/themes/woffice/template-parts/content-event-loop.php on line 22

    There has been a critical error on your website.

    This was on this page: Events
    Please see screen recording showing that the page will work if FDP is deactivated: woffice events – FDP screen recording

    And I got this error as well that states:

    Notice: Undefined variable: content_type in /home/senscoms/test.sens.com.sg/wp-content/themes/woffice/archive.php on line 59

    This was on page: Project
    Similarly, please see screen recording showing that the page will load if FDP is deactivated: fdp – woffice projects page screencast

    Your kind help is greatly appreciated as this plugin is perfect for my site except for this one minor issue!

    Hope to hear from you soon, thank you very much!

    • This topic was modified 3 years, 12 months ago by calliesens.
    • This topic was modified 3 years, 12 months ago by calliesens. Reason: added screencasts
Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter calliesens

    (@calliesens)

    If you need admin access, please let me know your email address and I’ll email the details to you. Again, thank you very much and I really, really hope you can make it work!

    Plugin Author Jose

    (@giuse)

    Hi, @calliesens thank you for opening a thread.

    About “But it’s still showing up on pages whenever there’s a 404 error/page can’t be found. How do I deactivate DDPro on error pages as well? Is that possible?
    screenshot”

    WordPress redirects to the error page after all plugins are loaded, at a point when it’s too late for FDP. So, unfortunately, FDP is not able to disable plugins on the error page if this one is not a normal page that is selected as 404 page. Unfortunately, the answer is no.

    However, I suggest you create a normal page for the error page where you write whatever you want that looks like an error page. I would call it 404. Then in your functions.php you can add this code to redirect the users to that page when no other pages are found:

    add_action( 'template_redirect','my_404_redirect',0 );
    function my_404_redirect(){
    	if( is_404() ){
    		$error_page_id = 19684; //replace 19684 with the ID of your error page
    		wp_redirect( get_permalink( $error_page_id ) );
    		exit;
    	}
    }

    Then for that page, you can disable plugins as with every other normal page.

    About “And after activating FDP, I also got an error from my theme that states:

    Parse error: syntax error, unexpected ‘;’ in /home/senscoms/test.sens.com.sg/wp-content/themes/woffice/template-parts/content-event-loop.php on line 22

    There has been a critical error on your website.”

    This is a syntax error. It means that in the file /wp-content/themes/woffice/template-parts/content-event-loop.php the PHP code is written not properly. It has nothing to do with FDP. When FDP is active, it looks the file is called, but the error is generated by the wrong syntax. Every time that file is called, you see that error, no matter if FDP is active or not. If you don’t have that error when FDP is not active, it means that file is not called, but if that file is there, it means there are situations where that file is called, also if FDP is not active.

    I can help understanding why when FDP is activated, that file is called, but you should ask for support to the theme authors about the error, because soon or later you will have it also without FDP.

    The same for “And I got this error as well that states:

    Notice: Undefined variable: content_type in /home/senscoms/test.sens.com.sg/wp-content/themes/woffice/archive.php on line 59”

    To understand what is going on, I would need you to answer the following questions:

    – Does DDPro give errors on the error page when FDP is disabled?
    – Do you still have errors if FDP is enabled and all plugins in the FDP settings are enabled (check also Archives and Custom URLs)?
    – What does DDPro do? I haven’t found information about this plugin, is it a custom plugin that comes with the theme?
    – Have you disabled plugins on Freesoul Deactivate Plugins => Archives or Freesoul Deactivate Plugins => Custom URLs => Frontend URLs? You linked two archive pages, it doesn’t look they are single pages. On the page Project I see the body has the class “post-type-archive-project” so this is an archive page. On the page Events I see the body has the class “post-type-archive-woffice-event”, so this is an archive page too.

    Thread Starter calliesens

    (@calliesens)

    Thank you for your very detailed reply Jose, much appreciated! I will try out your method regarding the 404 page and update you on how it goes.

    As for your questions:
    – Does DDPro give errors on the error page when FDP is disabled?

    Yes. As long as DDPro is active on a page, there will be the following errors:

    Fatal error: Uncaught Error: Call to undefined function et_theme_builder_get_template_layouts() in /home/senscoms/test.sens.com.sg/wp-content/plugins/ddpro/ddpro.php:1128 Stack trace: #0 /home/senscoms/test.sens.com.sg/wp-includes/class-wp-hook.php(288): ddp_check_divi_global_templates(”) #1 /home/senscoms/test.sens.com.sg/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters(NULL, Array) #2 /home/senscoms/test.sens.com.sg/wp-includes/plugin.php(478): WP_Hook->do_action(Array) #3 /home/senscoms/test.sens.com.sg/wp-includes/general-template.php(2895): do_action(‘wp_footer’) #4 /home/senscoms/test.sens.com.sg/wp-content/themes/woffice/footer.php(86): wp_footer() #5 /home/senscoms/test.sens.com.sg/wp-includes/template.php(722): require_once(‘/home/senscoms/…’) #6 /home/senscoms/test.sens.com.sg/wp-includes/template.php(671): load_template(‘/home/senscoms/…’, true) #7 /home/senscoms/test.sens.com.sg/wp-includes/general-template.php(76): locate_template(Array, true) #8 /home/senscoms/test.sens.com.sg/wp-content/theme in /home/senscoms/test.sens.com.sg/wp-content/plugins/ddpro/ddpro.php on line 1128

    and

    Notice: Trying to get property ‘ID’ of non-object in /home/senscoms/test.sens.com.sg/wp-content/plugins/ddpro/ddpro.php on line 7384

    Notice: Trying to get property ‘ID’ of non-object in /home/senscoms/test.sens.com.sg/wp-content/plugins/ddpro/ddpro.php on line 7384

    Warning: in_array() expects parameter 2 to be array, bool given in /home/senscoms/test.sens.com.sg/wp-content/plugins/ddpro/ddpro.php on line 7384

    Notice: Trying to get property ‘ID’ of non-object in /home/senscoms/test.sens.com.sg/wp-content/plugins/ddpro/ddpro.php on line 7384

    Notice: Trying to get property ‘ID’ of non-object in /home/senscoms/test.sens.com.sg/wp-content/plugins/ddpro/ddpro.php on line 7384

    Warning: in_array() expects parameter 2 to be array, bool given in /home/senscoms/test.sens.com.sg/wp-content/plugins/ddpro/ddpro.php on line 7384

    – Do you still have errors if FDP is enabled and all plugins in the FDP settings are enabled (check also Archives and Custom URLs)?

    Yes. If DDPro is activated on certain pages, the errors will show up.

    – What does DDPro do? I haven’t found information about this plugin, is it a custom plugin that comes with the theme?

    No. DDPRo = Divi Den Pro. It is a plugin that is compatible with Divi theme from Elegant Themes, a page builder.
    I have 2 themes running on a single site and this is made possible by the plugin Multiple Themes. Reason being for the main theme I’m using (Woffice), it helps me build an intranet + extranet site. However, the design for pages is bad.
    Divi theme on the other hand, allows me to design beautiful pages. And DDPro enhances the capabilities of Divi a lot. Hence, for pages like homepage, landing page and other marketing pages/extranet pages/blog posts, I set these pages to Divi theme and DDPro is activated on these pages.
    For the rest of the intranet related pages, these pages are controlled by Woffice and I have to turn of DDPro on these pages as Woffice is in conflict with DDPro.
    I know it sounds confusing but I hope my explanation helps clear things up for you!

    – Have you disabled plugins on Freesoul Deactivate Plugins => Archives or Freesoul Deactivate Plugins => Custom URLs => Frontend URLs? You linked two archive pages, it doesn’t look they are single pages. On the page Project I see the body has the class “post-type-archive-project” so this is an archive page. On the page Events I see the body has the class “post-type-archive-woffice-event”, so this is an archive page too.

    Yes! In Frontend URLs, these are the URLs I’ve keyed in:
    https://test.sens.com.sg/groups/*
    https://test.sens.com.sg/project/*
    http://test.sens.com.sg/members/*
    https://test.sens.com.sg/wiki/*
    Should I include these URLs in Custom URLs => Backend URLs as well?

    And In FDP => Archives, DDPro is deactivated on all available archives which in this case are:
    1. Events Archive
    2. Forums Archive
    3. Topics Archive

    I don’t know if this is helpful to you but Wiki, Events, Projects are all bundled extensions with the Woffice theme.

    Plugin Author Jose

    (@giuse)

    Hi @calliesens

    thank you for the information.

    I think I need more information that better you don’t share here. If you write to me at info@josemortellaro.com, I will write you back asking what I need.

    Another option is you export your installation with e.g. All In One Wp Migration and you provide me the exported file link writing to my email. I suppose the server has nothing to do with this issue, so I could replicate the problem on my testing environment.

    Thread Starter calliesens

    (@calliesens)

    Hi @giuse , email sent! Thanks so much for your help. You’re awesome! 😀

    Thread Starter calliesens

    (@calliesens)

    Update: Problem has been fixed cos of Jose’s amazing patience and tenacity 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Plugin deactivated with FDP in settings but it does not work’ is closed to new replies.