[Resolved] Fatal error when enable any kind of plugin
This thread is resolved. Here is a description of the problem and solution.
Problem:
When the latest version of the Toolset Types plugin is activated, it becomes impossible to activate any other plugin, although deactivating them is still feasible. Additionally, installing new plugins also becomes unfeasible.
Solution:
I checked it and the issue is fixed if we install the latest OTGS Installer Version 3.1.1.
There are some dependencies needed in Toolset that are fixed in this plugin's new version.
I installed it and then updated the Toolset plugins. I tested it and I'm no longer able to replicate the issue.
For the time being, in order for you to apply this fix in the live as well, I uploaded the latest version of the installer plugin to your webroot, you can connect to it via FTP and download the zip file or download directly in the private link I sent you above.
Then, proceed to manually installing it and update the Toolset plugins afterwards.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
When the latest version of the Toolset Types plugin is activated, it becomes impossible to activate any other plugin, although deactivating them is still feasible. Additionally, installing new plugins also becomes unfeasible.
Here is the debug:
[24-Nov-2023 12:27:22 UTC] PHP Warning: foreach() argument must be of type array|object, null given in /mnt/web322/a0/93/51369193/htdocs/peaceyoga/2021/release/wp-admin/includes/plugin.php on line 1784
[24-Nov-2023 12:27:25 UTC] PHP Warning: foreach() argument must be of type array|object, null given in /mnt/web322/a0/93/51369193/htdocs/peaceyoga/2021/release/wp-admin/includes/plugin.php on line 1784
[24-Nov-2023 12:27:26 UTC] PHP Warning: foreach() argument must be of type array|object, null given in /mnt/web322/a0/93/51369193/htdocs/peaceyoga/2021/release/wp-admin/includes/plugin.php on line 1784
[24-Nov-2023 12:27:28 UTC] PHP Fatal error: Uncaught Error: Call to undefined function OTGS\Installer\AdminNotices\wpml_collect() in /mnt/web322/a0/93/51369193/htdocs/peaceyoga/2021/release/wp-content/plugins/types/vendor/otgs/installer/includes/admin-notices/Dismissed.php:36
Stack trace:
#0 /mnt/web322/a0/93/51369193/htdocs/peaceyoga/2021/release/wp-includes/class-wp-hook.php(324): OTGS\Installer\AdminNotices\Dismissed::dismissNoticeOnPluginActivation()
#1 /mnt/web322/a0/93/51369193/htdocs/peaceyoga/2021/release/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#2 /mnt/web322/a0/93/51369193/htdocs/peaceyoga/2021/release/wp-includes/plugin.php(517): WP_Hook->do_action()
#3 /mnt/web322/a0/93/51369193/htdocs/peaceyoga/2021/release/wp-admin/includes/plugin.php(678): do_action()
#4 /mnt/web322/a0/93/51369193/htdocs/peaceyoga/2021/release/wp-admin/plugins.php(58): activate_plugin()
#5 {main}
thrown in /mnt/web322/a0/93/51369193/htdocs/peaceyoga/2021/release/wp-content/plugins/types/vendor/otgs/installer/includes/admin-notices/Dismissed.php on line 36
[24-Nov-2023 12:27:28 UTC] PHP Warning: foreach() argument must be of type array|object, null given in /mnt/web322/a0/93/51369193/htdocs/peaceyoga/2021/release/wp-admin/includes/plugin.php on line 1784
[24-Nov-2023 12:27:31 UTC] PHP Warning: foreach() argument must be of type array|object, null given in /mnt/web322/a0/93/51369193/htdocs/peaceyoga/2021/release/wp-admin/includes/plugin.php on line 1784
[24-Nov-2023 12:27:31 UTC] PHP Warning: foreach() argument must be of type array|object, null given in /mnt/web322/a0/93/51369193/htdocs/peaceyoga/2021/release/wp-admin/includes/plugin.php on line 1784
[24-Nov-2023 12:27:42 UTC] PHP Warning: foreach() argument must be of type array|object, null given in /mnt/web322/a0/93/51369193/htdocs/peaceyoga/2021/release/wp-admin/includes/plugin.php on line 1784
[24-Nov-2023 12:27:43 UTC] PHP Fatal error: Uncaught Error: Call to undefined function OTGS\Installer\AdminNotices\wpml_collect() in /mnt/web322/a0/93/51369193/htdocs/peaceyoga/2021/release/wp-content/plugins/types/vendor/otgs/installer/includes/admin-notices/Dismissed.php:36
Stack trace:
Based on the description and logs, this looks like a corrupted plugin issue.
What I suggest here is that you reinstall the Types plugin by downloading it manually and uploading it to your site. https://toolset.com/account/downloads/
Please make a full backup of the site before proceeding to the reinstall.
Please try this and let me know if the issue still remains.
I just upload toolset manually. No change, still fatal error when trying to activate any kind of plugin
>>> Plugin could not be activated because it triggered a fatal error.
I have setup a dev page, so you can check on your own. What is the best way to send you the login data ?
I would like to request temporary access (wp-admin and FTP) to your dev site to take better look at the issue. You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.
Our Debugging Procedures
I will be checking various settings in the backend to see if the issue can be resolved. Although I won't be making changes that affect the live site, it is still good practice to backup the site before providing us access. In the event that we do need to debug the site further, I will duplicate the site and work in a separate, local development environment to avoid affecting the live site.
- Please make a backup of site files and database before providing us access.
- If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this: hidden link
Please, let me know if you need any additional details. Have a nice day.
I checked this out but so far I couldn't find a fix for it. Please downgrade to the previous version in the production site while we investigate this issue.
I have escalated this ticket to our 2nd tier of support where our 2nd tier specialists will take a deeper look at this issue and will try to find a solution.
I will get back to you as soon as I get an answer from them.
For the time being, in order for you to apply this fix in the live as well, I uploaded the latest version of the installer plugin to your webroot, you can connect to it via FTP and download the zip file or download directly in the private link I sent you above.
Then, proceed to manually installing it and update the Toolset plugins afterwards.
The issue should be fixed in the live site as well.