XjmoVSB1vScHzW
Forum Replies Created
-
Forum: Plugins
In reply to: [JetBackup - WP Backup, Migrate & Restore] Cron Job ScriptingI just redownloaded the plugin to verify the problem was the original plugin and it is.
The problem with this plugin is so much bigger than “cron not working”, it completely breaks all wordpress cron jobs.
The fixes are below, answering the original question:
Newest wordpress versions don’t seem to need the cronjob tasks, but it might depend on several factors so if you need it you can add the task like this:wget -q -O - https://yourwebsite.com/wp-cron.php?doing_wp_cron >/dev/null 2>&1
More info here:
https://wpdailybits.com/blog/replace-wordpress-cron-with-real-cron-job/74Fixes:
For me this had happened 2 times already, so I post the 2 fixes, hopefully it can help anyone:first one is probably related to include paths or something, from:
// Load helper functions require_once( 'functions.php' );
to:
// Load helper functions require_once( dirname(__FILE__) . '/functions.php' );
second one, I didn’t get this problem until after several months after the first one, probably related to the backup being processed right now and taking a while, from:
if ( get_transient( 'backup_lock' ) ) exit; // Exit if another backup process is running.
to:
if ( get_transient( 'backup_lock' ) ) return false; // Exit if another backup process is running.
I improved and retested my second method, it is really ugly but it does the job.
Solution:
save the cart array, empty the cart, add my item, save my info, empty the cart, cycle thru the saved array to add the items back to the cart. I think the order of the parameters is different (array vs add function) and I didn’t notice the first time I tried this method, that’s why it failed for me.Now my ajax call to the function that does this is working perfectly but the same function called on a product page only returns 1 shipping method.
I guess this is the wordpress style, take hours to solve 1 tiny problem, then wordpress will repay you with a quirk/bug that you have to track over 50% or more of your plugin files.
Forum: Plugins
In reply to: [Lightbox Plus Colorbox] Only fails on IE 8Exact same problem and JS line/char with custom inline content, I already tried the reset, it didn’t help.