Check Files plugin table breaking the theme Check Files plugin table breaking the theme
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Check Files plugin table breaking the theme

Started by Sweetener, November 30, 2019, 01:13:48 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Sweetener

Hi, so basically this plugin when it shows the options to see the last results it puts the table before the </body> tag and breaks the theme. The first picture (1.png) is how it looks, and the second picture (2.png) is the fixed vers with inspect element. Is there anyway to fix this or nah?

ron4mac

If you don't see the same behavior with another theme (curve), the issue is likely with your theme, not with the plugin.

Sweetener

Quote from: ron4mac on November 30, 2019, 03:23:11 AM
If you don't see the same behavior with another theme (curve), the issue is likely with your theme, not with the plugin.

I tried with all curve and I got the same problem

Sweetener

I fixed it, I there was a missing endtable();


So you have to find this in missing_files.php and additional_files.php
EOT;
    pagefooter();
    die();
}


and add the mising endtable();

EOT;
    endtable();
    pagefooter();
    die();
}

ron4mac

Thanks for your effort in finding that.  I see no need for the die() statement so I am removing that and will post the updated plugin to the 1.6 plugins area.

Just so you know, this plugin is not effective in guarding your site against hacking. For that, you need something that checks all files for modifications or additions. I use a PHP script (not connected to CPG) to do that. It can be used with a cron job to check your installation and email you the findings. If interested, I can post that here.