Invalid argument supplied for foreach
-
Hello,
I have the following problem with qTranslate X:Warning: Invalid argument supplied for foreach() in /path/wp-content/plugins/qtranslate-x/qtranslate_core.php on line 320 Warning: Cannot modify header information - headers already sent by (output started at /path/wp-content/plugins/qtranslate-x/qtranslate_core.php:320) in /path/wp-content/plugins/qtranslate-x/qtranslate_core.php on line 115 Warning: Cannot modify header information - headers already sent by (output started at /path/wp-content/plugins/qtranslate-x/qtranslate_core.php:320) in /path/wp-includes/pluggable.php on line 1178
The problem occurs on initial page load when the “Detect the language of the browser and redirect accordingly.” option is enabled.
I’ve tried using the latest beta version for the moment (2.9.7.7) but there was no change (the line numbers in the message above are displayed from the latest beta, they’re different in the latest stable version 306, 116 and 1178).
If I set PHP not to display the errors everything works fine.This happens with every theme I’ve tried including the ones coming with WordPress, so the theme could be ruled out from the list of possible reasons.
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Invalid argument supplied for foreach’ is closed to new replies.