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.