Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
Template Tags - Disappearing page content
Avatar
Jonathan Yee
Member
Free Members
sp_UserOfflineSmall Offline
Sep 16, 2021 - 7:39 pm

I have recently updated SimplePress to 6.6.3 and am running into an issue where adding shortcode [sp_newest_topics limit=2 itemOrder=T beforeTopic=""] is causing my Elementor page content to not appear in the DOM. I am using the sp_newest_topics shortcode within an Elementor shortcode. Deactivating the SimplePress plugin brings back the page content. 

Separately, I also get an error when trying to edit the page within Elementor as follows:

PHP Fatal error: Uncaught Error: Call to undefined function sp_abort_display_forum() in /mnt/efs/sp-resources/forum-plugins/template-tags/library/sp-NewestTopics-tag.php:79

Adding the following code into my theme's functions.php allows me to access the Elementor page editor:

if (!function_exists('sp_abort_display_forum')) {
  function sp_abort_display_forum() {
    return;
  }
}

 

Any ideas? The first issue has higher priority. 

Avatar
jim
Here and Now
Member
Pro Subscribers
sp_UserOfflineSmall Offline
Oct 14, 2021 - 11:21 am

Any feedback on this?

I've encountered the same error, only when trying to load the Widgets tab of the dashboard:

Error thrown

Call to undefined function sp_abort_display_forum()

The error goes away and widgets admin loads properly when Template Tags SP plugin is deactivated. Will start new topic with more details...just wanted to search first, and found this related topic.

TripawdsSimple:Press powers the Tripawds Discussion Forums.

It's better to hop on three legs than to limp on four.

The Tripawds Blogs Community is made possible by The Tripawds Foundation.

Avatar
Jonathan Yee
Member
Free Members
sp_UserOfflineSmall Offline
Feb 11, 2022 - 7:41 pm

I actually revisited this issue and noticed in the latest version of the template tags plugin, an include was added to a similar file (sp-HotTopics-tag.php) solving the problem for another tag. 

Adding this line of code in the tag function before sp_abort_display_forum() like so fixes the issue for me: 

function sp_do_sp_[InsertAffectedTag]_tag($args='') {
  require_once SPBOOT.'site/sp-site-support-functions.php';
  if (sp_abort_display_forum()) return;
  ...

I believe this may be a bug and should be applied to all template tag functions in an update for the template tags plugin. Currently it's only applied to the one in sp-HotTopics-tag.php. 

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 621
Members: 17367
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79627