Hello @mooveagency ,
Thank you for your reaching out, we will be happy to assist!
What we would suggest at first glance is to try a different PHP version as NitroPack might not be compatible with it.
Another option would be to try re-install NitroPack.
If the issue persists I would suggest submitting a ticket so our team could be able to check the case in-depth and assist you further:
https://support.nitropack.io/hc/en-us/requests/new
I hope this information helps!
Hi @nitronikol
The conflict between Nested Pages and NitroPack still persists, it’s not related the PHP version (tested with 7.3, 7.4 and 8.0) or reinstalling the plugin.
You and Nested pages use duplicate function names inside NitroPack plugin.
The fix would be an extra check in nitropack/nitropack-sdk/bootstrap.php for each function, the function should be wrapped by a code like:
if ( ! function_exists('your_function_name') :
function your_function_name() {
...
}
endif;
See more here: https://codex.ww.wp.xz.cn/Pluggable_Functions
“Note: A function can only be reassigned this way once, so you can’t install two plugins that plug the same function for different reasons. For safety, it is best to always wrap your functions with if ( !function_exists() ), otherwise you will produce fatal errors on plugin activation.”
We would recommend your support to setup a clean installation of WordPress on your local machine, install and activate the NitroPack plugin, then try to install and activate the Nested Pages plugin on the same install. The error will be visible on their end too, and the error is not related to PHP version.
Hope this helps.
Hello @mooveagency ,
Thank you for the provided information on the matter!
The issue is logged for resolving by our team and a possible fix will be available in the next NitroPack update, which will be available at the end of the month.
Hello @mooveagency ,
Upon further investigation, we were unable to replicate the issue. We also noticed that the reported error is related to a file of NitroPack’s SDK, which is not supposed to load in WordPress environments. It seems like something in your environment is incorrectly loading the file wp-content/plugins/nitropack/nitropack-sdk/bootstrap.php. This file is supposed to be used in custom integrations only. In order to fix the issue please make sure that this file is not being loaded into the system.
I hope this information helps!