manuelpunzanoinstint
Forum Replies Created
-
Hello, Shawon.
Sorry, I need to inform you about another different error that I believe you can help us with. We are experiencing the following problem which occurs randomly. There are some forms that, for some reason we do not understand, give us the message “The form was unable to submit. Please contact the site administrator.”
We have seen that this message is a response from the file admin-ajax.php. We are trying to find out the reasons why this error might be occurring. We have ruled out the issue being related to the data entered in the form because using the same data sometimes works and sometimes does not.
- This reply was modified 4 months, 3 weeks ago by manuelpunzanoinstint.
Hello Jarno.
Thank you very much for your help, now the Google Maps map is displayed.
Greetings.
Hello Jarnovos,
As you instructed, I have removed the custom plugin from MU plugins, but the map still isn’t displaying. I’m still encountering the same error (ReferenceError: google is not defined…). It only resolves when I deactivate the plugin.
Thank you.
Forum: Plugins
In reply to: [The Events Calendar] Problems with the event calendar links (/?event)Hello Frank. Thank you for the information provided, but unfortunately, I have made the code substitution, but I am still getting the same results. I am attaching my code for your reference.
public function filter_permalinks_with_provisional_id( $post_link, WP_Post $post ) {
if ( $post->post_type !== TEC::POSTTYPE ) {
return $post_link;
}
// We only need to fix provisional posts, WPML can’t find us by that ID.
if ( ! tribe( Provisional_Post::class )->is_provisional_post_id( $post->ID ) ) {
return $post_link;
}
// Recurring events are already being handled properly elsewhere. If that changes remove this conditional.
if ( tribe_is_recurring_event( $post->ID ) ) {
return $post_link;
}
// Remove the home URL from permalink.
//$post_link = str_replace( array( home_url( ‘/’ ), site_url( ‘/’ ) ), ”, $post_link );
$post_link = str_replace( array( home_url( ‘/’ ), site_url( ‘/’ ), get_option( ‘home’ ) ), ”, $post_link );
// Add the home URL back and retain the lang query param.
return home_url( user_trailingslashit( $post_link ) );
}