MEC Problem Creating Events

@Rad topic carried over from thread below. Having issues with new event creation form. Can’t select between text and visual views or use add media button

Adding credentials to secure not.

also if possible, can we find a way to change the temperature to F from C? I live in America. Nobody here understands or uses Celcius

Hi There,

Thank you for writing in, I can’t replicate this issue on my end, this could be a conflict between MEC and another plugin of yours, please do a testing for a plugin conflict. You can do this by deactivating all third-party plugins, and see if the problem remains. If it’s fixed, you’ll know a plugin caused the problem, and you can narrow down which one by reactivating them one at a time.

Regarding the temperature, regretfully the MEC has no options for that, or are you referring to a different plugin? Please clarify.

Cheers!

locked out now for too many attempts. Wil retry tomorrow.

No worries. Let us know the result of the test.

Thanks.

login should work now.

Hi @istandard,

The caused is within your Pro Child theme, probably the code that removes the script version. Adding version to the URL helps the site and browser to load the correct files. It serves as similar to a timestamp that makes sure it doesn’t serve a cache when the version changed. Removing the version will, of course, make the URL the same to the older one ( updated or not ). And since it’s just the same, there is no point reloading it from the updated version, it will then serve the cache version.

function _remove_script_version( $src ){ 
$parts = explode( '?', $src ); 	
return $parts[0]; 
} 
add_filter( 'script_loader_src', '_remove_script_version', 15, 1 ); 
add_filter( 'style_loader_src', '_remove_script_version', 15, 1 );

The errors are coming from the cached version of the scripts.

And where do I find the C vs F?

Thanks!

works perfectly. thank you!

https://www.istandardproducers.com/events-me/new-york-creative-space-theplacementgrind/

weather module is located on this page

Hello There,

Regretfully the Weather Module only use Celsius.
Please check out the documentation here: https://darksky.net/dev/docs

Hope this helps.

Great thanks. Also whatever you did to fix the page reverted back to not working. Logged in today to add some events and I can’t select text or visual. I haven’t added any new plugins or updated anything

Hey There,

When you edit an event, there is a JS error on the admin page.

I also noticed that there are several plugins that is out of date. Please make sure the theme and plugins is up to date. In most cases, outdated plugins may create issues in the site. Please go to Dashboard > Updates and make sure that every thing is updated.

Please let us know how it goes.

It worked yesterday. I was wondering why it stopped. I am leery of updating plugins because they usually break things more than help.

I updated all plugins. Still not working properly.

Hello There,

Thanks for updating in! I can confirmed that every thing is up to date yet it is still not working. The JS error is still preset on the page: http://prntscr.com/jywgv0

May we have your permission to do a test for a plugin conflict to find out whether a 3rd party is causing this issue or the WP installation?

Kindly let us know.

yes please

Hi,

Upon checking, I can still see the code below in your child theme’s functions.php file

function _remove_script_version( $src ){ 
$parts = explode( '?', $src );     
return $parts[0]; 
} 
add_filter( 'script_loader_src', '_remove_script_version', 15, 1 ); 
add_filter( 'style_loader_src', '_remove_script_version', 15, 1 );

As suggested by my colleague, kindly remove it as it is the one causing the issue.
Adding versions in the url helps in making sure that new version are being serve and not the cache version.

Thanks

I looked in the child theme folder functions.php file in file zilla and its empty.

Hi @istandard

I confirm the functions.php in your child theme directory is empty, which isn’t correct by the way, you should at least have these lines there:

<?php

// =============================================================================
// FUNCTIONS.PHP
// -----------------------------------------------------------------------------
// Overwrite or add your own custom functions to Pro in this file.
// =============================================================================

// =============================================================================
// TABLE OF CONTENTS
// -----------------------------------------------------------------------------
//   01. Enqueue Parent Stylesheet
//   02. Additional Functions
// =============================================================================

// Enqueue Parent Stylesheet
// =============================================================================

add_filter( 'x_enqueue_parent_stylesheet', '__return_true' );



// Additional Functions
// =============================================================================

Regarding your main issue, I managed to edit one of your published events without any problem, I can navigate between “text” and “visual” tabs, please check this screencast:

This could be something related to your browser cache, try to clear cache from your browser first then recheck this issue, also if you have a caching plugin installed on your site, try to clear cache from there first.

Thanks.

added the above to my child theme functions.php file. I will attempt to clear the cache. I did not delete anything from the functions file by the way. I have no idea how it became blank

Hi @istandard,

I checked and the text, visual, and pro tabs in MEC’s Add new are working on my end. But, it’s a bit slow, please wait a couple of seconds as the browser are still downloading the resources.

Thanks!