d.rock
Forum Replies Created
-
Forum: Plugins
In reply to: [Fast Secure Contact Form] Notify myself by email without sending form dataGreat, thanks, I’ll give it a go!
Thanks for the updates David. I have tried the latest version 1.4.29 on both the site you looked at, and just recently on a new site (hosted on the same server) but the same issue exists on both – just one line in the log and that’s it. Tried normal backup and debug full backup, same thing!
This might sound naive, but how come the issue only affects some servers if the bug exists in PHP? Another thing both my sites have in common is themes from elegantthemes.com – I assume however you have other users successfully using your plugin with these themes?
It’s such a pity because I haven’t come across another backup plugin that seems as full-featured as this one.
Not sure exactly what I should do with the PHP tracker – what information do I need to post there?
OK, found the source of the remaining error – another backup plugin, ‘WordPress Databse backup’ – and I removed the plugin completely.
Same thing happening with UpDraft.
PHP version is 5.3.21
I will send you an email David, thanks.
Thanks David.
So I:
Uninstalled the plugin and then manually installed 1.4.9 (clicking update didn’t work correctly – it kept downloading and installing the 1.4.7 package instead of 1.4.9)
Deactivated all other plugins
Tried running a backup using both methods – same thing as before, just one line in the log.
Then I added the code for the WP_DEBUG setting that you posted, and now the top of every page displays this error multiple times:
Notice: add_option was called with an argument that is deprecated since version 2.3 with no alternative available. in XXXX/wp-includes/functions.php on line 2925
as well as a similar one referring to has_cap
It also displays the first error three times after ‘Last backup log message’ on the Updraft settings page. It still shows the last log open time right underneath.
When I deactivate all the plugins, the error messages no longer appear. But if I then activate only UpDraft and try to run a backup, the same thing happens – one line in log – but there are no error messages.
Does this help provide any more clues??
edit:
All of the errors except one disappeared when I de-activated ‘Official StatCounter Plugin’ – might have to put the StatCounter code in manually instead…
Now I only have
Notice: add_contextual_help is deprecated since version 3.3! Use get_current_screen()->add_help_tab() instead. in XXXX/wp-includes/functions.php on line 2839
and I will keep deactivating plugins until I work out which one is causing it.
PS. I did also try running the backup after clearing space on the server BEFORE I added the lines of code above, and the result was the same as in my first post – just the single line in the log file and nothing else.
Thanks David for your fast response.
I checked the available space on my server and it was quite full, but I was able to clear most of it as it was taken up by old emails (which I no longer use that server for), so there is now many times more space available than used by the site.
But now it only seems to get weirder…
I added the lines of code you suggested and then attempted to run the backup again. Now, using either ‘Backup now’ or ‘Full debug backup’, the log file is created but is 0 bytes and has NO entries at all! No PHP errors are thrown. Here is the modified code:
function logfile_open($nonce) { //set log file name and open log file $updraft_dir = $this->backups_dir_location(); $this->logfile_name = $updraft_dir. "/log.$nonce.txt"; // Use append mode in case it already exists $this->logfile_handle = fopen($this->logfile_name, 'a'); $this->opened_log_time = microtime(true); $this->log("Opened log file at time: ".date('r')); $this->log("I am here! 1"); $this->log("I am here! 2"); $this->log("I am here! 3"); $this->log("I am here! 4"); $this->log("I am here! 5"); global $wp_version; $logline = "UpdraftPlus: ".$this->version." WordPress: ".$wp_version." PHP: ".phpversion()." (".@php_uname().") PHP Max Execution Time: ".@ini_get("max_execution_time")." ZipArchive::addFile exists: "; $logline .= (method_exists('ZipArchive', 'addFile')) ? "Y" : "N"; $this->log($logline); } # Logs the given line, adding (relative) time stamp and newline function log($line) { $this->log("I am here! function log 1"); if ($this->logfile_handle) fwrite($this->logfile_handle, sprintf("%08.03f", round(microtime(true)-$this->opened_log_time, 3))." ".$line."\n"); UpdraftPlus_Options::update_updraft_option("updraft_lastmessage", $line." (".date('M d H:i:s').")"); }
I don’t seem to have access to the PHP error log – would it normally be in the server root (I’m on shared hosting)? I know the host admin so I may be able to get the error log from him if necessary.