Skip Navigation

[Resolved] Archive Page Blank

This support ticket is created 3 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

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
9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 - - 9: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: Africa/Casablanca (GMT+01:00)

This topic contains 3 replies, has 2 voices.

Last updated by Simone Tacconi 3 years, 10 months ago.

Assisted by: Jamal.

Author
Posts
#2166615

HI,

Tell us what you are trying to do?
Every Custom Post / Custom Taxonomy Archive page in frontend is blank, even if populated in backend
Other Taxonomies shows regular content.

Is there any documentation that you are following? No

Is there a similar example that we can see? No

What is the link to your site?

FRONTEND
On this URL hidden link
Click on a "Produzioni" Term (Taxonomy of Azienda CPT) -> blank page
Try this other URL: hidden link (should display a list of "Azienda" CPT) -> blank
Try also other URL hidden link (should display a list of "Materiale" CPT) -> blank

Blog WP Category:
hidden link -> display results

Than I suppose it's something wrong with Custom Archive.

ADMIN
(Credentials moved to private reply)

Thanks in davance for you support,
Simone

#2167139

Hello Simone and thank you for contacting Toolset support.

It seemed to me like a compatibility issue. Most probably the theme is not compatible with Toolset. In fact, I installed the 2021 theme and the archives worked. However, this has created some errors and I am not able to access the themes page(to switch back) or the archive templates. I am getting similar errors to this hidden link

I would need FTP access to investigate these issues and find out the real cause behind them. Your next reply will be private to let you share credentials safely.

#2167791

Thank you for the credentials. I activated PHP debugging and I was able to recover the website and find out the cause of the issue. It seems that a function(sf_set_sidebar_global) is not declared when the archive template is loading. Check this screenshot hidden link

Because of the prefix "sf_", I would say that the function should come from the Swift Framework inside the theme. And I recommend that you reach out to the theme's support to help fix this issue once for all.

As a workaround, I have added the following snippet to the child theme's functions.php file, but it revealed that another function does not exists, check this screenshot hidden link

if ( !function_exists( 'sf_set_sidebar_global' ) ) {
    function sf_set_sidebar_global(){}
}

So, I added another code to define that function too. But I got another error hidden link
So I added another code to define that function too, and I finally got the archive to render posts. Check this screenshot hidden link
The final code used is:

if ( !function_exists( 'sf_set_sidebar_global' ) ) {
    function sf_set_sidebar_global(){}
}

if ( !function_exists( 'sf_breadcrumbs' ) ) {
    function sf_breadcrumbs(){}
}

if ( !function_exists( 'sf_get_post_item' ) ) {
    function sf_get_post_item(){}
}

Please reach out to the theme's support team for assistance. These errors are generated from the theme and there is nothing we can do from our side.

I hope this helps. Let me know if you have any questions.

#2168105

Thank you Jamal, I'll try to contact Theme support.
My issue is resolved now. Thank you!