Title: piwel's Replies | WordPress.org

---

# piwel

  [  ](https://wordpress.org/support/users/piwel/)

 *   [Profile](https://wordpress.org/support/users/piwel/)
 *   [Topics Started](https://wordpress.org/support/users/piwel/topics/)
 *   [Replies Created](https://wordpress.org/support/users/piwel/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/piwel/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/piwel/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/piwel/engagements/)
 *   [Favorites](https://wordpress.org/support/users/piwel/favorites/)

 Search replies:

## Forum Replies Created

Viewing 11 replies - 1 through 11 (of 11 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[The Events Calendar] CSV import does not set event featured image](https://wordpress.org/support/topic/csv-import-does-not-set-event-featured-image/)
 *  Thread Starter [piwel](https://wordpress.org/support/users/piwel/)
 * (@piwel)
 * [10 months, 2 weeks ago](https://wordpress.org/support/topic/csv-import-does-not-set-event-featured-image/#post-18663800)
 * Thanks for the follow-up.
 * I’m running this on a **staging environment** protected by **Basic Auth**, Cron
   and wp-json were correctly set up.
 * Interestingly, **featured images for organizers and venues work fine** — the 
   only issue is with **events themselves**, which again suggests this isn’t related
   to my environment or config.
 * It’s possible the same image was used multiple times, or that I cleaned events
   and/or images and reimported the CSV — but still, nothing that would explain 
   why no image is imported or attached unless that new line of code is present.
 * Anyway, I’ve had to move on to another part of the project — and with the fix
   I added (`$event['FeaturedImage'] = $this->get_featured_image( $event, $record);`),
   the import now works exactly as expected on my side!
 * Hopefully this could have helped highlight a gap in the current importer behavior
   for future users.
 * Thanks again for your time and help!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[The Events Calendar] CSV import does not set event featured image](https://wordpress.org/support/topic/csv-import-does-not-set-event-featured-image/)
 *  Thread Starter [piwel](https://wordpress.org/support/users/piwel/)
 * (@piwel)
 * [10 months, 2 weeks ago](https://wordpress.org/support/topic/csv-import-does-not-set-event-featured-image/#post-18659656)
 * Thanks for your time and help — just to give a bit more context for reproducibility:
   •
   I’m working on a staging environment protected by Basic Auth• I’m using a child
   theme of Twenty Twenty-Five (TT25)• I have only the necessary plugins activated,
   including The Events Calendar• WP_DEBUG is enabled, and there are no errors in
   the logs during or after import
 * Your screen recording proves it works, I have no clue what was happening on my
   installation ¯_(ツ)_/¯
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[The Events Calendar] CSV import does not set event featured image](https://wordpress.org/support/topic/csv-import-does-not-set-event-featured-image/)
 *  Thread Starter [piwel](https://wordpress.org/support/users/piwel/)
 * (@piwel)
 * [10 months, 3 weeks ago](https://wordpress.org/support/topic/csv-import-does-not-set-event-featured-image/#post-18658068)
 * Well, thanks for the recording – that’s exactly what I was expecting for the 
   plugin to do… But for some reason, it doesn’t work on my version of the plugin(
   The Events Calendar / Version 6.15.4). I tried again today with version 6.15.5,
   and I’m still having the exact same problem: import works well ; media is not
   imported ; and not linked to the created event… ¯\_(ツ)_/¯
 * And the code seems to match this bug, since the class `File_Importer_Events` 
   do not mention once any `FeaturedImage` as we could have expected…
 * In your recording, you are able to import RSVPs, while I can’t. Are you using
   the same plugin?… (I have not paid for Event Agregator)
 * These two links are functional:
    - [Featured images not importing – The Events Calendar forums](https://theeventscalendar.com/support/forums/topic/featured-images-not-importing/)
    - [Featured image doesn’t appear when importing from CSV – WordPress.org](https://wordpress.org/support/topic/featured-image-doesnt-appear-when-importing-events-from-csv/)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[The Events Calendar] CSV import does not set event featured image](https://wordpress.org/support/topic/csv-import-does-not-set-event-featured-image/)
 *  Thread Starter [piwel](https://wordpress.org/support/users/piwel/)
 * (@piwel)
 * [10 months, 3 weeks ago](https://wordpress.org/support/topic/csv-import-does-not-set-event-featured-image/#post-18654560)
 * Hi [@tristan083](https://wordpress.org/support/users/tristan083/) , thanks for
   the detailed explanation.
 * However, what you described here:
 * > The image is fetched from the source […], is uploaded (…), is then attached
   > to the event, becoming the event’s featured image
 * …is exactly what **does not happen** in practice — neither with a public image
   URL, nor with a local file path (even when the proper tribe_image_uploader_local_urls
   filter is set to return true).
 * That’s precisely why I opened this thread.
 * The issue isn’t theoretical — it’s consistently reproducible and has been reported
   by others too (see: [1](https://wordpress.org/support/topic/featured-images-not-importing-2/),
   [2](https://wordpress.org/support/topic/featured-image-doesnt-appear-when-importing-from-csv/)).
 * I went through the plugin code and identified the likely cause. Adding the above
   line fixes it.
 * So to clarify: this is not a feature request.
 * The CSV importer already **claims** to support this field — it’s in the UI, it’s
   in the docs, and the logic is partially there. But the mapping is missing, so
   it silently fails.
 * You can reproduce it by trying creating a CSV file like this:
 *     ```wp-block-code
       Event Name,Start Date,Start Time,End Date,End Time,Featured Image,Venue Name,Organizer NameTest Event,2025-10-01,10:00,2025-10-01,12:00,https://upload.wikimedia.org/wikipedia/commons/a/a9/Example.jpg,Test Venue,Test Organizer
       ```
   
 * ** When you import it with the actual plugin ; the Featured Image is missing.**
 * ![](https://i0.wp.com/i.ibb.co/Lh8Q1YNq/image.png?ssl=1)
 * ![](https://i0.wp.com/i.ibb.co/7dfYhM4m/image.png?ssl=1)
 * ![](https://i0.wp.com/i.ibb.co/ZzFKXjY4/Capture-d-e-cran-2025-09-24-a-14-11-32.
   png?ssl=1)
 * Let me know if you need a patch or a PR — happy to help.
    -  This reply was modified 10 months, 3 weeks ago by [piwel](https://wordpress.org/support/users/piwel/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[The Events Calendar] CSV import does not set event featured image](https://wordpress.org/support/topic/csv-import-does-not-set-event-featured-image/)
 *  Thread Starter [piwel](https://wordpress.org/support/users/piwel/)
 * (@piwel)
 * [10 months, 3 weeks ago](https://wordpress.org/support/topic/csv-import-does-not-set-event-featured-image/#post-18653375)
 * This feature **already exists** in the plugin and is [documented here](https://theeventscalendar.com/knowledgebase/csv-file-examples-for-importing/#:~:text=Event%20Featured%20Image).
    - The **CSV import of featured images** is officially supported.
    - The **filter for allowing local files** also exists in the code, though it’s
      currently **undocumented**.
 * **🛠️ This is not a feature request — it’s a bug fix**
 * Several users report that the **featured image import is broken**, for example:
    - [Featured images not importing – The Events Calendar forums](https://theeventscalendar.com/support/forums/topic/featured-images-not-importing/)
    - [Featured image doesn’t appear when importing from CSV – WordPress.org](https://wordpress.org/support/topic/featured-image-doesnt-appear-when-importing-events-from-csv/)
 * This issue does **not require a new feature**, but rather a **fix to existing
   functionality**.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[The Events Calendar] CSV import does not set event featured image](https://wordpress.org/support/topic/csv-import-does-not-set-event-featured-image/)
 *  Thread Starter [piwel](https://wordpress.org/support/users/piwel/)
 * (@piwel)
 * [10 months, 3 weeks ago](https://wordpress.org/support/topic/csv-import-does-not-set-event-featured-image/#post-18651383)
 * Just to make it clear, the file was available publicly, and I also tried using
   local images using this filter:
 *     ```wp-block-code
       add_filter('tribe_image_uploader_local_urls', function ($allow, $file_url) {    return true; }, 10, 2);
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[The Events Calendar] CSV import does not set event featured image](https://wordpress.org/support/topic/csv-import-does-not-set-event-featured-image/)
 *  Thread Starter [piwel](https://wordpress.org/support/users/piwel/)
 * (@piwel)
 * [10 months, 4 weeks ago](https://wordpress.org/support/topic/csv-import-does-not-set-event-featured-image/#post-18646770)
 * _Relates to [https://wordpress.org/support/topic/featured-image-doesnt-appear-when-importing-events-from-csv/](https://wordpress.org/support/topic/featured-image-doesnt-appear-when-importing-events-from-csv/)_
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Improved Include Page] Password protected posts](https://wordpress.org/support/topic/password-protected-posts-9/)
 *  Thread Starter [piwel](https://wordpress.org/support/users/piwel/)
 * (@piwel)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/password-protected-posts-9/#post-10609840)
 * Thanks for your reactivity and answer 🙂 Have a good day
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Problem with JetPack module with Contact Form](https://wordpress.org/support/topic/problem-with-jetpack-module-with-contact-form-1/)
 *  Thread Starter [piwel](https://wordpress.org/support/users/piwel/)
 * (@piwel)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/problem-with-jetpack-module-with-contact-form-1/#post-7414780)
 * For information, the problem does not take place if I’m connected as an admin
   on the backend.
 * I just add this lines in wp-content/plugins/jetpack/modules/contact-form/grunion-
   contact-form.php on line 1508 for it to work (but it’s not clean…)
 *     ```
       if(!is_array($extra_fields)) {
          global $wpdb, $blog_id;
          $query = "SELECT post_id, meta_key, meta_value FROM wp_${blog_id}_postmeta WHERE post_id IN ($feedback_id) AND meta_key = '_feedback_extra_fields' ORDER BY meta_id ASC";
          $result = mysql_query( $query, $wpdb->dbh );
          $row = mysql_fetch_object( $result );
          $extra_fields = unserialize($row->meta_value);
        }
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Jetpack - WP Security, Backup, Speed, & Growth] Problem with JetPack module with Contact Form](https://wordpress.org/support/topic/problem-with-jetpack-module-with-contact-form/)
 *  [piwel](https://wordpress.org/support/users/piwel/)
 * (@piwel)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/problem-with-jetpack-module-with-contact-form/#post-7306223)
 * Hi Jeremy,
 * I have the same problem here.
 * The patch you offer hides the error message, but it still makes the extra fields
   disappear from the e-mail that is sent, and from the confirmation page that is
   displayed to the user.
 * When you call “get_post_meta” to obtain the extra fields, the return is an empty
   string (which causes the warning to appear), even if there were extra fields.
 * The surprising point is that when you wait a couple of minute and refresh the
   confirmation page, that problem is solved by itself.
 * And for the record, I can still view the correct extra fields in the Feedback
   section of the admin, as soon as it is posted.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Youtube Channel Gallery] Fatal error](https://wordpress.org/support/topic/fatal-error-826/)
 *  [piwel](https://wordpress.org/support/users/piwel/)
 * (@piwel)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-826/#post-3967242)
 * The problem comes from private videos in a playlist.
 * Add this line just before line 636 in the file for it to work, or unprivatise
   your videos :
    if(!$media->group->thumbnail) continue;
 * If the correction could be done in the plugin it would be great !
 * Thanks by advance.

Viewing 11 replies - 1 through 11 (of 11 total)