piwel
Forum Replies Created
-
Forum: Plugins
In reply to: [The Events Calendar] CSV import does not set event featured imageThanks 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
In reply to: [The Events Calendar] CSV import does not set event featured imageThanks 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 importYour screen recording proves it works, I have no clue what was happening on my installation ¯_(ツ)_/¯
Forum: Plugins
In reply to: [The Events Calendar] CSV import does not set event featured imageWell, 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_Eventsdo not mention once anyFeaturedImageas 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:
Forum: Plugins
In reply to: [The Events Calendar] CSV import does not set event featured imageHi @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, 2).
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:
Event Name,Start Date,Start Time,End Date,End Time,Featured Image,Venue Name,Organizer Name
Test Event,2025-10-01,10:00,2025-10-01,12:00,https://upload.wikimedia.org/wikipedia/commons/a/a9/Example.jpg,Test Venue,Test OrganizerWhen you import it with the actual plugin ; the Featured Image is missing.



Let me know if you need a patch or a PR — happy to help.
- This reply was modified 6 months ago by piwel.
Forum: Plugins
In reply to: [The Events Calendar] CSV import does not set event featured imageThis feature already exists in the plugin and is documented here.
- 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
- Featured image doesn’t appear when importing from CSV – WordPress.org
This issue does not require a new feature, but rather a fix to existing functionality.
Forum: Plugins
In reply to: [The Events Calendar] CSV import does not set event featured imageJust to make it clear, the file was available publicly, and I also tried using local images using this filter:
add_filter('tribe_image_uploader_local_urls', function ($allow, $file_url) {
return true;
}, 10, 2);Forum: Plugins
In reply to: [The Events Calendar] CSV import does not set event featured imageForum: Plugins
In reply to: [Improved Include Page] Password protected postsThanks for your reactivity and answer 🙂 Have a good day
Forum: Plugins
In reply to: Problem with JetPack module with Contact FormFor 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); }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
In reply to: [Youtube Channel Gallery] Fatal errorThe 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.