• I am a small webhost reseller and all my clients use WordPress as their CMS. All are on the same server with shared IPs. One client (the one most recently changed to WordPress) has a serious issue with setting featured images in posts, pages and any plugin that uses that feature. No matter what I have tried, I continually run into the exact same issue that appears to be somewhat unrelated to any other I have read.

    I have read through all the posts here, there and everywhere including StackExchange and Google to no avail. So far, this is what I have done:

    • Deactivated all plugins – No joy.
    • Installed the plugin to use Google’s JQuery library – No joy.
    • Switched to the Twenty-Eleven theme – No joy.
    • White-listed the domain in mod_security – No joy.
    • I increased the memory limit to 128M – No joy.
    • Did a manual clean install of all the WordPress files from a freash download.

    When I try to set the featured image, Chrome shows the following:

    The "fb-root" div has not been created, auto-creating all.js:52
    POST https://www.salonoasis.biz/wp-admin/admin-ajax.php 404 (Not Found) jquery.js:8240
    send jquery.js:8240
    jQuery.extend.ajax jquery.js:7719
    jQuery.(anonymous function) jquery.js:7245
    NGGSetAsThumbnail media-upload.php:116
    onclick

    For the life of me, I can’t figure out what it’s not finding or why it’s just this one client when other clients on the SAME server, with the SAME hosting account type using the SAME WordPress version do NOT have this problem! HELP! LOL

    The site in question is located at https://www.salonoasis.biz. Thank you!

Viewing 15 replies - 1 through 15 (of 22 total)
  • Looks like a theme-specific issue. What theme is your client using?

    Thread Starter Heather Feuerhelm

    (@heatherfeuer)

    Item Three above. I switched to the Twenty-Eleven theme to make sure and still had the problem. The theme is a custom theme that I created myself and built on a skeleton of my own design for me to build client themes on.

    This skeleton is used with at least three other sites that do NOT have this problem.

    Thread Starter Heather Feuerhelm

    (@heatherfeuer)

    I apologize for my rather glib reply above. I started thinking about what you said and went back to my theme. I had enabled theme support in my functions file, however, I hadn’t included the code in the loop to display the thumbnail in the post if one had been set. However, when I went back to the dashboard and tried to set a thumbnail, I still got a 404 on media-upload.php:116. When I clicked on the link to that part in Chrome’s firbug window I got this code snippet:

    jQuery.post(ajaxurl, {
    			action:"ngg_set_post_thumbnail", post_id: post_id, thumbnail_id: id, cookie: encodeURIComponent(document.cookie)
    		}, function(str){
    			var win = window.dialogArguments || opener || parent || top;
    			$link.text( setPostThumbnailL10n.setThumbnail );
    			if ( str == '0' ) {
    				alert( setPostThumbnailL10n.error );
    			} else {
    				jQuery('a.ngg-post-thumbnail').show();
    				$link.text( setPostThumbnailL10n.done );
    				$link.fadeOut( 2000 );
    				// set some id as meta input filed
    				win.WPSetThumbnailID('ngg-' + id);
    				// replace the meta box with the image
    				win.WPSetThumbnailHTML(str);
    			}
    		}
    		);

    What am I missing?

    I am having the same issue with specific users. The only work around i have found is to change the users role to administrator. All of the other roles will show this same error. I am curious to hear if this solves your issue as well. Might be a bug in the user permissions.

    Thread Starter Heather Feuerhelm

    (@heatherfeuer)

    Actually, my client and I are the only users and we are both administrators. This site is being used as a CMS only. Sorry! I wish that would help!

    The second block of code that you posted above appears to be referencing a plugin – possibly NextGen.

    Thread Starter Heather Feuerhelm

    (@heatherfeuer)

    Yes, I was trying to set the image from a NextGen gallery. Here is the block of code throwing the 404 when trying to set the image from the Media Library:

    function WPSetAsThumbnail(c,b){var a=jQuery("a#wp-post-thumbnail-"+c);a.text(setPostThumbnailL10n.saving);jQuery.post(ajaxurl,{action:"set-post-thumbnail",post_id:post_id,thumbnail_id:c,_ajax_nonce:b,cookie:encodeURIComponent(document.cookie)},function(e){var d=window.dialogArguments||opener||parent||top;a.text(setPostThumbnailL10n.setThumbnail);if(e=="0"){alert(setPostThumbnailL10n.error)}else{jQuery("a.wp-post-thumbnail").show();a.text(setPostThumbnailL10n.done);a.fadeOut(2000);d.WPSetThumbnailID(c);d.WPSetThumbnailHTML(e)}})};

    And when I try to upload an image and set as thumbnail:

    function WPSetAsThumbnail(c,b){var a=jQuery("a#wp-post-thumbnail-"+c);a.text(setPostThumbnailL10n.saving);jQuery.post(ajaxurl,{action:"set-post-thumbnail",post_id:post_id,thumbnail_id:c,_ajax_nonce:b,cookie:encodeURIComponent(document.cookie)},function(e){var d=window.dialogArguments||opener||parent||top;a.text(setPostThumbnailL10n.setThumbnail);if(e=="0"){alert(setPostThumbnailL10n.error)}else{jQuery("a.wp-post-thumbnail").show();a.text(setPostThumbnailL10n.done);a.fadeOut(2000);d.WPSetThumbnailID(c);d.WPSetThumbnailHTML(e)}})};

    You really need to post this in the NextGens’s dedicated forum (via its plugin page).

    Thread Starter Heather Feuerhelm

    (@heatherfeuer)

    Even though I disabled that plugin and STILL couldn’t set the post thumbnail? I will, if you insist, but I really don’t think the problem is the plugin. The problem is somewhere in the admin-ajax.php function calls.

    Try resetting the plugins folder by PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.

    Thread Starter Heather Feuerhelm

    (@heatherfeuer)

    I just uninstalled the NextGen Gallery and optimized the database. I still get the same 404 error referencing set-post-thumbnail.js as shown above. Does that still mean that it’s the plugin causing the problem?

    Did you try resetting the plugins as I suggested above?

    Thread Starter Heather Feuerhelm

    (@heatherfeuer)

    Yes. For this domain I am webhost, webmaster and one of two administrators. I have tried ALL suggestions. The database checks okay with both wp-optimize and from the CPanel MySQL Admin / phpmyadmin.

    I have WordPress 3.4.2 installed on at least eight other domains on the same server, several with the same skeletal base theme. In ALL other cases, I can set the post thumbnail and it will save properly. On THIS SITE ONLY, when I attempt to set the post thumbnail, it hangs on saving.

    This is why I am so incredibly frustrated!

    Site url?

    Thread Starter Heather Feuerhelm

    (@heatherfeuer)

    salonoasis.biz

Viewing 15 replies - 1 through 15 (of 22 total)
  • The topic ‘Can't Set Featured Image – Yes I Read All Other Posts’ is closed to new replies.