Outdated plugin - SuperCatLister - need alternative (or fix)

3 views
Skip to first unread message

Bill Christensen

unread,
Sep 7, 2016, 2:22:20 PM9/7/16
to WordPress Austin

Hi folks,

I just updated a client's site by several versions of WP Core (4.4.4 to 4.6.1), and one of his plugins broke.  Not overly surprising, since it hasn't been updated in 7 years!  I'm looking for either a functional equivalent or a quick fix to the existing plugin.

The plugin was Super Cat Lister.   It allowed him to insert a shortcode, ie [cat_lister cat_name='By Name' ] into his page to display links to all the posts in that category. 

The failure isn't breaking the functionality of the plugin - it's still displaying those links properly.  The visible problem is that the page using the shortcode throws a warning at the top of the page for each instance of shortcode use:

    Warning: Creating default object from empty value in /home/sdc/www_site/wp-content/plugins/super-cat-lister/includes/superCatLister_defaults.php on line 25

The function in question (starting at line 24) is:

function createAdminGlobals() {
$g->pluginName = 'SuperCatLister';
$g->databaseOptionsName = 'SuperCatListerOptions';
$g->updateName = 'updateSuperCatListerOptions';
$g->adminMenuTypeDefault = 'standard';
$g->adminTextBoxDefaultHeight = 30;
$g->adminTextBoxDefaultWidth = 500;

$g->adminHeaderText = 'Super Cat Lister Admin Panel!';
$g->adminFooterText = '<div style="padding:0xp;margin:0px;padding-top:20px;">
Super Cat Lister Plug-In (c) 2009 By <a href = "http://www.ecosystemI.com">Jason Pomerantz</a>.</div>';

$this->globals = $g;
}//end function createAdminGlobals()


For a super quick and dirty fix I'd even be happy with just suppressing the warning for a couple days, knowing that this function will definitely need a complete overhaul in the near future.

Thanks for any insights you can give.



-- 
Bill Christensen
http://SustainableSources.com
http://LinkedIn.com/in/billc108

Bill Erickson

unread,
Sep 7, 2016, 2:37:54 PM9/7/16
to wordpres...@googlegroups.com
The warning should only appear if debug mode is turned on, and you shouldn't have debug mode on a live website. So edit wp-config.php and change this:

define( 'WP_DEBUG', true );

to:

define( 'WP_DEBUG', false );



But you might also consider replacing that plugin with something that's actively maintained. Take a look at Display Posts Shortcode. You could then use:

[display-posts category="category-slug"]

An added benefit is you can list posts by a lot more than just their category. Take a look at all the parameters.



---
Bill Erickson
WordPress Developer

--
You received this message because you are subscribed to the Google Groups "WordPress Austin" group.
To post to this group, send email to wordpress-austin@googlegroups.com
To unsubscribe from this group, send email to wordpress-austin-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/wordpress-austin?hl=en
 
Our meeting information is available at http://www.meetup.com/austinwordpress/
---
You received this message because you are subscribed to the Google Groups "WordPress Austin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wordpress-austin+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Art Thompson, Jr.

unread,
Sep 7, 2016, 3:21:12 PM9/7/16
to wordpress-austin
I second Bill's [modest] suggestion to use Display Posts Shortcode. I'm rolling out a new site later this month and it was just what I needed in a pinch. Insane list of parameters, to boot!

Cheers,

Art Thompson, Jr
Logical Things, Inc

Bill Christensen

unread,
Sep 7, 2016, 3:23:26 PM9/7/16
to wordpres...@googlegroups.com
Perfect!  All is working with your plugin.

ps: it's listed as "Compatible up to: 4.5.4".  You might want to update that.
-- You received this message because you are subscribed to the Google Groups "WordPress Austin" group. To post to this group, send email to wordpres...@googlegroups.com To unsubscribe from this group, send email to wordpress-aust...@googlegroups.com For more options, visit this group at http://groups.google.com/group/wordpress-austin?hl=en   Our meeting information is available at http://www.meetup.com/austinwordpress/ --- You received this message because you are subscribed to the Google Groups "WordPress Austin" group. To unsubscribe from this group and stop receiving emails from it, send an email to wordpress-aust...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages