Advanced search  

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

Pages: [1]   Go Down

Author Topic: Check Files plugin table breaking the theme  (Read 6736 times)

0 Members and 1 Guest are viewing this topic.

Sweetener

  • Contributor
  • Coppermine regular visitor
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 64
Check Files plugin table breaking the theme
« on: November 30, 2019, 01:13:48 am »

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

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 2026
Re: Check Files plugin table breaking the theme
« Reply #1 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.
Logged

Sweetener

  • Contributor
  • Coppermine regular visitor
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 64
Re: Check Files plugin table breaking the theme
« Reply #2 on: November 30, 2019, 03:27:18 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

  • Contributor
  • Coppermine regular visitor
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 64
Re: Check Files plugin table breaking the theme
« Reply #3 on: November 30, 2019, 01:01:32 pm »

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


So you have to find this in missing_files.php and additional_files.php
Code: [Select]
EOT;
    pagefooter();
    die();
}

and add the mising endtable();

Code: [Select]
EOT;
    endtable();
    pagefooter();
    die();
}

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 2026
Re: Check Files plugin table breaking the theme
« Reply #4 on: November 30, 2019, 02:19:18 pm »

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.
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.