Show Sidebar Log in
Commons In A Box Logo
  • Home
  • About
    • Project Team
    • Logos and Graphics
  • Showcase
    • CBOX Classic Showcase
    • CBOX OpenLab Showcase
  • Demo
  • Get Started
  • Documentation
    • Technical Guide
    • CBOX Classic Guide
    • CBOX OpenLab Guide
  • Support Forums
    • CBOX Classic
    • CBOX OpenLab
    • Developers Forum
  • News

Group Admins

  • Profile picture of Scott Voth

CBOX Classic Support

Public Group active 11 months, 3 weeks ago

This group provides support for Commons In A Box Classic, our original software for community-building. Register for an account or log in to commonsinabox.org, then join the group and post your question here.

Is [list-bpdocs] obsolete?

  • This topic has 3 replies, 2 voices, and was last updated 2 years, 6 months ago by Ray.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • June 17, 2020 at 9:39 pm #8452
    Jan Hardenbergh
    Participant

    Is [list-bpdocs] obsolete?  If so, is there a new easy way to list all of the documents?

    We have a Commons in a Box that has been working well with little or no maintenance for several years. This statement is now causing problems. It started getting a warning recently.

    [list-bpdocs]

    <b>Warning</b>: Use of undefined constant id – assumed ‘id’ (this will throw an Error in a future version of PHP) in <b>/home/XXXXX/wp-content/plugins/shortcode-exec-php/shortcode-exec-php-class.php(895) : eval()’d code</b> on line <b>4</b>

    Here is line 895.
    <div>$result = eval(WPShortcodeExecPHP::Get_option(c_scep_option_phpcode . $code));</div>
    <div></div>
    <div>I did not set this site up. The directory <b>wp-content/plugins/shortcode-exec-php is old – </b>no files more recent that 2015.</div>
    <div></div>
    <div>I do not know PHP and I am not too eager to learn, but, I’m open to a quick hack. Or potentially porting something.</div>
    <div></div>
    <div></div>

    June 29, 2020 at 9:40 pm #8454
    Ray
    Keymaster

    Hi Jan,

    I’m guessing you had some custom work done to your site where a developer added the plugin to your site and added a custom list-bpdocs shortcode.

    The warning is coming from the shortcode-exec-php plugin, which doesn’t come bundled with CBOX and is no longer available on the wordpress.org repository.

    If you still want to keep the shortcode-exec-php plugin, you can disable debug warning notices on your install by setting WP_DEBUG to false in your wp-config.php file. You can read more about this here – https://wordpress.org/support/article/debugging-in-wordpress/

    Hope that helps!

    September 19, 2020 at 10:30 pm #8523
    Jan Hardenbergh
    Participant

    Hi Ray,

    Thanks for your reply. The CBOX site was set up by an ancient hacker. His theory was that if he made things simple enough, other people would use it. He made a home-brew wiki that basically only he * I used….

    I’m not familiar with php, or, WordPress, or BuddyPress or any of the guts here. I do figure things out eventually. WP_DEBUG was set to false already. I don’t like the part about throwing an error in the future.

    My guess is that the “short codes” expand into some code somewhere.

    I do really like the “list all documents” feature. Is there an alternative method to get this feature?

    Thanks!

     

     

    September 28, 2020 at 7:19 pm #8524
    Ray
    Keymaster

    The BuddyPress Docs plugin does not come with a bundled shortcode.

    Outside of writing custom code, perhaps you can link to the documents directory page instead?

    If you’re okay with that, you can find the document directory page at example.com/docs/ by default. For example: https://demo.commonsinabox.org/docs

    Replace example.com with your site. However, if you’ve changed the directory page slug from docs to something else, you’ll need to replace that as well. You can find the document page settings at example.com/wp-admin/edit.php?post_type=bp_doc&page=bp-docs-settings.

    Hope that helps.

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Log In
Group logo of CBOX Classic Support
  • Home
  • Forum
  • Announcements
  • Docs
  • Members 274

Groups

Newest | Active | Popular | Alphabetical
  • Group logo of CBOX Classic Support
    CBOX Classic Support
    274 members
  • Group logo of CBOX Pioneers
    CBOX Pioneers
    71 members
  • Group logo of CBOX Developers
    CBOX Developers
    40 members
  • Group logo of CBOX OpenLab Support
    CBOX OpenLab Support
    22 members
  • Group logo of CBOX-OL Testing Partners
    CBOX-OL Testing Partners
    12 members

CBOX has its roots in the CUNY Academic Commons, which in turn was made possible through funding from The City University of New York itself.

CUNY Logo

CUNY Academic Commons Logo

City Tech logo

The Commons In A Box was made possible through the generous support of the Alfred P. Sloan Foundation.

Alfred P. Sloan Foundation Logo

NEH Logo

The CUNY Graduate Center has directly contributed to the CUNY Academic Commons, housing the project since its inception, and has contributed to CBOX through its GC Digital Initiatives.

CUNY Graduate Center Logo

CUNY Graduate Center Digital Initiatives Logo

Powered by Commons In A Box
css.php
Skip to toolbar
  • About WordPress
    • WordPress.org
    • Documentation
    • Support
    • Feedback
  • Log In
  • Register