Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

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

0 Members and 1 Guest are viewing this topic.

Sweetener

  • Coppermine regular visitor
  • **
  • Country: 00
  • Offline Offline
  • Posts: 54
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

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Posts: 1363
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

  • Coppermine regular visitor
  • **
  • Country: 00
  • Offline Offline
  • Posts: 54
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

  • Coppermine regular visitor
  • **
  • Country: 00
  • Offline Offline
  • Posts: 54
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

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Posts: 1363
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.033 seconds with 22 queries.