bobbingwide / oik-batch

Batch interface to WordPress
https://www.oik-plugins.com/oik-plugins/oik-batch
GNU General Public License v2.0
0 stars 0 forks source link

Fatal error running oik-wp with wp-super-cache activated. #20

Open bobbingwide opened 7 years ago

bobbingwide commented 7 years ago

Expected output

oikwp should work even when wp-super-cache is activated.

Actual output

A Notice then a Fatal error are issued.

Notice: Undefined index: REQUEST_METHOD in
 /home/oikplugi/public_html/wp-content/plugins/wp-super-cache/wp-cache-phase1.php on line 50
Fatal error: Uncaught Error: Call to undefined function apache_request_headers() in /home/oikplugi/public_html/wp-content/plugins/wp-super-cache/wp-cache-phase1.php:534

Stack trace:

  1. wp-super-cache/wp-cache-phase1.php(128): wp_cache_user_agent_is_rejected()
  2. wp-super-cache/wp-cache-phase1.php(339): wp_cache_serve_cache_file()
  3. wp-content/advanced-cache.php(20): include_once('/home/oikplugi/...')
  4. wp-settings.php(86): include('/home/oikplugi/...')
  5. wp-config.php(84): require_once('/home/oikplugi/...')
  6. oik-batch/oik-wp.php(73): require('/home/oikplugi/...')
  7. oik-batch/oik-wp.php(93): oik_batch_start_wordpress()
  8. oik-wp.php(154): oik_wp_loaded()
  9. {main}

Thrown in wp-super-cache/wp-cache-phase1.php on line 534

Workaround

Disable wp-super-cache before running oik-wp Note: This problem occurred with wp-super-cache v1.4.8 See https://github.com/Automattic/wp-super-cache/issues/125