[Résolu] render_view_template does not allow to display content any longer
This support ticket is created Il y a 8 années et 11 mois. 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.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
I am trying to:
I am allowing my client to display the information within the database [CPTs] using reusable PHP blocks.
Here is what I do [in pseudocode]:
I load the Photographer's record
I load the Photographer's post using the Photographer's ID
I then execute render_view_template on a blank template as a blank slate
end
I then display whatever information I need: it can be a field, a view, etc.
end
I expected to see:
This used to work very well and I could use the template as a blank slate out of the loop to display any kind of information from the CPTs.
Instead, I got:
Now it does not work any longer and the blank template does not open the "display port" nor allows anything to be displayed after it is called.
> Please restore the way it used to work as it was very practical to have a common code block to open a "display port" then display anything I wanted in it without having to create a specific template every time.
Here is some more information on the website:
- hidden link
- Of course I can provide you with the credentials if we open a private communication channel.
Here are some precisions:
- please use the test page: hidden link
- there is one Global Content Block [hidden link; defined in the page
- You can access this GCB here: hidden link
Basically, here is the list of actions:
- load the Photographer by his ID > works
- then load the form template #8581 which is empty and serves as a blank slate to display what follows > DOES NOT WORK ANY LONGER
- then display the view phr-Gear-MostFavorite which works perfectly in other parts of the website
I tried logging in however my attempts were not successful.
Could you please check the login information for me and let me know when I can attempt to log in.
Hi Shane,
I use a parameter passed to Global Content Blocks because I need to display whoever Photographer I want by his/her ID.
I tested the passing of parameters and it works perfectly.
The cause of the issue lies in the third line: the render view of a blank template used to work very well to open the way for other displays.
It does not work any longer.
Hi,
I had no news from you since the last message to Shane. I guess Shane escalated the issue to the developers.
My client is getting very impatient and so am I.
Please let me know what solution you could provide for this issue.
I must apologize for not posting a response, checking our system I noticed your ticket has been assigned to a higher tier support so I expect that it will be handled soon.
What I did however was to add a reminder so that your ticket can be handled.
I am putting my correspondence with Caridad here so we have a central location to manage it.
Dear Udi
We are having trouble understanding and reproducing the issue on our side. The development team has already been looking into this and we asked you yesterday to revert to a working version:
This would allow us to understand how it "should" work and compare the results with the current release.
An added benefit is that your site would be working while we resolve the problem.
Can you follow up in the forum about this?
--------------------------------------------------------------------------------------------------
Maybe another idea is to create a site (can be stg2) with a simple version of the problem.
Instead of making a full photographer, make a simple record and illustrate how the problem occurs on a smaller scale. This will help T&V debug it.
So the basic idea is to recreate the problem on a small scale.
If we need we can go on a call - all 3 of us - to discuss how to fix this.
I know that everyone is putting their best efforts to resolve this now, and I understand that Stephen does not have all the needed backups. lets try and be creative on how to solve this. The site is down for over 2 weeks now and we must get it to work.
------------------------------------------------------------------------