Support » Plugin: qTranslate X » qTranslate X & Learndash LMS quizzes

  • Resolved richpav

    (@richpav)


    Can someone give me a hint about what the problem is? Not sure if the cause is Learndash or qTranslate X. When I try to create/edit a quiz, I get bunch of these:

    Warning: Invalid argument supplied for foreach() in /home/kogaqtrans/qtranslate.kogaeikaiwa.com/wp-content/plugins/qtranslate-x/admin/qtx_configuration.php on line 150
    
    Warning: Invalid argument supplied for foreach() in /home/kogaqtrans/qtranslate.kogaeikaiwa.com/wp-content/plugins/qtranslate-x/admin/qtx_configuration.php on line 150

    Line 150 is this function:

    function qtranxf_collect_translations( &$q_request, &$request, $edit_lang ) {
    	if(isset($q_request[$edit_lang])){
    		$texts = &$q_request;
    		$texts[$edit_lang] = $request;
    		if(isset($texts['sep'])){
    			$sep = $texts['sep'];
    			unset($texts['sep']);
    		}else{
    			$sep = '[';
    		}
    		$text = qtranxf_join_texts($texts,$sep);
    		$request = $text;
    	}else{
    		foreach($q_request as $f => $r){
    			qtranxf_collect_translations($q_request[$f],$request[$f],$edit_lang); // recursive call
    		}
    	}
    }

    https://wordpress.org/plugins/qtranslate-x/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Gunu

    (@grafcom)

    @richpav,

    did you try the latest Beta version? Download here

    Plugin Author Gunu

    (@grafcom)

    @richpav,

    I understood from John that this would be solved with the latest Beta version.
    download here

    Can you confirm this?

    Gunu,

    Yes, that fixed it. Thank you!

    I can’t believe how simple of a solution this is compared to WPML.

    Plugin Author Gunu

    (@grafcom)

    You are welcome!

    You can review this plugin to help other people to find out the value.

    Sorry, I’m still getting the same error. I cloned the plugin’s repository, Version 3.2.9.8.4. I can give you an admin account for my development server if you like.

    This is where I get the error. in LearnDash, quizzes are a custom post type.
    http://qtranslate.kogaeikaiwa.com/wp-admin/post.php?post=91&action=edit

    A screenfull of these:
    Warning: Invalid argument supplied for foreach() in /home/kogaqtrans/qtranslate.kogaeikaiwa.com/wp-content/plugins/qtranslate-x/admin/qtx_configuration.php on line 150

    Plugin Author John Clause

    (@johnclause)

    I hope this is fixed in the latest from GitHub. I’ll mark it ‘resolved’ now to save clicks, we may reopen it if needed.

    Still having the same problem as richpav mentioned.

    Warning: Invalid argument supplied for foreach() in …… /qtranslate-x/admin/qtx_configuration.php on line 34

    Any hint on what can I do to solve this?

    Using the latest version of your plugin.

    Thank you very much.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘qTranslate X & Learndash LMS quizzes’ is closed to new replies.