
BTW this is a recent error on the log
| Error | 66.249.66.78 | 400 | GET /wp-admin/admin-ajax.php?action=eventon_ics_download&event_id=176254&ri=2&nonce=89da299774 HTTP/1.0 |
Replies for tickets on suppota

BTW this is a recent error on the log
| Error | 66.249.66.78 | 400 | GET /wp-admin/admin-ajax.php?action=eventon_ics_download&event_id=176254&ri=2&nonce=89da299774 HTTP/1.0 |

I don’t think I attached the screenshot before. This is the problem. Attached. It’s like there a massive conflict somewhere. The calendar below is still normal.
It is already two times I have restored a backup. The next morning when I wake up the slider is like this again.
Any idea what the problem is??
Help!
1 more question, can the dynamic tags can be used in the email’s subject ?
Hi, I am working on the reminder
How may dynamic tags can I use? So far, there’s only {event-name} {event-link}
Which are quite limted. Can I use tags for event time, event date ?
Can I send different reminders for each event category ?
Thanks
UPDATE: This is my current code with some changes. Same address issue:
add_action(‘init’, function () {
if (isset($_POST[‘opret_event’])) {
// Hent input fra formularen
$street_address = sanitize_text_field($_POST[‘street_address’]);
$city = sanitize_text_field($_POST[‘city’]);
$date = sanitize_text_field($_POST[‘date’]);
$start_time = sanitize_text_field($_POST[‘start_time’]);
$end_time = sanitize_text_field($_POST[‘end_time’]);
try {
// Beregn start- og slutdato
$start_dt = new DateTime(“$date $start_time”);
$end_dt = new DateTime(“$date $end_time”);
$start_ts = $start_dt->getTimestamp();
$end_ts = $end_dt->getTimestamp();
// Opret event med titlen “Privat Loppemarked i (bynavn)”
$event_title = ‘Privat Loppemarked i ‘ . $city;
$event_id = wp_insert_post([
‘post_title’ => $event_title,
‘post_content’ => ‘Adresse: ‘ . $street_address . ‘, ‘ . $city, // Kombiner adresse og by
‘post_status’ => ‘draft’,
‘post_type’ => ‘ajde_events’,
]);
if ($event_id) {
// Tidsfelter
update_post_meta($event_id, ‘_start’, $start_ts);
update_post_meta($event_id, ‘_end’, $end_ts);
update_post_meta($event_id, ‘evcal_srow’, $start_ts);
update_post_meta($event_id, ‘evcal_erow’, $end_ts);
update_post_meta($event_id, ‘evcal_allday’, ‘no’);
update_post_meta($event_id, ‘evcal_hide_endtime’, ‘no’);
// Opret location term hvis den ikke eksisterer
$location_name = $street_address . ‘, ‘ . $city; // Brug både gade og by
$existing_location = term_exists($location_name, ‘event_location’);
if (!$existing_location) {
$new_location = wp_insert_term($location_name, ‘event_location’);
if (!is_wp_error($new_location)) {
$location_id = $new_location[‘term_id’];
} else {
$location_id = 0;
}
} else {
$location_id = $existing_location[‘term_id’];
}
// Tildel location til eventet via term_id
if ($location_id) {
wp_set_object_terms($event_id, $location_id, ‘event_location’);
// Opdater location metadata korrekt
update_term_meta($location_id, ‘location_name’, $location_name);
update_term_meta($location_id, ‘location_address’, $street_address . ‘, ‘ . $city); // Korrekt adresse
update_term_meta($location_id, ‘location_city’, $city); // By
update_term_meta($location_id, ‘location_country’, ‘Danmark’); // Land
}
// Farve på eventet
update_post_meta($event_id, ‘evcal_event_color’, ‘#f39c12’);
// Tilføj event type
wp_set_object_terms($event_id, ‘Privat loppemarked’, ‘event_type’, true);
// Tildel forfatteren til “rasmusheise”
$user = get_user_by(‘login’, ‘rasmusheise’);
if ($user) {
// Opdater forfatteren til eventet
$update_post = [
‘ID’ => $event_id,
‘post_author’ => $user->ID,
];
wp_update_post($update_post);
} else {
// Fejl: Bruger findes ikke
set_transient(‘eventon_form_message’, ‘Fejl: Bruger “rasmusheise” findes ikke.’, 10);
wp_redirect($_SERVER[‘REQUEST_URI’]);
exit;
}
// Bekræftelse og redirect
set_transient(‘eventon_form_message’, ‘Event oprettet!’, 10);
wp_redirect($_SERVER[‘REQUEST_URI’]);
exit;
} else {
set_transient(‘eventon_form_message’, ‘Fejl: kunne ikke oprette event’, 10);
wp_redirect($_SERVER[‘REQUEST_URI’]);
exit;
}
} catch (Exception $e) {
set_transient(‘eventon_form_message’, ‘Fejl i dato eller tidspunkt’, 10);
wp_redirect($_SERVER[‘REQUEST_URI’]);
exit;
}
}
});

i have fixed the issue – apparently it was a conflict, but it is now overcome. however it still has the oddity of not showing under the dashboard add a new event, it has under the “new” both the eventon choice as well as the the other calendar choice, and to tell which one is which one must look at the custom post type appearing in the lower left corner of the link. if you can help with that ?
and in order to allow the custom post type and to edit the event, there is a code snippet added, otherwise the theme over rides it.
If you can help with those, otherwise close the ticket.
Ah, I see.
How you would suggest we force users to submit in the correct format?
Thanks

Acabo de adquirir este addon, es muy interesante y lo echaba de menos, tengo la versión 1.0.1 y a mi se queda la pagina pensando y no me muestra nada.