BPS PHP Error Log. Errors/Alerts? What to do?

Home Forums BulletProof Security Pro BPS PHP Error Log. Errors/Alerts? What to do?

Viewing 15 posts - 1 through 15 (of 21 total)
  • Author
    Posts
  • #34521
    Josh
    Participant

    The WP Media Library is a complete joke. We can’t believe we’re having to pay for a plugin that allows us to create a logical folder structure to manage files within the WP Media Library.

    Solution:

    I installed a plugin… “Media Library Folders Pro” https://maxgalleria.com/downloads/media-library-plus-pro/  that allows us to actually create and organize a folder structure for images and documents. As soon as we installed this and started to create the folder structure we want, we noticed the BPS Pro PHP Error log gets filled with many entries for each folder created and also basic user and interaction within the plugin UI.

    Yes, I’ve read up on the Plugin Firewall doc’s and white listing and PHP Error trouble shooting docs. But these are not errors being logged and the plugin isn’t being blocked in carrying out its functions by BPS Pro. Nothing in the security logs anyways. It just appears like informational logging. Even pasting in an activation key and saving within their plugin UI generates a massive amount of logging.

    Our Observation and Question:

    The concern is… every tiny interaction within this plugin UI, mouse clicking on UI buttons/links, creating folders, uploading, moving, copying, deleting of files… creates massive amounts of log entries in the BPS PHP Error log page. We of-course want logging of errors but not this stuff. Looking in the BPS Pro S-Monitor page and looking at the README we don’t understand what is the best way to resolve this within BPS Pro.

    Example of log entries pasted below that we see when interacting with this plugin.

    Any suggestions are appreciated.

    Thanks,

    Josh

    ————BPS Pro Error Log Entries———————-

    [BPS Pro htaccess Protected Secure PHP Error Log]
    
    [08-Nov-2017 17:14:42 UTC] starting url: https://dunntownship.com/wp-content/uploads/docs
    [08-Nov-2017 17:15:26 UTC] folder location docs
    [08-Nov-2017 17:15:26 UTC] function create_new_folder
    [08-Nov-2017 17:15:26 UTC] starting url: https://dunntownship.com/wp-content/uploads/docs
    [08-Nov-2017 17:15:26 UTC] starting url: https://dunntownship.com/wp-content/uploads/docs
    [08-Nov-2017 17:15:33 UTC] starting url: https://dunntownship.com/wp-content/uploads/docs/meeting-minutes
    [08-Nov-2017 17:16:07 UTC] folder location docs/meeting-minutes
    [08-Nov-2017 17:16:07 UTC] function create_new_folder
    [08-Nov-2017 17:16:07 UTC] starting url: https://dunntownship.com/wp-content/uploads/docs/meeting-minutes
    [08-Nov-2017 17:16:08 UTC] starting url: https://dunntownship.com/wp-content/uploads/docs/meeting-minutes
    [08-Nov-2017 17:16:10 UTC] starting url: https://dunntownship.com/wp-content/uploads/docs/meeting-minutes
    [08-Nov-2017 17:16:19 UTC] folder location docs/meeting-minutes
    [08-Nov-2017 17:16:19 UTC] function create_new_folder
    [08-Nov-2017 17:16:19 UTC] starting url: https://dunntownship.com/wp-content/uploads/docs/meeting-minutes
    [08-Nov-2017 17:16:19 UTC] starting url: https://dunntownship.com/wp-content/uploads/docs/meeting-minutes
    [08-Nov-2017 17:16:27 UTC] folder location docs/meeting-minutes
    [08-Nov-2017 17:16:27 UTC] function create_new_folder
    [08-Nov-2017 17:16:27 UTC] starting url: https://dunntownship.com/wp-content/uploads/docs/meeting-minutes
    [08-Nov-2017 17:16:27 UTC] starting url: https://dunntownship.com/wp-content/uploads/docs/meeting-minutes
    [08-Nov-2017 17:16:35 UTC] folder location docs/meeting-minutes
    [08-Nov-2017 17:16:35 UTC] function create_new_folder
    [08-Nov-2017 17:16:35 UTC] starting url: https://dunntownship.com/wp-content/uploads/docs/meeting-minutes
    [08-Nov-2017 17:16:36 UTC] starting url: https://dunntownship.com/wp-content/uploads/docs/meeting-minutes
    [08-Nov-2017 17:17:13 UTC] folder location docs/meeting-minutes
    [08-Nov-2017 17:17:13 UTC] function create_new_folder
    [08-Nov-2017 17:17:13 UTC] starting url: https://dunntownship.com/wp-content/uploads/docs/meeting-minutes
    [08-Nov-2017 17:17:13 UTC] starting url: https://dunntownship.com/wp-content/uploads/docs/meeting-minutes
    [08-Nov-2017 17:17:35 UTC] starting url: https://dunntownship.com/wp-content/uploads/2017/09
    [08-Nov-2017 17:18:46 UTC] starting url: https://dunntownship.com/wp-content/uploads/
    [08-Nov-2017 17:18:52 UTC] starting url: https://dunntownship.com/wp-content/uploads/2017
    [08-Nov-2017 17:19:23 UTC] starting url: https://dunntownship.com/wp-content/uploads/2017/10
    [08-Nov-2017 17:19:32 UTC] starting url: https://dunntownship.com/wp-content/uploads/2017/11
    [08-Nov-2017 17:19:53 UTC] starting url: https://dunntownship.com/wp-content/uploads/images
    [08-Nov-2017 17:19:58 UTC] starting url: https://dunntownship.com/wp-content/uploads/2017/11
    [08-Nov-2017 17:20:07 UTC] starting url: https://dunntownship.com/wp-content/uploads/images
    [08-Nov-2017 17:20:07 UTC] starting url: https://dunntownship.com/wp-content/uploads/2017/11/cropped-favicon.png
    [08-Nov-2017 17:20:07 UTC] starting url: /home/cpaneluser/public_html/wp-content/uploads/images
    [08-Nov-2017 17:20:09 UTC] starting url: https://dunntownship.com/wp-content/uploads/images
    [08-Nov-2017 17:20:09 UTC] starting url: https://dunntownship.com/wp-content/uploads/2017/11/favicon.png
    [08-Nov-2017 17:20:09 UTC] starting url: /home/cpaneluser/public_html/wp-content/uploads/images
    [08-Nov-2017 17:21:25 UTC] starting url: https://dunntownship.com/wp-content/uploads/images
    [08-Nov-2017 17:21:40 UTC] starting url: https://dunntownship.com/wp-content/uploads/
    [08-Nov-2017 17:21:55 UTC] starting url: https://dunntownship.com/wp-content/uploads/
    [08-Nov-2017 17:22:44 UTC] starting url: https://dunntownship.com/wp-content/uploads/images/cropped-favicon.png
    [08-Nov-2017 17:24:05 UTC] starting url: https://dunntownship.com/wp-content/uploads/2017/11
    [08-Nov-2017 17:24:07 UTC] starting url: https://dunntownship.com/wp-content/uploads/2017/10
    [08-Nov-2017 17:24:09 UTC] starting url: https://dunntownship.com/wp-content/uploads/2017/09
    [08-Nov-2017 17:24:15 UTC] starting url: https://dunntownship.com/wp-content/uploads/images
    #34522
    AITpro Admin
    Keymaster

    Seems like maybe BPS Pro UAEG may be issue here. Try doing BPS Pro troubleshooting step #4 > https://forum.ait-pro.com/forums/topic/read-me-first-pro/#bps-pro-general-troubleshooting.  Let me know if you still continue to see these php errors or not.

    #34523
    Josh
    Participant

    Thanks for your help.

    Step 4? I’m assuming you’re referring to “Deactivating UAEG”?
    Results of deactivating UAEG: After deactivating I created a couple more folders using the MLF Pro plugin. It’s still logging entries in the BPS PHP Error log.

    After the above test I reactivated UAEG.

    By the way, you don’t need to have the pro version of this plugin installed to replicate what I’m reporting. The FREE version of this plugin will do (should do) the same exact thing in BPS. https://wordpress.org/plugins/media-library-plus/

    The plugin download/install actually comes with 2 plugins. The first one, once activated, allows you to use the plugin to do the normal creating of folders, moving/copying files into those folders.. etc.. etc… <<< Basically just DB remapping magic as I’m sure you’re aware. Once your done creating a few folders for testing, you deactivate this plugin and then activate the other plugin installed with the main one. It’s entitled “MLF Pro Reset”. <<< This will undo the virtual path mappings and reset all image/doc’s path mappings in posts/pages back to WP’s stock original locations like nothing ever happened.

    Thanks,
    Josh

    #34524
    AITpro Admin
    Keymaster

    So does that plugin create an htaccess file in the WP /uploads/ folder or it is doing some sort internal rewriting/redirection?

    #34525
    Josh
    Participant

    I can confirm, installing the latest release of the “FREE” version of the MLF plugin (linked to previously), has the same behavior explained in the initial posting.

    As well, following Step 4 advice – “On the Security Modes page, click the UAEG BulletProof Mode Deactivate button.” BPS Pro “PHP Error page” shows logs are still generated. IMO, these log entries are not “actual” error log entries. Obviously I don’t know that for sure, so I digress.

    Not really sure what to do at this point. Any ideas?

    Thanks,

    Josh

    #34526
    AITpro Admin
    Keymaster

    Ok send me an Admin login email to this site so I can figure out what is going on:  info at ait-pro dot com.

    #34527
    Josh
    Participant

    The .htaccess file in /uploads dir is the one BPS Pro created.

    To be honest, I’m a little confused about how WP works in regards to files/docs, images… how these are stored and mapped. In all other CMS’s that I’ve worked with, I can manually create any folder structure I want to through cpanel and it works just fine. Not in WP.

    The plugin author of MFL Pro said this to me:

    The WordPress Media Library is not a file manager but a database. It only show what is in the database, not the contents of your uploads folder. But with Media Library Folders you are able to sync the contents of a single folder with the Media Library database.

    I will send you the login info when I get back to my computer. Thanks for all your help. Much appreciated.

    Josh

    #34528
    AITpro Admin
    Keymaster

    Cool yep, if the problem is not related to BPS Pro then I can at least let you know what is going on and how to logically move forward. 😉

    #34529
    Josh
    Participant

    Email with login info sent.

     

    Thanks,

    Josh

    #34530
    AITpro Admin
    Keymaster

    The code causing the php errors is this code > BPS Pro > Pro Tools > String|Function Finder tool.  the code at code line 2247 in the file below is generating a “generic” php error in probably not the best method to use 🙂  So it makes me question the validity of the php error(s) itself and would need to know if something is actually working/not working etc.  ie is there some sort of actual problem occurring.  I don’t seem to see an exact problem stated in your previous forum posts.

    /home/xxxxx/public_html/wp-content/plugins/media-library-plus-pro/maxgalleria-media-library.php, line 2247
    error_log("starting url: $url");
    #34531
    AITpro Admin
    Keymaster

    So rereading your previous posts makes me think that the MLS plugin is just generating a lot of excessive nuisance types of php errors.  It does not really appear that any sort of actual problem/error is occurring.

    #34532
    Josh
    Participant

    So rereading your previous posts makes me think that the MLS plugin is just generating a lot of excessive nuisance types of php errors.  It does not really appear that any sort of actual problem/error is occurring.

    Correct. Basically my point is the the log entries are useless. I would rather not see log entries that are telling me nothing useful.

    2 Issues:
    1> The log entries in BPS PHP Error log, don’t appear to be errors. If BPS isn’t stopping the plugin from working, then I obviously don’t need to see log entries that basically echo what I just did in the MFL plugin.

    2> The other issue is the amount of log entries and having to admin the BPS PHP Error log constantly. Constantly having to Turn off BPS notice windows causes you to constantly jump through deleting logs and resetting db time to clear out the notice window in the WP dashboard. This get’s extremely annoying having to constantly do these steps, especially when their doesn’t appear to be a problem to begin with. So if there isn’t a problem, then why log entries??? <<< That’s the point’s I’m trying to make.

    And please don’t take this the wrong way… Just trying to figure out how to suppress these log entries.

    Again… thanks for your time and help. I’m constantly learning something new with BPS and love how it’s constantly on the lookout stamping out bad intentions from other parties/bots. 🙂

    Josh

    #34533
    AITpro Admin
    Keymaster

    Yeah I was trying to be politically correct with how the MLS plugin is generating/creating php errors, but honestly how the MLS plugin is doing what it is doing is not a standard way to log php errors. Usually you want to handle php error logging in a debugger, which is going to be isolated to any specific errors in the X plugin or Y relevant conditions or you can use ini_set or add a php.ini or .user.ini config thing.

    The problem itself is how the MLS plugin is incorrectly handling php error logging. 😉

    Let the MLS plugin author know about this issue, this is something that needs to be corrected in that plugin.

    #34536
    Josh
    Participant

    Right on. Thanks. I will contact him and let him know.

     

    Thanks for all the usefull info.

    Will come back to this thread and share any solutions from the plugin author. Have a great night man.

     

    Josh

    #34537
    AITpro Admin
    Keymaster

    Yep,  let me know if there are any other issues.  If you refer the MLS plugin author to this forum topic then be sure to let him/her know that we have (accidentally) created plenty of bugs along the road with BPS and BPS Pro and hopefully found/fixed all of our bugs in our plugins – just kind of goes with the territory.  😉

Viewing 15 posts - 1 through 15 (of 21 total)
  • You must be logged in to reply to this topic.