Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to set Featured Image for individual products #2888

Closed
al-codaio opened this issue Apr 5, 2013 · 13 comments
Closed

Unable to set Featured Image for individual products #2888

al-codaio opened this issue Apr 5, 2013 · 13 comments

Comments

@al-codaio
Copy link

I used to be able to set Featured Images for individual products. I tried setting a new Featured Image for each of my products, and WC is not letting me set the Featured Image. Steps to reproduce bug:

  1. Click on Products and select a product to edit
  2. Click on 'Set Featured Image' on right-hand sidebar
  3. Select image from Media Library I would like to use as Featured Image
  4. Click 'Set featured image' button at bottom right of window

Result: No thumbnail of the selected image shows up in the Featured Image box and the 'Set featured image' link still remains.

Expected Behavior: Thumbnail shows up of the selected image and the link for 'Remove featured image' should show up below the thumbnail.

Various Notes:
-I am able to successfully add images to the 'Product Gallery' box on the right-hand sidebar and these images show up correctly on my site
-When I originally set featured images, and I clicked on the Media Library, the 'Uploaded to' field correctly said the individual product that I uploaded the image to. This time around, when I uploaded new images I wanted to use as my Featured Image, and after clicking on the Media Library, the 'Uploaded to' field simply says 'unattached' so I manually 'attached' the photo to the proper product
-After going through the steps above to reproduce the bug, when I click on the 'Set featured image' link again, the Set Featured Image window pops up showing all the images from my Media Library, and the default selected image is a blank gray box (with the checkmark in the top right of the thumbnail) that has no attributes like title and caption. This is strange. See attached screenshot.

Capture

See my System Status below:

Environment

Home URL: http://www.thekeycuts.com
Site URL: http://www.thekeycuts.com
WC Version: 2.0.5
WC Database Version: 2.0.5
WP Version: WP 3.5.1
Web Server Info: Apache
PHP Version: 5.2.17
MySQL Version: 5.1.67-log
WP Memory Limit: 40MB - We recommend setting memory to at least 64MB. See: Increasing memory allocated to PHP
WP Debug Mode: No
WP Max Upload Size: 8MB
PHP Post Max Size: 8MB
PHP Time Limit: 50000
WC Logging: Log directory is writable.
fsockopen/cURL: Your server has fsockopen and cURL enabled.
SOAP Client: Your server has the SOAP Client class enabled.
WP Remote Post: wp_remote_post() was successful - PayPal IPN is working.

Plugins

Installed Plugins: Features by WooThemes version 1.2.2, Simple Sitemap by David Gwyer version 1.52, Smart Manager for e-Commerce by Store Apps version 3.1.2, Testimonials Widget by Michael Cannon version 2.10.3, W3 Total Cache by Frederick Townes version 0.9.2.8, WooCommerce by WooThemes version 2.0.5, WooDojo by WooThemes version 1.5.2, WooSidebars by WooThemes version 1.2.2, WordPress SEO by Joost de Valk version 1.4.6

Settings

Force SSL: No

WC Pages

Shop Base: #8 - /shop/
Cart: #9 - /cart/
Checkout: #10 - /checkout/
Pay: #16 - /checkout/pay/
Thanks: #17 - /checkout/order-received/
My Account: #12 - /my-account/
Edit Address: #13 - /my-account/edit-address/
View Order: #14 - /my-account/view-order/
Change Password: #15 - /my-account/change-password/
Lost Password: #80 - /my-account/lost-password/

WC Taxonomies

Order Statuses: cancelled (cancelled), completed (completed), failed (failed), on-hold (on-hold), pending (pending), processing (processing), refunded (refunded)
Product Types: external (external), grouped (grouped), simple (simple), variable (variable)

Templates

Template Overrides: No core overrides present in theme.

@gixxer188
Copy link

LOL, I have the same problem! I just posted over on WP.org because I thought it was a WP not WC issue because I have more than one website using WP and WC but with different themes and the problem is on only one of the sites.

http://wordpress.org/support/topic/featured-image-non-existent-image-file-error?replies=1

@mikejolley
Copy link
Member

Its working fine here.

Do the usual - deactivate plugins/themes and see if there is a conflict.

@gixxer188
Copy link

Really? So two people with different themes and different plug-ins have the same problem, but because it's working fine for you all is well in the world?

Here is my WC Status:

Environment

Home URL: http://www.motovid.com

Site URL: http://www.motovid.com/cms

WC Version: 2.0.5

WC Database Version: 2.0.5

WP Version: WP 3.5.1

Web Server Info: Apache/2.2.23 (Unix) mod_ssl/2.2.23 OpenSSL/1.0.0-fips mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635

PHP Version: 5.3.18

MySQL Version: 5.1.68-cll

WP Memory Limit: 96MB

WP Debug Mode: No

WP Max Upload Size: 2MB

PHP Post Max Size: 8MB

PHP Time Limit: 30

WC Logging: Log directory is writable.

fsockopen/cURL: Your server has fsockopen and cURL enabled.

SOAP Client: Your server has the SOAP Client class enabled.

WP Remote Post: wp_remote_post() was successful - PayPal IPN is working.

Plugins

