skand
Forum Replies Created
-
Forum: Plugins
In reply to: [The Events Calendar] CSV import does not set event featured imageHi,
I have the exact same bug as described by @piwel in this thread with the exact same CSV.
The proposed fix, adding the following lines in File_Importer_Events.php:
$event['FeaturedImage'] = $this->get_featured_image( $event, $record );does fix the issue.
@d0153 do you have any insights into when we can expect a fix on your side?
My environment is a fresh install with only:
- WordPress version: 6.9 (php 8)
- The Events Calendar version: 6.15.14 (latest)
- No other plugin
- Default twenty five theme
Regards,
Hi,
Downgrading to PHP 8.2 didn’t resolve the issue, but I found the fix elsewhere.
It turned out that the problem was with the WordPress Media uploader rather than your plugin.
For reasons I can’t fully explain, working.csv was accepted by WordPress as a media file, while not_working.csv was not.
I installed the File Upload Types by WPForms plugin, as recommended in your documentation, to explicitly allow CSV uploads in the WordPress Media Library, and everything is now working as expected.
Thanks for your help,
Hi @d0153
Thanks for your reply and tips.
I did test with a fresh WordPress install with only The Events Calendar plugin installed and the default theme (Twenty Twenty–One) and the issue is still there.
Did you manage to import my not_working.csv on your side? Its content is very minimal so you may be able to reproduce the bug easily.
Thanks for the suggestion @pauly231 but having a manual step after an half broken automatic import is not a viable option in my process.
I need the CSV import to work as expected.