Pedro Cavaco Henriques
Forum Replies Created
-
Hi,
Still struggling with this error (https://monosnap.com/file/IzerHFNOaVjQloQBdnJX3s40bJzV9o).
Any idea how to diagnose and fix it?
Thanks
Ok, thanks for the support.
Forum: Plugins
In reply to: [Better Plugin Compatibility Control] Undefined property errorGreat! Thanks, @alphawolf
Forum: Plugins
In reply to: [Better Plugin Compatibility Control] Undefined property errorHello, @alphawolf
I found that the error is related with WPML and I think I get a error line for each WPML plugin that is installed (https://monosnap.com/file/HZLpSraXVLKojnJCWQkW11uqsGg96Y).
WPML plugins aren’t available at https://www.ads-software.com.
Does it make sense?
Thanks
Hi @renehermi
Yes, nelio-content\includes\class-nelio-content-analytics-helper.php exists in staging site.
Yes, same version (fresh new staging site).
With all plugins deactivated (by renaming nelio-content folder…), I can activate Nelio Content plugin from the admin dashboard but get same error when trying to deactivated).
I try also to deleted the plugin from the staging site, install it again, activated it but when trying to deactivated got the same error. All other plugins were disabled through the process.
Any new hint to solve it?
Thanks
Hi @renehermi
I get no error while disabling Nelio plugin on the live site. I get the error on a fresh created site The error I get on the staging site.
In a fresh staging site, with all but Nelio plugin disabled (https://monosnap.com/file/5xZazs8D3rnNFKdWzQFDMf1BuOwOYa), I still got the error when trying to disable it:
Fatal error: Uncaught Error: Class ‘Nelio_Content_Analytics_Helper’ not found in /home/cebsolut/public_html/staging01/wp-content/plugins/nelio-content/includes/utils/class-nelio-content-deactivator.php:37 Stack trace: #0 /home/cebsolut/public_html/staging01/wp-content/plugins/nelio-content/nelio-content.php(47): Nelio_Content_Deactivator::deactivate() #1 /home/cebsolut/public_html/staging01/wp-includes/class-wp-hook.php(286): deactivate_nelio_content(false) #2 /home/cebsolut/public_html/staging01/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array) #3 /home/cebsolut/public_html/staging01/wp-includes/plugin.php(465): WP_Hook->do_action(Array) #4 /home/cebsolut/public_html/staging01/wp-admin/includes/plugin.php(792): do_action(‘deactivate_neli…’, false) #5 /home/cebsolut/public_html/staging01/wp-admin/plugins.php(192): deactivate_plugins(‘nelio-content/n…’, false, false) #6 {main} thrown in /home/cebsolut/public_html/staging01/wp-content/plugins/nelio-content/includes/utils/class-nelio-content-deactivator.php on line 37
@renehermi, meanwhile, the other similar issue I was dealing with was solved (https://www.ads-software.com/support/topic/deactivating-the-events-calendar-is-causing-technical-difficulties/#post-11681848) althougt in the case of Nelio I don’t have any custom function.
Does this help solve this problem?
Thanks
Thanks @tribalmike
It worked perfectly. No issues now while deactivating TEC plugin in the staging site.
Thanks again
Hi, @aguseo
Sorry, not skilled enough to digest your line of code… ??
How it would update the code I mention above that I’m using in the site?
Thanks
Thanks, David
Back to the WP Staging developer ??
Hi, David
That would be a workaround but I prefer to do it from admin dashboard. WP Staging push the fix to you as the message apparently is originated from Nelio plugin.
Could you look at it and suggest a fix? Or clarify what is happening and I would check back with WP Staging developer?
Thanks
Forum: Plugins
In reply to: [Better Admin Bar] gap between sticky barsForum: Plugins
In reply to: [Better Plugin Compatibility Control] Undefined property errorGetting it too:
Notice: Undefined property: stdClass::$tested in /home/cebsolut/public_html/staging01/wp-content/plugins/better-plugin-compatibility-control/better-plugin-compatibility-control.php on line 200
Notice: Undefined property: stdClass::$requires in /home/cebsolut/public_html/staging01/wp-content/plugins/better-plugin-compatibility-control/better-plugin-compatibility-control.php on line 198
@alphawolf, can you update us about these notices?
Thanks
From DEBUG log before trying to deactivate the TEC:
PHP Notice: Undefined index: tribe_event_display in /home/cebsolut/public_html/staging01/wp-content/themes/Impreza-child/functions.php on line 17
Being line 17: $past_ajax = (defined( ‘DOING_AJAX’ ) && DOING_AJAX && $_REQUEST[‘tribe_event_display’] === ‘past’) ? true : false;
After trying deactivating TEC and getting into “technical difficulties” with the DEBUG activated got message:
Fatal error: Uncaught Error: Call to undefined function tribe_is_past() in /home/cebsolut/public_html/staging01/wp-content/themes/Impreza-child/functions.php:18 Stack trace: #0 /home/cebsolut/public_html/staging01/wp-includes/class-wp-hook.php(288): tribe_past_reverse_chronological(Array) #1 /home/cebsolut/public_html/staging01/wp-includes/plugin.php(251): WP_Hook->apply_filters(Array, Array) #2 /home/cebsolut/public_html/staging01/wp-includes/class-wp-query.php(3152): apply_filters_ref_array(‘the_posts’, Array) #3 /home/cebsolut/public_html/staging01/wp-includes/class-wp-query.php(3404): WP_Query->get_posts() #4 /home/cebsolut/public_html/staging01/wp-includes/post.php(1961): WP_Query->query(Array) #5 /home/cebsolut/public_html/staging01/wp-content/plugins/us-core/functions/helpers.php(2058): get_posts(Array) #6 /home/cebsolut/public_html/staging01/wp-content/plugins/us-core/config/theme-options.php(25): us_get_posts_titles_for(‘page’) #7 /home/cebsolut/public_html/staging01/wp-content/plugins/us-core/functions/helpers.p in /home/cebsolut/public_html/staging01/wp-content/themes/Impreza-child/functions.php on line 18
and from DEBUG log:
[26-Jun-2019 13:42:52 UTC] PHP Fatal error: Uncaught Error: Call to undefined function tribe_is_past() in /home/cebsolut/public_html/staging01/wp-content/themes/Impreza-child/functions.php:18
Stack trace:
#0 /home/cebsolut/public_html/staging01/wp-includes/class-wp-hook.php(288): tribe_past_reverse_chronological(Array)
#1 /home/cebsolut/public_html/staging01/wp-includes/plugin.php(251): WP_Hook->apply_filters(Array, Array)
#2 /home/cebsolut/public_html/staging01/wp-includes/class-wp-query.php(3152): apply_filters_ref_array(‘the_posts’, Array)
#3 /home/cebsolut/public_html/staging01/wp-includes/class-wp-query.php(3404): WP_Query->get_posts()
#4 /home/cebsolut/public_html/staging01/wp-includes/post.php(1961): WP_Query->query(Array)
#5 /home/cebsolut/public_html/staging01/wp-content/plugins/us-core/functions/helpers.php(2058): get_posts(Array)
#6 /home/cebsolut/public_html/staging01/wp-content/plugins/us-core/config/theme-options.php(25): us_get_posts_titles_for(‘page’)
#7 /home/cebsolut/public_html/staging01/wp-content/plugins/us-core/functions/helpers.p in /home/cebsolut/public_html/staging01/wp-content/themes/Impreza-child/functions.php on line 18
[26-Jun-2019 13:42:52 UTC] PHP Fatal error: Uncaught Error: Call to undefined function tribe_is_past() in /home/cebsolut/public_html/staging01/wp-content/themes/Impreza-child/functions.php:18
Stack trace:
#0 /home/cebsolut/public_html/staging01/wp-includes/class-wp-hook.php(288): tribe_past_reverse_chronological(Array)
#1 /home/cebsolut/public_html/staging01/wp-includes/plugin.php(251): WP_Hook->apply_filters(Array, Array)
#2 /home/cebsolut/public_html/staging01/wp-includes/class-wp-query.php(3152): apply_filters_ref_array(‘the_posts’, Array)
#3 /home/cebsolut/public_html/staging01/wp-includes/class-wp-query.php(3404): WP_Query->get_posts()
#4 /home/cebsolut/public_html/staging01/wp-includes/post.php(1961): WP_Query->query(Array)
#5 /home/cebsolut/public_html/staging01/wp-includes/post.php(614): get_posts(Array)
#6 /home/cebsolut/public_html/staging01/wp-content/plugins/wpml-media-translation/classes/media-translation/class-wpml-media-post-with-media-files.php(183): get_children(Array)
#7 /home/cebsolut/public_html/staging01/wp-content/plugins/wpml-med in /home/cebsolut/public_html/staging01/wp-content/themes/Impreza-child/functions.php on line 18
[26-Jun-2019 13:43:55 UTC] PHP Notice: Undefined index: tribe_event_display in /home/cebsolut/public_html/staging01/wp-content/themes/Impreza-child/functions.php on line 17
[26-Jun-2019 13:43:55 UTC] PHP Fatal error: Uncaught Error: Call to undefined function tribe_is_past() in /home/cebsolut/public_html/staging01/wp-content/themes/Impreza-child/functions.php:18
Stack trace:
#0 /home/cebsolut/public_html/staging01/wp-includes/class-wp-hook.php(288): tribe_past_reverse_chronological(Array)
#1 /home/cebsolut/public_html/staging01/wp-includes/plugin.php(251): WP_Hook->apply_filters(Array, Array)
#2 /home/cebsolut/public_html/staging01/wp-includes/class-wp-query.php(3152): apply_filters_ref_array(‘the_posts’, Array)
#3 /home/cebsolut/public_html/staging01/wp-includes/class-wp-query.php(3404): WP_Query->get_posts()
#4 /home/cebsolut/public_html/staging01/wp-includes/post.php(1961): WP_Query->query(Array)
#5 /home/cebsolut/public_html/staging01/wp-content/plugins/us-core/functions/helpers.php(2058): get_posts(Array)
#6 /home/cebsolut/public_html/staging01/wp-content/plugins/us-core/config/theme-options.php(25): us_get_posts_titles_for(‘page’)
#7 /home/cebsolut/public_html/staging01/wp-content/plugins/us-core/functions/helpers.p in /home/cebsolut/public_html/staging01/wp-content/themes/Impreza-child/functions.php on line 18Any suggestion to fix it?
Thanks
Hello,
Thanks for the feedback. I do have some custom code applied to functions.php and related with The Events Calendar plugin:
/* Order events in main blog loop by post date. * https://support.theeventscalendar.com/641498-Order-events-in-main-blog-loop-by-post-date */ add_action( 'pre_get_posts', 'tribe_post_date_ordering', 51 ); function tribe_post_date_ordering( $query ) { if ( ! empty( $query->tribe_is_multi_posttype ) ) { remove_filter( 'posts_fields', array( 'Tribe__Events__Query', 'multi_type_posts_fields' ) ); $query->set( 'order', 'DESC' ); } } /* Changes past event views to reverse chronological order */ function tribe_past_reverse_chronological ($post_object) { $past_ajax = (defined( 'DOING_AJAX' ) && DOING_AJAX && $_REQUEST['tribe_event_display'] === 'past') ? true : false; if(tribe_is_past() || $past_ajax) { $post_object = array_reverse($post_object); } return $post_object; } add_filter('the_posts', 'tribe_past_reverse_chronological', 100);
Do I have to change this code in anyway to solve the issue?
Meanwhile, I will turn on WP_DEBUG and check get back with the results.
Thanks
Hello, Vinod
Last theme update actually had a issue that will be fix in next release. For the current installation, core php were fixed by theme developer and it’s all working again although still with a different custom CSS to omit the search button:
.search-form .search-submit { display: none; }
Thanks for all.
Cheers