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.
<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>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>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>
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
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
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!
You must be logged in to reply to this topic.