A A A
Forum Scope


Match



Forum Options



Min search length: 3 characters / Max search length: 84 characters
Forum Login
Lost password?
plugins-topic
Template Tags - Disappearing page content
Avatar
Jonathan Yee

7 Posts
(Offline)
1
Sep 16, 2021 - 7:39 pm
Print

I have recently updated SimplePress to 6.6.3 and am running into an issue where adding shortcode 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

630 Posts
(Offline)
2
Oct 14, 2021 - 11:21 am
Print

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

7 Posts
(Offline)
3
Feb 11, 2022 - 7:41 pm
Print

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: America/New_York
All RSSShow Stats
Administrators: Blues Dancer, Simple Press, SP Community Support
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 630
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Newest Members:
BadSantaeni
Patrice Elizabeth
Caroline Norriss
Web team
Pavol Vrabec
Hélène CLEMENT
Forum Stats:
Groups: 7
Forums: 17
Topics: 10062
Posts: 79357

 

Member Stats:
Guest Posters: 607
Members: 16915
Moderators: 0
Admins: 3

Most Users Ever Online
499
Currently Online
Silvia Di Blasio
Guest(s)
9
Currently Browsing this Page

1 Guest(s)