Replies: 0
In public/class-reactpress-public.php there’s the following line of code:
$relative_apppath = $document_root ? explode($document_root, $plugin_app_dir_url)[1] : escapeshellcmd("/wp-content/plugins/reactpress/apps/{$appname}/");
In most cases, I’m going to assume that the document_root and plugin_app_dir_url line up, but in my staging/production environment they don’t. There’s an assumption being made here that the document root and plugin app directory will be on the same machine/server/location, which might not be the case.
In my case..
Local:
document_root: /var/www/html
plugin_root: /var/www/html/wp-content/plugins/reactpress/apps/wp-job-board/
Dev:
document_root: /nas/wp/www/sites/<company_name_retracted>staging
plugin_root: /nas/content/live/<company_name_retracted>staging/wp-content/plugins/reactpress/apps/wp-job-board/
There should be a check before doing the explode instead of assuming they’re in the same root location.