Home › Toolset Professional Support › [Closed] After updating, I got an issue with my site. Toolset
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 10:00 – 13:00 | 10:00 – 13:00 | 10:00 – 13:00 | 10:00 – 13:00 | 10:00 – 13:00 | - |
- | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | - |
Supporter timezone: Asia/Kolkata (GMT+05:30)
This topic contains 1 reply, has 2 voices.
Last updated by Minesh 1 year, 1 month ago.
Assisted by: Minesh.
Tell us what you are trying to do?
My site was working well, I have a couple ofmethods I developed a couple of years ago and now without being modified I am getting errors:
function rst_getContratoInPago($post_id = ''){ //post_id es el id del pago de wordpress. if($post_id == ''){ $post_id = get_the_ID(); } //dclog("Getting CONTRATO connected to PAGO with ID: " . $post_id); $contrato_id = toolset_get_related_post( $post_id, 'contrato-pago' ); //error_log( print_r("Contrato ID" . $contrato_id, true ) ); if($contrato_id){ return $contrato_id; }else{ return 0; } }
Is there any documentation that you are following?
https://toolset.com/documentation/customizing-sites-using-php/post-relationships-api/#toolset_get_related_post
Is there a similar example that we can see?
Check the code in the screenshot and follow the log reference to line and method.
What is the link to your site?
hidden link
[13-Aug-2024 17:07:47 UTC] PHP Fatal error: Uncaught InvalidArgumentException: The query_by_role argument must not be set when passing an array to the $query_by_elements parameter. in /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-content/plugins/cred-frontend-editor/vendor/toolset/toolset-common/inc/autoloaded/interop/commands/RelatedPosts.php:233
Stack trace:
#0 /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-content/plugins/cred-frontend-editor/vendor/toolset/toolset-common/inc/autoloaded/interop/commands/RelatedPosts.php(177): OTGS\Toolset\Common\Interop\Commands\RelatedPosts->set_query_by_elements(Array, 'child')
#1 /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-content/plugins/cred-frontend-editor/vendor/toolset/toolset-common/inc/public_api/m2m.php(159): OTGS\Toolset\Common\Interop\Commands\RelatedPosts->__construct(Array, 'contrato-pago', Array)
#2 /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-content/plugins/dcsoft/includes/helper-functions.php(42): toolset_get_related_post(Array, 'contrato-pago')
#3 /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-content/plugins/dcsoft/includes/helper-functions.php(134): rst_getContratoInPago(Array)
#4 /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-includes/shortcodes.php(434): rst_getEstudianteInPago(Array, '', 'rst_getEstudian...')
#5 [internal function]: do_shortcode_tag(Array)
#6 /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-includes/shortcodes.php(273): preg_replace_callback('/\\[(\\[?)(rst_ge...', 'do_shortcode_ta...', '<td class="col-...')
#7 /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-includes/class-wp-hook.php(324): do_shortcode('<td class="col-...')
#8 /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-includes/plugin.php(205): WP_Hook->apply_filters('<td class="col-...', Array)
#9 /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-content/plugins/wp-views/application/models/shortcode/post/body.php(245): apply_filters('the_content', '<td class="col-...')
#10 /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-content/plugins/wp-views/application/models/shortcode/post/body.php(147): WPV_Shortcode_Post_Body->get_content_template_value()
#11 /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-content/plugins/wp-views/application/models/shortcode/base_view.php(32): WPV_Shortcode_Post_Body->get_value(Array, '')
#12 /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-includes/shortcodes.php(434): WPV_Shortcode_Base_View->render(Array, '', 'wpv-post-body')
#13 [internal function]: do_shortcode_tag(Array)
#14 /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-includes/shortcodes.php(273): preg_replace_callback('/\\[(\\[?)(wpv\\-p...', 'do_shortcode_ta...', '\n\t\t\t<tr class="...')
#15 /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-content/plugins/wp-views/embedded/inc/wpv-shortcodes.php(2594): do_shortcode('\n\t\t\t<tr class="...')
#16 /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-content/plugins/wp-views/embedded/inc/wpv.class.php(2641): wpv_do_shortcode('\n\t\t\t<tr class="...')
#17 /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-content/plugins/wp-views/embedded/inc/wpv.class.php(2172): WP_Views->render_view(89326, '1a0ac12a9898c21...')
#18 /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-content/plugins/wp-views/application/controllers/api/methods/render_view.php(62): WP_Views->render_view_ex(89326, '1a0ac12a9898c21...')
#19 /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-content/plugins/wp-views/embedded/inc/wpv-api.php(173): OTGS\Toolset\Views\Controller\API\Methods\RenderViewHandler->process_call(Array, Array)
#20 /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-content/plugins/cred-frontend-editor/vendor/toolset/toolset-common/inc/autoloaded/interop/handler/elementor/widgets/view/view.php(176): render_view(Array)
#21 /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-content/plugins/cred-frontend-editor/vendor/toolset/toolset-common/inc/autoloaded/interop/handler/elementor/widgets/view/view.php(102): OTGS\Toolset\Common\Interop\Handler\Elementor\ViewWidget->render_view()
#22 /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-content/plugins/cred-frontend-editor/vendor/toolset/toolset-common/inc/autoloaded/interop/handler/elementor/widgets/view/view.php(93): OTGS\Toolset\Common\Interop\Handler\Elementor\ViewWidget->render_frontend_widget()
#23 /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-content/plugins/elementor/includes/base/controls-stack.php(2325): OTGS\Toolset\Common\Interop\Handler\Elementor\ViewWidget->render()
#24 /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-content/plugins/elementor/includes/base/widget-base.php(635): Elementor\Controls_Stack->render_by_mode()
#25 /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-content/plugins/elementor/includes/base/widget-base.php(776): Elementor\Widget_Base->render_content()
#26 /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-content/plugins/elementor/includes/base/element-base.php(483): Elementor\Widget_Base->print_content()
#27 /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-content/plugins/elementor/includes/base/element-base.php(1440): Elementor\Element_Base->print_element()
#28 /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-content/plugins/elementor/includes/base/element-base.php(483): Elementor\Element_Base->print_content()
#29 /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-content/plugins/elementor/includes/base/element-base.php(1440): Elementor\Element_Base->print_element()
#30 /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-content/plugins/elementor/includes/base/element-base.php(483): Elementor\Element_Base->print_content()
#31 /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-content/plugins/elementor/includes/base/element-base.php(1440): Elementor\Element_Base->print_element()
#32 /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-content/plugins/elementor/includes/base/element-base.php(483): Elementor\Element_Base->print_content()
#33 /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-content/plugins/elementor/includes/base/element-base.php(1440): Elementor\Element_Base->print_element()
#34 /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-content/plugins/elementor/includes/base/element-base.php(483): Elementor\Element_Base->print_content()
#35 /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-content/plugins/elementor/core/base/document.php(1875): Elementor\Element_Base->print_element()
#36 /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-content/plugins/elementor/core/base/document.php(1800): Elementor\Core\Base\Document->do_print_elements(Array)
#37 /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-content/plugins/elementor/core/base/document.php(1201): Elementor\Core\Base\Document->print_elements(Array)
#38 /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-content/plugins/elementor/includes/frontend.php(1158): Elementor\Core\Base\Document->print_elements_with_wrapper(Array)
#39 /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-content/plugins/elementor/includes/frontend.php(1053): Elementor\Frontend->get_builder_content(6646)
#40 /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-includes/class-wp-hook.php(324): Elementor\Frontend->apply_builder_in_content('<p>Enlaces r\xC3\xA1p...')
#41 /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-includes/plugin.php(205): WP_Hook->apply_filters('<p>Enlaces r\xC3\xA1p...', Array)
#42 /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-includes/post-template.php(256): apply_filters('the_content', '<p>Enlaces r\xC3\xA1p...')
#43 /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-content/themes/astra/template-parts/single/content-header.php(37): the_content()
#44 /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-includes/template.php(812): require('/home/dh_ypqwif...')
#45 /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-includes/template.php(745): load_template('/home/dh_ypqwif...', false, Array)
#46 /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-includes/general-template.php(206): locate_template(Array, true, false, Array)
#47 /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-content/themes/astra/inc/template-parts.php(376): get_template_part('template-parts/...')
#48 /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-includes/class-wp-hook.php(324): astra_entry_content_single_page_template('')
#49 /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#50 /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#51 /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-content/themes/astra/inc/core/theme-hooks.php(452): do_action('astra_entry_con...')
#52 /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-content/themes/astra/template-parts/content-page.php(26): astra_entry_content_single_page()
#53 /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-includes/template.php(812): require('/home/dh_ypqwif...')
#54 /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-includes/template.php(745): load_template('/home/dh_ypqwif...', false, Array)
#55 /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-includes/general-template.php(206): locate_template(Array, true, false, Array)
#56 /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-content/themes/astra/inc/class-astra-loop.php(111): get_template_part('template-parts/...', 'page')
#57 /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-includes/class-wp-hook.php(324): Astra_Loop->template_parts_page('')
#58 /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#59 /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#60 /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-content/themes/astra/inc/class-astra-loop.php(199): do_action('astra_page_temp...')
#61 /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-content/themes/astra/inc/class-astra-loop.php(176): Astra_Loop->loop_markup(true)
#62 /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-includes/class-wp-hook.php(324): Astra_Loop->loop_markup_page('')
#63 /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#64 /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#65 /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-content/themes/astra/inc/core/theme-hooks.php(267): do_action('astra_content_p...')
#66 /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-content/themes/astra/page.php(32): astra_content_page_loop()
#67 /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-includes/template-loader.php(106): include('/home/dh_ypqwif...')
#68 /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-blog-header.php(19): require_once('/home/dh_ypqwif...')
#69 /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/index.php(17): require('/home/dh_ypqwif...')
#70 {main}
thrown in /home/dh_ypqwif/dcsoft.drivingcenter.com.pa/wp-content/plugins/cred-frontend-editor/vendor/toolset/toolset-common/inc/autoloaded/interop/commands/RelatedPosts.php on line 233
Hello. Thank you for contacting the Toolset support.
That is strange.
Can you please share problem URL where I can see the Fatal error you shared as well as admin access details.
Please share details where you added those custom shortcodes.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
The topic ‘[Closed] After updating, I got an issue with my site. Toolset’ is closed to new replies.