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 SHORTINIT true #33

Open bobbingwide opened 5 years ago

bobbingwide commented 5 years ago

While attempting to find a way to stop W3 Total Cache from attaching its output buffering function when running in batch I found that using define( 'SHORTINIT', true ); in wp-config.php causes the following fatal error.

C:\apache\htdocs\sgmotorsport\wp-content\plugins\sgfixup>php C:\apache\htdocs\wordpress\wp-content\plugins\oik-batch\oik-wp.php sgob.php

Fatal error: Uncaught Error: Call to undefined function __() in C:\apache\htdocs\wordpress\wp-content\plugins\oik-batch\libs\oik-cli.php:305 Stack trace:

0 C:\apache\htdocs\wordpress\wp-content\plugins\oik-batch\oik-wp.php(75): oik_batch_report_wordpress_version()

1 C:\apache\htdocs\wordpress\wp-content\plugins\oik-batch\oik-wp.php(95): oik_batch_start_wordpress()

2 C:\apache\htdocs\wordpress\wp-content\plugins\oik-batch\oik-wp.php(156): oik_wp_loaded()

3 {main}

thrown in C:\apache\htdocs\wordpress\wp-content\plugins\oik-batch\libs\oik-cli.php on line 305