How To Troubleshoot PHP Errors, php errors in your php error log

Home Forums BulletProof Security Pro How To Troubleshoot PHP Errors, php errors in your php error log

This topic contains 226 replies, has 38 voices, and was last updated by  AITpro Admin 1 year, 6 months ago.

Viewing 15 posts - 196 through 210 (of 227 total)
  • Author
    Posts
  • #33788

    Living Miracles
    Participant

    Hi,

    I’ve been trying to do a couple of things to resolve the ARQ Pending message on one of my GDMWP sites. I’ve tried running the wizards but they don’t complete. I’ve also tried backing up all the files in ARQ but the wp-content file backup won’t complete. I’m seeing this in the PHP error log:

    [05-Aug-2017 02:56:35 UTC] PHP Fatal error: Uncaught exception 'UnexpectedValueException' with message 'RecursiveDirectoryIterator::__construct(/home/content/a2pewpnas01_data06/10/4114210/html/wp-content/languages): failed to open dir: Permission denied' in /home/content/a2pewpnas01_data06/10/4114210/html/wp-content/plugins/bulletproof-security/includes/arq-cron.php:314
    Stack trace:
    #0 /home/content/a2pewpnas01_data06/10/4114210/html/wp-content/plugins/bulletproof-security/includes/arq-cron.php(314): RecursiveDirectoryIterator->__construct('/home/content/a...')
    #1 /home/content/a2pewpnas01_data06/10/4114210/html/wp-content/plugins/bulletproof-security/includes/arq-cron.php(257): bpsPro_recursive_copy_languages(NULL, NULL)
    #2 [internal function]: bpsPro_ARQ_upgrader_FailSafe_check()
    #3 /home/content/a2pewpnas01_data06/10/4114210/html/wp-includes/class-wp-hook.php(298): call_user_func_array('bpsPro_ARQ_upgr...', Array)
    #4 /home/content/a2pewpnas01_data06/10/4114210/html/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters('', Array)
    #5 /home/conten in /home/content/a2pewpnas01_data06/10/4114210/html/wp-content/plugins/bulletproof-security/includes/arq-cron.php on line 314

    Any idea what could be going on here?

    Thank you so much!

    #33789

    AITpro Admin
    Keymaster

    @ Living Miracles – The php error means that BPS Pro is denied permission to open the /wp-content/languages/ folder.  Either the folder permissions are set too restrictive or this is another new Go Daddy Managed WordPress Hosting restriction (Go Daddy Managed WordPress hosting is a special type of Go Daddy hosting account and is not standard Go Daddy Hosting).  The /languages/ folder permissions should be either 755 or 705.  If this is a new GDMW restriction then you can try creating an AutoRestore wp-content folder exclude rule for the /languages/ folder or just ignore the error.

    AutoRestore|Quarantine steps for creating wp-content folder and single file exclude rules
    http://forum.ait-pro.com/forums/topic/autorestore-quarantine-guide-read-me-first/#autorestore-exclude-rules

    #33792

    Living Miracles
    Participant

    Thanks! Again, very odd. I couldn’t see anything wrong with the permissions of the languages folder and also couldn’t change the permissions via FTP or even enter the folder… also couldn’t delete. Had to go in via SSH and remove the folder that way. ARQ is working as expected again.

    #33801

    Living Miracles
    Participant

    Hi,

    I’ve noticed some interesting PHP errors on 3 SiteGround-hosted sites. I’m wondering if you can help troubleshoot or point me in the right direction.

    acim.biz
    On this site, I’m getting repeated errors like these:

    [07-Aug-2017 03:00:03 UTC] PHP Warning: filesize(): stat failed for /home/server/acim.biz/httpdocs/wp-content/debug.log in /home/server/acim.biz/httpdocs/wp-content/plugins/bulletproof-security/includes/arq-cron.php on line 1941
    [07-Aug-2017 03:00:03 UTC] PHP Warning: filesize(): stat failed for /home/server/acim.biz/httpdocs/wp-content/bps-backup/autorestore/added-files/Jul-28-2017--20-04-46--debug.log in /home/server/acim.biz/httpdocs/wp-content/plugins/bulletproof-security/includes/arq-cron.php on line 1942
    [07-Aug-2017 03:02:02 UTC] PHP Warning: filesize(): stat failed for /home/server/acim.biz/httpdocs/wp-content/debug.log in /home/server/acim.biz/httpdocs/wp-content/plugins/bulletproof-security/includes/arq-cron.php on line 1941
    [07-Aug-2017 03:02:02 UTC] PHP Warning: filesize(): stat failed for /home/server/acim.biz/httpdocs/wp-content/bps-backup/autorestore/added-files/Jul-28-2017--20-04-46--debug.log in /home/server/acim.biz/httpdocs/wp-content/plugins/bulletproof-security/includes/arq-cron.php on line 1942

    I thought maybe it had to do something with excluding the debug.log file from ARQ at one point when I was doing some troubleshooting, so I just added the file back to ARQ, and then I got the following error:

    [07-Aug-2017 03:05:59 UTC] PHP Warning: copy(/home/server/acim.biz/httpdocs/wp-content/debug.log): failed to open stream: No such file or directory in /home/server/acim.biz/httpdocs/wp-content/plugins/bulletproof-security/admin/autorestore/autorestore.php on line 1673

    After that, I got more PHP errors like these:

    [07-Aug-2017 03:05:59 UTC] PHP Warning: copy(/home/server/acim.biz/httpdocs/wp-content/debug.log): failed to open stream: No such file or directory in /home/server/acim.biz/httpdocs/wp-content/plugins/bulletproof-security/admin/autorestore/autorestore.php on line 1673
    [07-Aug-2017 03:10:04 UTC] PHP Warning: filesize(): stat failed for /home/server/acim.biz/httpdocs/wp-content/debug.log in /home/server/acim.biz/httpdocs/wp-content/plugins/bulletproof-security/includes/arq-cron.php on line 1941
    [07-Aug-2017 03:10:04 UTC] PHP Warning: filesize(): stat failed for /home/server/acim.biz/httpdocs/wp-content/bps-backup/autorestore/added-files/Jul-28-2017--20-04-46--debug.log in /home/server/acim.biz/httpdocs/wp-content/plugins/bulletproof-security/includes/arq-cron.php on line 1942
    [07-Aug-2017 03:10:04 UTC] PHP Warning: filesize(): stat failed for /home/server/acim.biz/httpdocs/wp-content/debug.log in /home/server/acim.biz/httpdocs/wp-content/plugins/bulletproof-security/includes/arq-cron.php on line 1941
    [07-Aug-2017 03:10:04 UTC] PHP Warning: filesize(): stat failed for /home/server/acim.biz/httpdocs/wp-content/bps-backup/autorestore/added-files/Aug-07-2017--03-05-59--debug.log in /home/server/acim.biz/httpdocs/wp-content/plugins/bulletproof-security/includes/arq-cron.php on line 1942

    Any idea what else I can do here?

    acim.me
    On this and the site below (awakening-mind.org), I’m getting hundreds of the following errors every day:

    [07-Aug-2017 02:00:30 UTC] PHP Notice: Undefined variable: _SERVER in /home/server/awakening-mind.org/public_html/wp-includes/load.php on line 63
    [07-Aug-2017 02:00:30 UTC] PHP Warning: array_merge(): Argument #2 is not an array in /home/server/awakening-mind.org/public_html/wp-includes/load.php on line 63
    [07-Aug-2017 02:00:30 UTC] PHP Notice: Undefined index: REQUEST_URI in /home/server/awakening-mind.org/public_html/wp-includes/load.php on line 153

    awakening-mind.org

    [02-Aug-2017 10:32:21 UTC] PHP Notice: Undefined variable: _SERVER in /home/server/acim.me/public_html/wp-includes/load.php on line 63
    [02-Aug-2017 10:32:21 UTC] PHP Warning: array_merge(): Argument #2 is not an array in /home/server/acim.me/public_html/wp-includes/load.php on line 63
    [02-Aug-2017 10:32:21 UTC] PHP Notice: Undefined index: REQUEST_URI in /home/server/acim.me/public_html/wp-includes/load.php on line 153

    Any thoughts you can provide about these is super appreciated!

    Thank you!
    Jutta

    #33803

    AITpro Admin
    Keymaster

    @ Living Miracles – The php errors related to the BPS AutoRestore are most likely caused by using the AutoRestore Add Folders & Files tool incorrectly.  Use the Remove Added Folders|Files Search tool and remove/delete all of the folders/files you have added.  Then click the Add|Exclude Other Folders & Files Read Me help button for the correct usage for the Add Folders & Files tool.  I’m not sure what the other php errors mean since the errors are very general and do not appear to be related to BPS.

    #33812

    Living Miracles
    Participant

    Thank you so much! I think, with your instructions, I fixed the errors on acim.biz 🙂 Haven’t seen any more of them since then.

    Regarding the others: Thank you. I’ll see if I can get some suggestions from our hosting and other sources.

    #33813

    Living Miracles
    Participant

    Can you tell me if the BPS Pro PHP Error Log logs errors/notices/warnings differently from a standard debug.log? I just notice that, if I enable debug logging via the wp-config.php file, I don’t get the same errors/notices/warnings as I do in the BPS Pro PHP Error log. I.e., the above errors for acim.me and awakening-mind.org don’t show up in the debug.log file.

    In the debug.log file I’m getting now the following:

    [07-Aug-2017 16:50:02 UTC] PHP Notice:  Undefined index: HTTP_HOST in /home/miracle6/awakening-mind.org/public_html/wp-content/plugins/bulletproof-security/includes/firewall-autopilot.php on line 485
    [07-Aug-2017 16:50:02 UTC] PHP Notice:  Undefined variable: public_ip in /home/miracle6/awakening-mind.org/public_html/wp-content/plugins/bulletproof-security/includes/firewall-autopilot.php on line 942
    #33815

    AITpro Admin
    Keymaster

    WordPress WP_DEBUG checks for very minor issues such as “PHP Notice: Undefined” issues.  The php errors are insignificant and can be ignored.  Important Note:  WP_DEBUG should only be used during debugging and should not be turned On permanently.  Your website performance will be negatively impacted if you leave WP_DEBUG turned On permanently.

    #33816

    Living Miracles
    Participant

    Thank you for explaining!

    #33818

    Living Miracles
    Participant

    Hi again,

    I want to inquire about another PHP error that I see repeatedly on our WordPress multi-site. It looks like this:

    [07-Aug-2017 02:00:21 UTC] WordPress database error Table 'IAmOneNet.t967be_62_bpspro_db_backup' doesn't exist for query SELECT * FROM t967be_62_bpspro_db_backup WHERE bps_job_type = 'Scheduled' made by do_action_ref_array, WP_Hook->do_action, WP_Hook->apply_filters, bpsPro_DBB_processing

    Would you happen to know what that means? Looks like it has something to with our database backups, potentially?

    Thank you so much!

    #33819

    AITpro Admin
    Keymaster

    @ Living Miracles – That php error means that this database table does not exist:  t967be_62_bpspro_db_backup for the database Query that is being submitted.  Try deleting that scheduled backup job and creating a new backup job.

    #33820

    Living Miracles
    Participant

    Ah, yes! Thank you. I deleted all DB Backup jobs and the db backup folder in /wp-content/bps-backup via FTP. So far, the errors haven’t returned. Thanks so much, as always, for the swift and helpful response!

    #33821

    Living Miracles
    Participant

    Actually, I just checked again, but the same error is still occurring.

    [07-Aug-2017 22:01:10 UTC] WordPress database error Table 'IAmOneNet.t967be_62_bpspro_db_backup' doesn't exist for query SELECT * FROM t967be_62_bpspro_db_backup WHERE bps_job_type = 'Scheduled' made by do_action_ref_array, WP_Hook->do_action, WP_Hook->apply_filters, bpsPro_DBB_processing
    #33823

    AITpro Admin
    Keymaster

    @ Living Miracles – Logical guesses would be that there is something wrong with database table:  t967be_62_bpspro_db_backup or since this is a Network/Multisite site then you may have reached the max limitation of DB Backup.  A “Limit” is set in the DB Backup Query so that it is not overloaded and crashes.  If you are attempting to backup your entire Network/Multisite site including all subsites in 1 database backup job then that would be a recipe for disaster.  Try creating a test manual backup job for just subsite 62 and not any other subsites.  Run the manual backup job for subsite 62 and see if it works or not.  If the manual backup job does not work for subsite 62 then 1 or more database tables are damaged for subsite 62.

    Note:  The best thing about Network/Multisite sites is that all database tables for other subsites are contained in 1 database. The worst thing about Network/Multisite sites is that all database tables for other subsites are contained in 1 database. 😉

    #33826

    Living Miracles
    Participant

    Haha, yes. I guess that’s true!

    Question though, how do I make a database backup for just one site?

Viewing 15 posts - 196 through 210 (of 227 total)

You must be logged in to reply to this topic.