• Greetings!

    Is there any way to run this manually without WP-CLI?

    I’m asking because my host is being very unhelpful diagnosing why wp-cron can’t be called normally (I’ve run out of possibilities to check) – I’m having to use a cPanel task to do so. The task is fine, however, that doesn’t help with this plugin and trying to use it.

    Thanks!

    Sincerely,

    //s// Jon C. Munson II

Viewing 4 replies - 1 through 4 (of 4 total)
  • Absolutely!

    This plugin is just a shell around the PHPCS PHPCompatibility standard. The plugin does have a whitelist, but other than that, you should get the same results if you just run PHP CodeSniffer (PHPCS) over the code using PHPCompatibility as the standard.

    Simplest is probably to run it over a local copy of the site. Alternatively you would need to install both PHPCS as well as PHPCompatibility on your webserver and run the command over SSH on the command line.

    You can find the information you need for installing PHPCS and PHPCompatibility here:
    https://github.com/wimg/PHPCompatibility/blob/master/README.md

    Make sure you set the testVersion when you run the command as otherwise your results may not be as reliable as you’d like:
    https://github.com/wimg/PHPCompatibility/blob/master/README.md#using-the-compatibility-sniffs

    Thread Starter jmunsonii

    (@jmunsonii)

    Thank you for the response.

    Unfortunately, I cannot install server-side code, so any option along those lines is out (hence no WP-CLI).

    Neither can I install this site to a local copy – far too big and I’ve not got a local server that can handle it…

    Any other options?

    BTW, I have determined that the overall wp-cron system is not working on the host we’re using, so I’ve pressed them for further assistance.

    You don’t actually need to install the site locally, you just need a copy of the PHP files. You can forget about the database, uploads directory and any JS or CSS files.

    The tools I pointed to analyse the *code* in the files, they don’t *run* the code.

    Thread Starter jmunsonii

    (@jmunsonii)

    Ah, gotcha – I might be able to make that work then… ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Run Manually?’ is closed to new replies.