-
Notifications
You must be signed in to change notification settings - Fork 111
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
Problem with script in PHP CLI #766
Comments
I don't use this, but it is supposed to work. The only places where WP_CLI is handled is here to disabled the redirections: qtranslate-xt/qtranslate_utils.php Line 634 in 1aeeee2
and here for the language detection: qtranslate-xt/qtranslate_core.php Line 148 in 1aeeee2
Apart from this, nothing special. So if the scripts exits you should add more logging info to understand where it happens. |
Hi there! Today I also ran into a problem wit Notice: Undefined index: wp-path in /.../content/plugins/qtranslate-xt/qtranslate_core.php on line 440
Warning: assert(): language needs to be shown in url - cancelled by can_redirect, url_info={
"cookie_front_or_admin_found": false,
"pagenow": "index.php",
"REQUEST_METHOD": "GET",
"scheme": "http",
"host": "",
"path": false,
"path-base": "\/core",
"doing_front_end": true,
"lang_browser": null,
"doredirect": "language needs to be shown in url - cancelled by can_redirect",
"language": "de",
"set_cookie": true
} failed in /.../plugins/qtranslate-xt/qtranslate_core.php on line 100 QTX_VERSION: 3.12.1 |
So WP_CLI is not set and the request looks really weird with |
Maybe the issue is somehow related to my website using a custom folder structure? It looks like this:
...where By the way, I am also getting this error when trying to run any of the built-in WP CLI commands, like e.g. |
Related to #1326. |
Fix released in 3.14.2. |
Hello,
i'm writing a parser to be called from the command line, and i noticed that when qtranslate XT (ver. 3.7.1) is enabled the script simply exits (no errors shown or logged).
When the plugin is disabled the script is able to import data into WP correctly.
Are you doing something do disable the CLI?
FWIW I'm loading wordpress with this code at the very beginning of my script:
`// Let's load WordPress
`
any clue?
The text was updated successfully, but these errors were encountered: