GithubHelp home page GithubHelp logo

400 due to typo about power-builder HOT 2 OPEN

templatemonster avatar templatemonster commented on August 20, 2024 2
400 due to typo

from power-builder.

Comments (2)

fussraider avatar fussraider commented on August 20, 2024

Thanks, u're right.

I lost several hours and found no other solution to this problem except to change the action name in /wp-content/plugins/tm-content-builder/framework/admin/assets/js/app/tm-pagebuilder.js :

$.ajax({
	type: "POST",
	dataType: 'json',
	url: tm_pb_options.ajaxurl,
	data: {
		/* ==============================
		    HERE "tm_pb_get_backbone_template" change on "tm_pb_get_backbone_templates"
		===============================*/
		action : 'tm_pb_get_backbone_templates', 
		tm_post_type : tm_pb_options.post_type,
		tm_modules_slugs : JSON.stringify( missing_modules ),
		tm_admin_load_nonce : tm_pb_options.tm_admin_load_nonce
	},
	success: function( data ) {
		tm_is_loading_missing_modules = false;

		try {
			localStorage.setItem( tm_ls_prefix + data['slug'], data['template'] );
		} catch(e) {
			// do not use localStorage if it full or any other error occurs
		}

		$( 'body' ).append( data.template );
		if ( data.length ) {
			_.each( data, function( single_module ) {
				try {
					localStorage.setItem( tm_ls_prefix + single_module['slug'], single_module['template'] );
				} catch(e) {
					// do not use localStorage if it full or any other error occurs
				}

				$( 'body' ).append( single_module['template'] );
			} );
		}
	}
});

from power-builder.

dentom avatar dentom commented on August 20, 2024

Just a note.. if you apply this fix and some modules still don't work, clear your local storage for that website. Console > Local storage > right click your website > Delete all. Worked for me.

from power-builder.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.