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

    (@grafcom)

    @damir Calusic

    what theme and what plugins do you use?

    Thread Starter DamirCalusic

    (@webkreativ)

    Custom theme based on _underscore.

    Plugins:
    Advanced Custom Fields Pro Version 5.2.9
    Advanced Custom Fields: qTranslate Version 1.7.9
    Coming Soon Page & Maintenance Mode av SeedProd Version 4.1.4
    Disable Comments Version 1.3.2
    EWWW Image Optimizer Version 2.5.0
    Google Analytics by Yoast Version 5.4.5
    qTranslate-X Version 3.4.3
    Regenerate Thumbnails Version 2.2.4
    WooCommerce Version 2.4.4
    WooCommerce & qTranslate-X Version 1.1
    WordPress SEO & qTranslate-X Version 1.0
    WP Basic Elements Version 3.0.6
    WP Users Media Version 3.0.0
    WP-Optimize 1.8.9.10
    Yoast SEO Version 2.3.4

    I’ve been getting the same error.

    TypeError: qTranslateConfig.qtx.addContentHooksTinyMCE is not a function
    https://localhost:8888/test/wp-content/plugins/acf-qtranslate/assets/acf_5/qtranslatex.js?ver=4.3
    Line 77

    Plugins:
    Advanced Custom Fields Pro Version 5.2.9
    Advanced Custom Fields: qTranslate Version 1.7.9
    Better Analytics 1.0.10
    Contact Form 7 4.2.2
    Download Monitor 1.8.0
    Email Before Download 3.4
    Intuitive Custom Post Order 3.0.6
    Timber 0.21.8
    qTranslate-X 3.4.3
    Types 1.8
    WP No Category Base 1.1.1

    Plugin Author Gunu

    (@grafcom)

    @damir Calusic and @salthareket

    Temporarily disable all other plugins. See if that makes a difference.

    If so, activate the plugins one by one and see which plugin creates the error.

    I’m getting this error when I activate “Advanced Custom Fields: qTranslate 1.7.9”.

    Plugin Author Gunu

    (@grafcom)

    @salthareket

    thanks, please report this problem also on the support forum of ACF qTranslate

    ok, thanks…

    Hi!
    Getting the same error ??
    Uncaught TypeError: qTranslateConfig.qtx.addContentHooksTinyMCE is not a function(anonymous function) @ qtranslatex.js?ver=4.3:66

    The culprit seems to be:

    timeoutContentHooksTinyMCE = setTimeout(function(){
    			<strong>qTranslateConfig.qtx.addContentHooksTinyMCE();</strong>
    			jQuery.each(tinyMCE.editors, function(i, ed){
    				var mceInit = tinyMCEPreInit.mceInit[ed.id];
    					console.log('initEditors:',mceInit);
    				if (mceInit && mceInit.init_instance_callback) {
    					mceInit.init_instance_callback(ed);
    				}
    			});
    		}, 50);

    Hi,
    I know that this topic is already a bit out of date, but this issue is still not solved. I found temporary solution for this. For some reasons qtranslate cannot load common.js file properly. Probably this is a problem of minified version of this js. I checked that, and I replace following line in qtx_admin.php:

    -               $page_config['js'][] = array( 'handle' => 'qtranslate-admin-common', 'src' => './admin/js/common.min.js');
    +               $page_config['js'][] = array( 'handle' => 'qtranslate-admin-common', 'src' => './admin/js/common.js');

    Furthermore there is a problem, because plugin call undefined method – because addContentHooksTinyMCE() is a function indeed. In my case I added this method just like this into the common.js file:

    this.addContentHooksTinyMCE=function()
    	{
    		addContentHooksTinyMCE();
    	}

    This solution works for me.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘JS Error: qTranslateConfig.qtx.addContentHooksTinyMCE’ is closed to new replies.