Installed Plugins: Akismet by Automattic version 2.5.7, All in One SEO Pack by Michael Torbert version 1.6.15.3, Analytics360 by Crowd Favorite version 1.3.0, Apocalypse Meow by Josh Stoik version 1.4.0, AutoChimp by Wanderer LLC Dev Team version 2.02, Contact Form 7 by Takayuki Miyoshi version 3.3.3, Features by WooThemes version 1.2.2, flickr-badge by Phil Ewels version 1.0, Google Analyticator by Video User Manuals version 6.4.3, IFrame Widget by Debashish Chakrabarty version 4.1, MailChimp Widget by James Lafferty version 0.8.12, Piggy by Dale Mugford & Duane Storey (BraveNewCode) version 1.2, Post Expirator by Aaron Axelsen version 2.0.1, Post Meta by Mahbubur Rahman version 1.0.6, Post Types Order by Nsp Code version 1.5.7, Quick Contact Form by fisicx version 5.1, Regenerate Thumbnails by Viper007Bond version 2.2.4, Optimize Database after Deleting Revisions by CAGE Web Design | Rolf van Gelder, Eindhoven, The Netherlands version 2.2.8, Smart Manager for e-Commerce by Store Apps version 3.1.2, Testimonials by WooThemes version 1.2.1, The Events Calendar by Modern Tribe, Inc. version 2.0.11, ThickBox Content by Max Chirkov version 1.0.5, Ultimate Photo Widget for Flickr, Tumblr, and Pinterest by Eric Burger version 2.0.2.3, W3 Total Cache by Frederick Townes version 0.9.2.8, WooCommerce Admin Bar Addition by David Decker - DECKERWEB version 2.4, WooCommerce - All in One SEO Pack by Visser Labs version 1.3.2, WooCommerce Product Add-ons by WooThemes version 1.2.0, Woocommerce Remove Quantity by Marirs version 0.1, WooCommerce by WooThemes version 2.0.5, WooThemes Updater by WooThemes version 1.0.4, Secure Invites by Chris Taylor version 1.2.4, WP-DBManager by Lester 'GaMerZ' Chan version 2.63, WP Hide Post by Robert Mahfoud version 1.1.9

Settings

Force SSL: Yes

WC Pages

Shop Base: #1166 - /programs-faqs/event-sign-up/

Cart: #157 - /programs-faqs/cart/

Checkout: #158 - /checkout/

Pay: #164 - /checkout/pay/

Thanks: Page does not exist

My Account: Page does not exist

Edit Address: Page does not exist

View Order: Page does not exist

Change Password: Page does not exist

Lost Password: Page does not exist

WC Taxonomies

Order Statuses: cancelled (cancelled), completed (completed), failed (failed), on-hold (on-hold), pending (pending), processing (processing), refunded (refunded)

Product Types: external (external), grouped (grouped), simple (simple), variable (variable)

Templates

Template Overrides: No core overrides present in theme.

@harshasbc
Copy link

Same issue www.madhwakart.com Please help asap
Screenshot 4

@al-codaio
Copy link
Author

Hi everyone, de-activate all your plug-ins EXCEPT WooCommerce, of course. The Set Featured Image function should work then. Try also doing this in Firefox (if you have been using Chrome).

Thanks for the advice @mikejolley.

@harshasbc
Copy link

Woo commence smart manager code clash with featured image . Issue solved

@mikejolley
Copy link
Member

You guys will need to report this to the Smart Manager author so they can patch it.

Really? So two people with different themes and different plug-ins have the same problem, but because it's working fine for you all is well in the world?

Don't be a smart-ass :) I was right.

@harshasbc
Copy link

after update smart manager 3.1.2 issue raised i already report to smart manager thanks mikejolly sir for assistance

@harshasbc
Copy link

Go to file 'smart-manager.php' located at 'wp-content/plugins/smart-manager-for-wp-e-commerce'
Go to line number 105 OR look for this code:
find this

// Including Scripts for using the wordpress new media manager
if (version_compare ( $wp_version, '3.5', '>=' )) {
define ( 'IS_WP35', true);
wp_enqueue_media();
wp_enqueue_script( 'custom-header' );
}

replace this code

// Including Scripts for using the wordpress new media manager
if (version_compare ( $wp_version, '3.5', '>=' )) {
define ( 'IS_WP35', true);
if ( isset( $_GET['page'] ) && ( $_GET['page'] == "smart-manager-woo" || $_GET['page'] == "smart-manager-wpsc" ) ) {
wp_enqueue_media();
wp_enqueue_script( 'custom-header' );
}
}

@gixxer188
Copy link

Guessing at a fix does not make you an expert. And just because you
happened to be correct this time doesn't mean you will be in the future.
Maybe next time you could choose different words and not be so short with
your responses, tone and additude don't come through in text written
messages.

Thank you for your help.

On Saturday, April 6, 2013, Mike Jolley wrote:

You guys will need to report this to the Smart Manager author so they can
patch it.

Really? So two people with different themes and different plug-ins have
the same problem, but because it's working fine for you all is well in the
world?

Don't be a smart-ass :) I was right.


Reply to this email directly or view it on GitHubhttps://github.com//issues/2888#issuecomment-15993869
.

@samanthavira
Copy link

Does NOT work: WooCommerce 2.0.10 is the only plugin active + WooThemes Optimize (no longer supported)
Works: WooCommerce + Twenty Twelve

@ghost
Copy link

ghost commented Jan 10, 2014

I just deactivated JetPack after reading @mikejolley and it worked fine. I also found and did this previously:

Change
add_theme_support('post-thumbnails', array('post', 'page'));

For
add_theme_support('post-thumbnails', array('post', 'page', 'product'));

In functions.php

About the deactivated plugin, according to what I've been reading, it doesn't seem to be "a plugin" issue but several plugins might be affecting. So, try activating and deactivating plugins till bingo!

@blogillu
Copy link

In my case the plugin Sponsors carousel is creating issue. I have removed it ..

@woocommerce woocommerce locked and limited conversation to collaborators Oct 22, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants