Hi @kassela,
Thanks so much for sharing this.
I’ll check in with our development team to review this behavior and see what might be causing the substitution. Once I have more clarity, I’ll follow up here with any findings or recommendations.
In the meantime, please note that this should not interfere with your email sending process, and your email should continue getting sent as expected.
Thanks again for flagging this!
Hi @kassela,
Thanks for your patience.
I received an update from the team and it appears that you have some open_basedir rules that restrict access to paths, and the path for this menu item is failing those checks (/wp-content/plugins/https://wpmailsmtp.com/lite-upgrade/).
For context, WP Mail SMTP Lite adds the “Upgrade to Pro” menu item that points to https://wpmailsmtp.com/lite-upgrade/ . When rendering menu items, WordPress core uses file_exists to check if the file the menu is pointing to exists. If it does it builds the full path, otherwise it links directly to the provided menu item URL.
To fix this, please either adjust the open_basedir settings in your cPanel, contact your hosting provider to disable open_basedir restrictions, or add the paths to the allowed list.
I hope this helps.
Patrick (@paddyam)
“To fix this, please either adjust the open_basedir settings in your cPanel, contact your hosting provider to disable open_basedir restrictions, or add the paths to the allowed list.”
Re: Patrick (@paddyam)
What you wrote is an evasive answer to User ‘kassela(@kassela)’ (in need)
=======================================
Limitations:
It only restricts filesystem functions and not all PHP functions (e.g., might bypass it).system()
It disables the realpath cache, which can slightly impact performance.
It is not affected by .safe_mode
Troubleshooting: If you see “open_basedir restriction in effect,” the script is trying to access a restricted file. You may need to add the required path to the directive.open_basedir
Example of restricting to multiple directories:
open_basedir = “/var/www/html/site1/:/usr/share/php/:/tmp/”