Skip Navigation

[Resolved] Views in sidebar inconsistent between pages

This support ticket is created 2 years, 7 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 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 32 replies, has 3 voices.

Last updated by Shane 2 years, 7 months ago.

Assisted by: Shane.

Author
Posts
#2370341
example_2_image_2.jpg
example_2_image_1.jpg
example_1_image_2.jpg
example_1_image_1.jpg

This site has connections between various post types. Top level is Authors. Then authors have books. Then books have Additional Info pages (Reviews, Guides, etc). The left sidebar for the various pages has worked for several years like this:

On Book pages, the left sidebar shows the Author, the author's other books if any, the Additional Info for the book, if any and links to buy the book.

When you click on an Additional Info (i.e. Reviews), the left sidebar remains the same on that page.

Now on some books (not all) when you click on an Additional Info, the other additional info links disappear. I will upload example screenshots of one that is not working and one that is working.

Troubleshooting I have done: Cleared the toolset cache, run a repair on the database tables, cleared browser cache. I cloned the site to UpdraftPlus and deactivated all but the Toolset and Custom Sidebar plugins. None of these solved the problem.

I can make you a user login to the regular site as long as you don't make any changes. I can make you a user login to the cloned site if you want to test changes.

Example 1 of a book that is not working: hidden link. You'll see 2 links in the More About This Book section of the left sidebar. Click on either and on the following page, the other link disappears from the sidebar.

Example 2 of a book that is working: hidden link. Again 2 links but clicking on either does not change sidebar.

#2370493

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Basically, Toolset does not control the sidebar's added by themes until and unless you are using the Toolset integrated themes.

However, I see that you added view to sidebar to display reviews. Can you please share admin access details so I can check whats going wrong with your setup.

I see on the following post, there is no review display on left sidebar.
=> hidden link

Do you confirm that for the above post there is reviews already available to display?

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin) 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.

#2370837

Minesh
Supporter

Languages: English (English )

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

Could you please check now: hidden link

I can see the review is displayed now.

#2370853
6BFBA1B0-78FE-4657-9802-2820A245F988.jpeg

No it’s not working. The sidebar should look like this attached screenshot even after you click one of the links. So if you click Reviews, you’ll see that Story Behind the Book disappears from the sidebar.

#2371815

Minesh
Supporter

Languages: English (English )

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

It seems there is a possibility that when you migrate to new relationship some connection may be lost.

Do you have backup before you migrated to new post relationship? Do you have staging site where we can see its working as expected?

If you setup a staging site with the current setup, I will try to migrate to old relationship to see if it works as expected as before and we can test if its working as expected before you migrate to new post relationship.

Did you have setup any many-to-many post relationship? if yes, with what post types you setup many to many post relationship?

#2372493

Minesh
Supporter

Languages: English (English )

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

From the following link:
- hidden link

*** Please make a FULL BACKUP of your database and website.***
You can rollback to your the legacy (old) post relationship from the section "Rollback after the migration of the relationship data structures". What if you try to rollback so that we will be able to know if it used to work before migrating the post relationship to new many-to-many post relationship.

Do you see it works as expected once you rollback it?

#2372729
656909E2-EA0E-4AB7-B3BA-D82EEBA82925.jpeg
AE71503C-9FCC-4C01-B50D-387102251CA4.jpeg

I did the rollback. It did not fix the problem and caused others. I’ve left it in the staged site and attached some screenshots.

On the Nora book — it’s not finding any of the author or book pages for purposes of the sidebar (Items not found in the screenshot). Also missing the right sidebar

On The King book == same issue with missing info when opening an Other Info page.

#2374725

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Christine,

How was the website migrated ? It appears that the relationships as Minesh says aren't present on the staging site.
hidden link

As you see above under the relationships there aren't any attached posts to here. With this we will need to work on the live site unless the issue with the duplicate can be resolved.

Please let me know.
Thanks,
Shane

#2374785

The rollback didn't work and messed things up so I deleted the clone and I'm creating a new clone. I will let you know when it is ready.

#2376391

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Christine,

Is the clone site ready ?

I've enabled the private fields once more.

Thanks,
Shane

#2376595

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Christine,

Thank you, I was able to log into the site.

However i'm struggling to find the view that gives the data for the More About This Book section. Based on what I see on the page, this view below should be controlling that section but i'm not seeing the heading in the view.
hidden link

Please let me know exactly where I should be looking.

Thanks,
Shane

#2376617
2A713207-6431-4D8C-933A-D41D2063FC8D.jpeg
574B5711-C7F1-4D7D-9464-211BEA8998E8.jpeg
FD950407-404C-4A58-A5EB-E65BF065A75E.jpeg

The pages for this section are a post type called Additional Book Info. I’m attaching some screenshots that will help. The middle one show a Review page and in the right sidebar, you’ll see the content template. The first one is the bottom of that page where this Review was attached to the appropriate book. The last one if the View for Additional Book Info.

#2377293

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Christine,

When I edited this view, none of the changes are being reflected on the frontend here.
hidden link

Only modifying this view below shows any changes in the sidebar.
hidden link

Specifically when I remove this section from the view, I can clearly see changes.

<div class="author-books-top">
        <h5 style="margin-top:10px;margin-bottom:5px;padding-bottom:5px;border-bottom:1px dotted #cfcfcf;">The Books</h5>
			[wpv-post-body view_template="Author Books Sidebar Parent Single"]
      </div>

This section here also affects the More about this book section.

There is some mix up here can you confirm when you make changes to this view below it is reflected on the frontend.

hidden link

Thanks,
Shane

#2377321

Here’s the content template for that sidebar. Maybe the code in it will give you a clue. I added the word “Testing” to the section title to test it and the change was made.
hidden link

#2378945

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Christine,

Just so that I have this correctly.

You want the sidebar links to remain unchanged even if you're on one of the links correct? Or is it that when you're on the Story behind this book you want the "Story Behind this book" link to still be displayed?

Thanks,
Shane