Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bobbingwide opened this issue Mar 10, 2017 · 0 comments
Open

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

bobbingwide opened this issue Mar 10, 2017 · 0 comments
Labels

Comments

@bobbingwide
Copy link
Owner

bobbingwide commented Mar 10, 2017

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:
0. wp-super-cache/wp-cache-phase1.php(128): wp_cache_user_agent_is_rejected()

  1. wp-super-cache/wp-cache-phase1.php(339): wp_cache_serve_cache_file()
  2. wp-content/advanced-cache.php(20): include_once('/home/oikplugi/...')
  3. wp-settings.php(86): include('/home/oikplugi/...')
  4. wp-config.php(84): require_once('/home/oikplugi/...')
  5. oik-batch/oik-wp.php(73): require('/home/oikplugi/...')
  6. oik-batch/oik-wp.php(93): oik_batch_start_wordpress()
  7. oik-wp.php(154): oik_wp_loaded()
  8. {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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant