• Resolved ramnew2006

    (@ramnew2006)


    Hello everyone,

    I am not sure whether the following problem has been experienced by any of you. My site is http://www.prep4civils.com I have wordpress 3.4.1 (recently updated it). I am facing a problem in expanding Screen Options on the header, I am not able to insert the image after I open the Upload/Insert image when I am making a post and also I am not able to close the Add Image pop up.

    I read so many.. so many posts but nothing worked as a solution.

    I tried this. My website is multisite enabled. I disabled it and got it to single site installation by deleting the code in wp-config and .htaccess. Now the admin panel is working fine. But the entire front end got messed up.

    So I found out the problem on my site is with multisite installation. I replaced wp-admin folder, wp-includes folder. No luck!

    Can anyone please guide me how to convert my multisite back to single site without front end getting messed up or else give a solution to the javascript issue.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter ramnew2006

    (@ramnew2006)

    Update
    ——
    I found out what is causing the problem. My site is having buddypress installed and I am using a theme called Edu-Clean. A part of code in global.js in edu-clean theme is causing this problem. Here is the code which is causing the problem

    /* Clear BP cookies on logout */
    	j('a.logout').click( function() {
    		j.cookie('bp-activity-scope', null, {path: '/'});
    		j.cookie('bp-activity-filter', null, {path: '/'});
    		j.cookie('bp-activity-oldestpage', null, {path: '/'});
    
    		var objects = [ 'members', 'groups', 'blogs', 'forums' ];
    		j(objects).each( function(i) {
    			j.cookie('bp-' + objects[i] + '-scope', null, {path: '/'} );
    			j.cookie('bp-' + objects[i] + '-filter', null, {path: '/'} );
    			j.cookie('bp-' + objects[i] + '-extras', null, {path: '/'} );
    		});
    	});
    });
    Thread Starter ramnew2006

    (@ramnew2006)

    Update
    ——
    Finally I fixed it. The problem with the above code is the usage of j in the jQuery code. I replaced it with the default buddypress global.js which uses jq in the jQuery code.

    Now the javascript inside admin panel is working 🙂

    If anyone is facing the issue, look into the javascript.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Javascript not working on Admin Panel’ is closed to new replies.