I get a white screen and the ‘critical error’ message when wpmain plugin is active. The site works when I deactivate wpmain by adding ~ in front of the name with FTP.
This is on the Main Dashboard (my - com-advantage.com) site… not any of the dozen of connected child sites.
Should I delete the folder in the plugins folder and reinstall, or is there a better solution? Like deleting or editing a specific folder or file.
Thank you in advance for your assistance.
Warm regards,
Paul
Hey @praybould
Sorry to hear you’re experiencing issues.
What version of MainWP Dashboard plugin do you have installed?
Can you check your debug log, and see if there’s anything relevant being logged that would tell us more about the critical error?
We have identified an issue with Dashboard v5.3.5.
It manifests itself only on Dashboard sites with the PHP version below v8.
We are working on a fix, which will be released shortly.
In the meantime, you can temporarily change the PHP version to 8 or up, or install the v5.3.5.1 once out.
My config.php had debug as false, I just changed it and will rename the plugin so the site fails and see what it captures.
Thank you.
This is what is in the debug log.
- [06-Feb-2025 19:34:56 UTC] PHP Deprecated: Non-static method ImgMouseover::init() should not be called statically in /home/u320743911/domains/com-advantage.com/public_html/wp-includes/class-wp-hook.php on line 324
[06-Feb-2025 19:34:56 UTC] PHP Deprecated: Non-static method ImgMouseover::init() should not be called statically in /home/u320743911/domains/com-advantage.com/public_html/wp-includes/class-wp-hook.php on line 324
[06-Feb-2025 19:34:56 UTC] PHP Deprecated: Non-static method ImgMouseover::init() should not be called statically in /home/u320743911/domains/com-advantage.com/public_html/wp-includes/class-wp-hook.php on line 324
[06-Feb-2025 19:35:19 UTC] PHP Parse error: syntax error, unexpected ‘:’, expecting ‘)’ in /home/u320743911/domains/com-advantage.com/public_html/wp-content/plugins/mainwp/class/class-mainwp-hooks.php on line 775
Thanks for reporting this to us.
We have now released a hotfix v5.3.5.1 which resolves the issue on PHP versions ≥7.4 and <8.0.
Changelog
5.3.5.1 – 2-6-2025
- Fixed: Resolved a syntax error caused by the incorrect use of a named argument, ensuring compatibility with PHP 7.x and earlier versions.
Ok… I have 5.3.5 installed.
How do I get the fix? Do I just delete the current folder? Will that cause me to lose the connections with the child sites?
What’s the best way to do this?
Thank you.
You can either delete the existing folder and copy the new one or just overwrite the existing one.
You will not lose connections with child sites or any other Dashboard data since that is not stored in plugin files but in the DB.
Thank you Bojan. I will download and install the current version.
I get this message when I try to download:
- Oops! Your email couldn’t be accepted. This may be due to a typo, a temporary/disposable email, or a high-risk domain. Please use a valid, permanent email. If you believe this is a mistake, contact us at [email protected].
Hi @praybould,
If it’s easier for you, you can also update the PHP version on your dashboard site server and update the MainWP Dashboard plugin normally after that.
If not, as @bojan suggested, you can reinstall the MainWP Dashboard plugin. If the site is still down, you will need to remove the current version via FTP, and after you site is back online, you can install the new version from WordPress.org MainWP Dashboard: WordPress Management without the SaaS – WordPress plugin | WordPress.org.
In any case, there is no data loss expected. Everything stays intact in your dashboard, so sites will stay connected.
Can you please DM me your email address?
In the meantime, please download the MainWP Dashboard 5.3.5.1 from WordPress.org as I suggested in previous post
I did it from the Wordpress Dashboard (Update) and it seems to be ok.
Thank you for your help.
Thanks for letting me know. I am happy to see the problem resolved.
I updated PHP to 8.0.
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.