hi I have this error only with Chrome on pc
view image1
The theme and the Ocean Extra plugin is not update because it gives me the following errors
- tabs don't work if I update the theme see page and image 2
- it loses the layout if I update Ocean Extra it becomes tight see image 3
Can you help me?
Thanks
debagging
fatal error: Uncaught Error: Class 'OTGS\Toolset\Access\Controllers\UploadPermissions' not found in /home/viaggipre/domains/viaggipreziosi.it/public_html/wp-content/plugins/types-access/application/models/capabilities.php:613 Stack trace: #0 /home/viaggipre/domains/viaggipreziosi.it/public_html/wp-content/plugins/types-access/application/controllers/filters/backend_filters.php(534): OTGS\Toolset\Access\Models\Capabilities->get_capabilities_by_user_permissions() #1 /home/viaggipre/domains/viaggipreziosi.it/public_html/wp-includes/class-wp-hook.php(303): OTGS\Toolset\Access\Controllers\Filters\BackendFilters->toolset_access_has_cap_filter() #2 /home/viaggipre/domains/viaggipreziosi.it/public_html/wp-includes/plugin.php(189): WP_Hook->apply_filters() #3 /home/viaggipre/domains/viaggipreziosi.it/public_html/wp-includes/class-wp-user.php(786): apply_filters() #4 /home/viaggipre/domains/viaggipreziosi.it/public_html/wp-includes/capabilities.php(801): WP_User->has_cap() #5 /home/viaggipre/domains/viaggipreziosi.it/public_html/wp in /home/viaggipre/domains/viaggipreziosi.it/public_html/wp-content/plugins/types-access/application/models/capabilities.php on line 613
Notice: is_embed è stato richiamato in maniera scorretta. I tag condizionali di una query non funzionano prima che la query sia stata eseguita. Prima dell'esecuzione restituiscono sempre il valore False. Leggi Debugging in WordPress per maggiori informazioni. (Questo messaggio è stato aggiunto nella versione 3.1.0.) in /home/viaggipre/domains/viaggipreziosi.it/public_html/wp-includes/functions.php on line 5663
Notice: is_search è stato richiamato in maniera scorretta. I tag condizionali di una query non funzionano prima che la query sia stata eseguita. Prima dell'esecuzione restituiscono sempre il valore False. Leggi Debugging in WordPress per maggiori informazioni. (Questo messaggio è stato aggiunto nella versione 3.1.0.) in /home/viaggipre/domains/viaggipreziosi.it/public_html/wp-includes/functions.php on line 5663
The theme and the Ocean Extra plugin is not update because it gives me the following errors
- tabs don't work if I update the theme see page and image 2
- it loses the layout if I update Ocean Extra it becomes tight see image 3
To better assist you with this issue, I wonder if you have a test site where we can perform the update of the Ocean Extra plugin and check these issues?
If yes, please share credentials to it on your next private reply. If not, let me know and maybe we can migrate your website into our platform and check the issues on it.
Regarding the issue with the site layout, it turns out to be caused by a Fatal Error on the "Mailjet for WordPress" plugin. As soon as I deactivated it the issue disappeared. I left it deactivated for the moment.
Regarding the tabs issue, can you share a URL where I can see it?
It seems that the OceanWP theme listen for clicks on tabs links and abort it. Toolset does not get the click event to show the corresponding tab.
This is a compatibility bug that I was able to reproduce on a clean install, with the OceanWP theme without the Ocean Extra plugin. You can log in to my test site with this URL hidden link
Check the issue here hidden link
I am escalating this issue to our 2nd Tier for another evaluation. And I'll get back to you as soon as we have something to share.
As a workaround, you can add the following Javascript code to your theme's or to the layouts:
jQuery('.nav-tabs a.tab-link').on('click', function(e){
e.preventDefault();
e.stopPropagation();
var tabLink = jQuery(this)
var wrapper = tabLink.closest('.nav-tabs').parent()
wrapper.find('li.active').removeClass('active')
tabLink.parent().addClass('active')
wrapper.find('.tab-pane.active').removeClass('active')
jQuery(tabLink.attr('href')).addClass('active')
})
The problem occurs because of some custom scroll handler added by the theme, which wrongly gets attached to the tab links.
The theme file responsible is oceanwp/assets/js/theme.vanilla.min.js, which gets enqueued in the theme's functions.php file.
We edited that js file to disable the custom scroll handler, and the tabs then work (on your sandbox).
Naturally, you shouldn’t edit the theme files directly. So, I come up with the following code that will remove the parent's theme javascript file and use another one, a patched one that we are sharing here http://toolset.com/patches/theme.vanilla.min.js
Please add a copy of this patched file to the child theme, then add the following code at the bottom of the child's theme functions.php file:
function oceanwp_child_replace_parent_script() {
// Dynamically get version number of the parent stylesheet (lets browsers re-cache your stylesheet when you update your theme)
$theme = wp_get_theme( 'OceanWP' );
$version = $theme->get( 'Version' );
$dir = OCEANWP_JS_DIR_URI;
wp_dequeue_script( 'oceanwp-main' );
wp_deregister_script( 'oceanwp-main' );
$mainScriptDependencies = array( 'jquery' );
if ( ! get_theme_mod( 'ocean_disable_lightbox', false ) ) {
wp_register_script( 'ow-magnific-popup', $dir . 'vendors/magnific-popup.min.js', array( 'jquery' ), $version, true );
array_push( $mainScriptDependencies, 'ow-magnific-popup' );
}
wp_enqueue_script( 'oceanwp-main', get_stylesheet_directory_uri() . '/theme.vanilla.min.js', $mainScriptDependencies, $version, true );
wp_localize_script( 'oceanwp-main', 'oceanwpLocalize', OCEANWP_Theme_Class::localize_array() );
}
add_action( 'wp_print_scripts', 'oceanwp_child_replace_parent_script' );
Please note that you may need another file if you update the oceanWP theme. I suggest that you reach out to there support to report this issue. Maybe they can have a permanent fix.