• Resolved Elliot

    (@mladja11)


    Hello there,

    I have noticed that all versions after 4.4.12 are causing some problems with WP All Import and Export cron jobs.

    So, basically, those scheduled tasks are never triggered and executed. If you run them manually, by opening cron triggers in a browser, it works good and it finishes the job.

    I had to roll back the plugin to the version 4.4.12. and now, everything works like it is supposed to.

    Why this is happening? What is the big change?

    If you want to test this, WP All Impoort provides sanboxes here: https://www.wpallimport.com/try/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Contributor Prashant Baldha

    (@pmbaldha)

    Kindly accept apologies from my side for your inconvenience.

    Do you have the rename login page feature enabled in Admin Dashboard > WP Security > Brute Force > User Login > Rename Login Page (first tab)? This feature was preventing us from running PHP scripts from a command line and we have fixed it in AIOS 5.0.3.

    I tried the WP All Import sandbox, but I’m not sure how to check cronjobs there:)

    You can check the complete changelog of new AIOS plugin version on the https://www.ads-software.com/plugins/all-in-one-wp-security-and-firewall/#developers

    I am very sorry again.

    Thread Starter Elliot

    (@mladja11)

    Hi,

    Thanks for getting back.

    I’ ve already read all that in the changelog, but it does not ring any bells.

    And yes, I am using rename login page, but I have no idea how that can affect cronjobs.

    Yes. You can not test cronjobs outside of your server. I missed that… Maybe you can duplicate somehow a WP All Import sandbox on your server and then test there.

    I do not know how I can help here…

    Plugin Author David Anderson

    (@davidanderson)

    Speaking as someone who’s contributed code to the WP Cron subsystem in WP core, and studied it extensively, these are very odd symptoms. When AIOS 5.0 is active, if you install the (free, from www.ads-software.com) plugin WP Crontrol, and go to the list of cron jobs in the “Tools” sub-menu in your WP dashboard, do the jobs for the All Import plugin still show there, i.e. are they still listed?

    Do you have any errors from the time that those jobs should run in your PHP error logs? (If you’re not sure where they live on your hosting company’s setup, please ask your hosting company where to find them).

    What are the direct symptoms being experienced – just that the jobs don’t run? How is that detected – there’s a notice somewhere saying they’re overdue, or something else? (I’m not familiar with that plugin).

    Thread Starter Elliot

    (@mladja11)

    I have already done all that research. Cron Jobs are triggering on the server side. I have talked to server engineers there and they confirmed. Also, no PHP errors are recorded.

    Yes. Those crons have just never triggered on the app level. You can see when that was executed in the WP All import logs. It says something like:

    “Last run: 09/03/2022 9:19 pm
    0 Products created
    115 updated, 11568 skipped, 0 deleted”

    But, I saw that last run was a day ago, or so. That is not normal, cos this process is scheduled for running every hour. That is the point when I noticed that something is wrong and I started debugging.

    And when I rolled back your plugin, everything went back to normal.

    Plugin Contributor Prashant Baldha

    (@pmbaldha)

    @mladja11
    Can you please try the cronjob after upgrading the AIOS plugin to version 5.0.4 and let me know what will happen on your end? There was a code mess that prevent the PHP script to run from the command line. We have resolved it in AIOS 5.0.3.

    Plugin Contributor Prashant Baldha

    (@pmbaldha)

    If you are facing the issue, please follow the below instructions:

    Before running cronjob:
    * If the aios-firewall.php file exists in the root folder, please add two code lines after <?php.
    If the aios-firewall.php file doesn’t exist, add below two code lines in the wp-config.php before /* That’s all, stop editing! Happy publishing. */

    
    define('AIOS_FIREWALL_DEBUG', true);
    define('AIOS_FIREWALL_SERVER_DUMP', true);
    

    After running cronjob:
    * Give us a PHP error log after running cronjob.

    You should send this log report privately to me because it contains a $_SERVER global variable. Join WordPress Slack at https://make.www.ads-software.com/chat/ and send me a direct message there by finding my name in members. After sending DM to me in slack, please write here so I can follow up.

    Thank you

    Thread Starter Elliot

    (@mladja11)

    Hi @pmbaldha,

    Thanks for getting back and sorry for the delay.

    Yes, this problem occurs even on the latest version. I have it installed on few websites.

    I do not have aios-firewall.php.

    OK I will send you what I am getting in the error logs.

    I also have a staging website, so, I will give you full access there, so you can play.

    Thanks for the help.

    • This reply was modified 2 years, 2 months ago by Elliot.
    Plugin Contributor Prashant Baldha

    (@pmbaldha)

    We are debugging the issue. As soon as possible, we will release the patched plugin version to resolve it.

    Plugin Contributor Prashant Baldha

    (@pmbaldha)

    We have released AIOS 5.0.6 version and the issue has been resolved in it. Please update the AIOS plugin to AIOS 5.0.6 version.

    Thread Starter Elliot

    (@mladja11)

    Great! Thanks a lot.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Stops cron jobs in WP All Import and Export’ is closed to new replies.