Paths not updating when copying from live to staging environment with WP Engine.
When we copy the site over to staging Discuz is retaining the live site path. WP Engine Senior tech has investigated and it's not something they can change.
See LIVESITEFOLDER and STAGINGSITEFOLDER references below
Any ideas on how to fix or where to change it?
These are the errors:
Notice: Undefined index: /nas/content/live/LIVESITEFOLDER/wp-content/plugins/wpdiscuz/themes/default in /nas/content/live/STAGINGSITEFOLDER/wp-content/plugins/wpdiscuz/utils/class.WpdiscuzHelper.php on line 357
Notice: Trying to access array offset on value of type null in /nas/content/live/STAGINGSITEFOLDER/wp-content/plugins/wpdiscuz/utils/class.WpdiscuzHelper.php on line 357
Warning: require(/nas/content/live/LIVESITEFOLDER/wp-content/plugins/wpdiscuz/themes/default/comment-form.php): failed to open stream: Permission denied in /nas/content/live/STAGINGSITEFOLDER/wp-includes/comment-template.php on line 1554
Fatal error: require(): Failed opening required '/nas/content/live/LIVESITEFOLDER/wp-content/plugins/wpdiscuz/themes/default/comment-form.php' (include_path='.:/usr/share/pear/php:/usr/share/php') in /nas/content/live/STAGINGSITEFOLDER/wp-includes/comment-template.php on line 1554
Please follow the steps:
- Navigate to Dashboard > wpDiscuz > Forms admin page,
- Edit the Current form (if nothing is changed it's the "Default Form"),
- Just click on the "Update" button without making any changes,
- Delete website caches, purge CDN if you have and press CTRL+ F5 on the frontend.
In case you want to say thank you! 🙂
We'd really appreciate if you leave a good review on the plugin page.
This is the best way to say thank you to this project and the support team.
Many thanks that has solved the issue.

