Blank Page When Using CMS API Tags

Options

I am using the LO Server Side API using the CMS API Tags to build a ‘My Account’ page in CMS. The tags gather constituent donation information and conditionally display content based on the most recent donation. Every so often the page loads partially — the header and menu load, but the main content area is blank. This is more likely to happen when the user initially logs in and is redirected to this page. When this issue occurs a single refresh is required to display content on the page.


I suspect the issue is that the constituent ID is not being loaded. Additionally, markup that does not depend on the API results is not displayed; it's as if the page rendering stops completely. Instead of the normal content, two empty tables are returned:


<table cellspacing="0" cellpadding="0" class="gstl_50 gssb_c" style="width: 22px; display: none; top: 194px; position: absolute; left: 14px;"><tbody><tr><td class="gssb_f"></td><td class="gssb_e" style="width: 100%;"></td></tr></tbody></table>

<table cellspacing="0" cellpadding="0" class="gstl_51 gssb_c" style="width: 2px; display: none; top: 3px; position: absolute; left: -1px;"><tbody><tr><td class="gssb_f"></td><td class="gssb_e" style="width: 100%;"></td></tr></tbody></table>


The page template opens with the following tags to set the necessary data:

<t:data name="openApi" class="convioApi" apiName="SRConsAPI" method="getUser" includeConsId="true"/>

<t:data name="openApi" class="convioApi" apiName="SRConsAPI" method="getUserTransactions" includeConsId="true"/>

<t:list id="openApi.getConsTransactionsResponse.transaction" >

<t:if test="length == index">

<t:set id="last_donation_amount" value="amount.formatted" />

<t:if test="donation_detail.campaign.id == 123">

<t:set id="last_donation_id" value="donation_detail.level.id" />

<t:set id="last_donation_campaign" value="donation_detail.level.title" />

</t:if>

<t:else>

<t:set id="last_donation_id" value="donation_detail.campaign.id" />

<t:set id="last_donation_campaign" value="donation_detail.campaign.title" />

</t:else>

</t:if>
</t:list>


Later, content is displayed conditionally with

<t:if test="last_donation_id == 123

|| last_donation_id == 1234

|| last_donation_id == 12345

|| last_donation_id == 123456">

<t:include id=“templatelist-123"></t:include>

</t:if>

Tagged:

Comments

  • Hey there Scott, I wasn't able to find a solution for this in the knowledge base so I opened up a support case on your behalf.

Categories