Skip Navigation

[Resolved] Critical Error When No Post Available

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 5 replies, has 2 voices.

Last updated by Minesh 1 year, 9 months ago.

Assisted by: Minesh.

Author
Posts
#2558363

I am trying to:

I have 7 post types on my website and each post type have hundreds of taxonomies connected to them. Since this is a new website that will be launched in about 2-3 weeks, there isn't any live posts but just some tests posts we added during the development phase. Now that we have deleted these test posts and only have 1 live post, we are getting errors on all taxonomy pages that don't have a post attached to them.

Link to a page where the issue can be seen:

Here is the example of the taxonomy page where we have a post attach to it hidden link

Here is the example of the taxonomy page where we do not have a post attach to it hidden link

I expected to see:

We'll be launching a special campaign for the official launching in about 2 weeks and of course, we'll need to make all taxonomies available on the frontend so our targeted audiences can see there is a category related to their respective businesses.

Instead, I got:

Well, I guess my description above is quite explicit, , right now with this issue, anyone coming to our website will just run away because such pages are showing errors!

#2558683

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Thank you for sharing all required information but when I try to login to wp-admin section of your site using the access details you shared the access details works but it asks for additional authentication code.

Can you please remove the extra authentication code so that I can login to admin and try to resolve your issue.

Most probably I will have to interact with the database so I will have to add plugin that will help me to interact with the database. This is what I can see at first but importantly I will require to login to admin without any extra authentication.

*** 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.

#2558755
#2559421

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

When I checked the page I can see the page is broken due to the following fatal error:

Fatal error: Uncaught Error: __clone method called on non-object in /home/kioubizi/public_html/wp-content/plugins/toolset-blocks/embedded/inc/wpv.class.php:2583 Stack trace: #0 /home/kioubizi/public_html/wp-content/plugins/toolset-blocks/embedded/inc/wpv.class.php(2137): WP_Views->render_view(2163, '9988ce622a34b93...') #1 /home/kioubizi/public_html/wp-content/plugins/toolset-blocks/application/controllers/api/methods/render_view.php(79): WP_Views->render_view_ex(2163, '9988ce622a34b93...') #2 /home/kioubizi/public_html/wp-content/plugins/toolset-blocks/embedded/inc/wpv-api.php(173): OTGS\Toolset\Views\Controller\API\Methods\RenderViewHandler->process_call(Array, Array) #3 /home/kioubizi/public_html/wp-content/plugins/toolset-blocks/embedded/inc/wpv-archive-loop.php(1186): render_view(Array) #4 /home/kioubizi/public_html/wp-includes/class-wp-hook.php(308): WPV_WordPress_Archive_Frontend->loop_end(Object(WP_Query)) #5 /home/kioubizi/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array) #6 /home/kioubizi/public_html/wp-includes/plugin.php(565): WP_Hook->do_action(Array) #7 /home/kioubizi/public_html/wp-includes/class-wp-query.php(3637): do_action_ref_array('loop_end', Array) #8 /home/kioubizi/public_html/wp-includes/query.php(947): WP_Query->have_posts() #9 /home/kioubizi/public_html/wp-content/themes/kadence/template-parts/content/archive.php(30): have_posts() #10 /home/kioubizi/public_html/wp-includes/template.php(785): require('/home/kioubizi/...') #11 /home/kioubizi/public_html/wp-includes/template.php(718): load_template('/home/kioubizi/...', false, Array) #12 /home/kioubizi/public_html/wp-includes/general-template.php(204): locate_template(Array, true, false, Array) #13 /home/kioubizi/public_html/wp-content/themes/kadence/inc/template-functions/archive-functions.php(18): get_template_part('template-parts/...', '') #14 /home/kioubizi/public_html/wp-includes/class-wp-hook.php(308): Kadence\archive_markup('') #15 /home/kioubizi/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array) #16 /home/kioubizi/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #17 /home/kioubizi/public_html/wp-content/themes/kadence/index.php(20): do_action('kadence_archive') #18 /home/kioubizi/public_html/wp-includes/template-loader.php(106): include('/home/kioubizi/...') #19 /home/kioubizi/public_html/wp-blog-header.php(19): require_once('/home/kioubizi/...') #20 /home/kioubizi/public_html/index.php(17): require('/home/kioubizi/...') #21 {main} thrown in /home/kioubizi/public_html/wp-content/plugins/toolset-blocks/embedded/inc/wpv.class.php on line 2583

It seems that the issue is due to PHP version 8.1.x that you are using currently.

As you can see with our requirements Doc under the "Important notes:" section:
- https://toolset.com/toolset-requirements/

PHP 8.1 is currently not supported due to some issues. We’re working on fixing this. In the meantime, please use PHP 8.0 version.

Can you please downgrade the PHP version to PHP 8.0.x and see if that help you to resolve your issue.

#2560187
cPanel - MultiPHP Manager (1).png

Hello,

Looks like the issue has nothing to do with the PHP version, I downgraded to PHP 8.0 as per your recommendation (see attached screenshot) but the issue is still the same hidden link

#2560711

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Thank you for sharing duplicator copy but it seems the duplicator copy you send to me is of different site. I can see the site is "Charlotte Mason in Community" and you want me to check the site is hidden link.

Can you please send me correct duplicator copy of the site "hidden link" and I will start investigate further.

I have set the next reply to private which means only you and I have access to it.

#2560771
#2560909

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Ok - this time the duplicator was correct one.

Honestly - I'm not sure why you feel like we are not given focus to your issue but the thing is that we will require proper details to debug and go have next step.

Now, the issue is happening because:

You have crated the following archive:
- hidden link

The above archive is set to display the post type "Services" and to display the taxonomies "Service Types" and "Service Regions".
Now, you have to remember that you can create custom search for post types and post type archives. Not for taxonomy archives.

The reason why the following taxonomy archive link is working because:
- hidden link
- The above archive show the following post "Web Development Services" and that post is attach to the term "Marketing & Communications" that is why its not displaying any error.

Now, the taxonomy archive link is not working is:
- hidden link
And if you can see there is no post attach to the taxonomy term "auto-accessories".

Basically, you should not create custom search with taxonomy archive and do not add the same taxonomy filter in this case "Service Type".

Obviously - you can add "Service Type" filter for the post type archive (Services) but not with the taxonomy archive "Service Type" and "Service Regions".

So, my suggestion is:
- You should only keep the "Services" post type with the loop selection of your archive so you will have 'Service Type' filer available.
- Create another new archive to display your taxonomies "Service Type" and "Service Regions" and make sure you should not add the taxonomy filters (Service Type / Service Region) to this taxonomy archive