Title: Update bug
Last modified: October 9, 2023

---

# Update bug

 *  Resolved [Muette](https://wordpress.org/support/users/muette/)
 * (@muette)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/update-bug-5/)
 * Hi, today’s update just broke my site. is there a way to rollback to previous
   version pls?

Viewing 15 replies - 1 through 15 (of 15 total)

 *  Thread Starter [Muette](https://wordpress.org/support/users/muette/)
 * (@muette)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/update-bug-5/#post-17110676)
 * I too have had to deactivate your plugin. 1.26 was stable, 1.27 is definitely
   not.
    -  This reply was modified 2 years, 8 months ago by [Muette](https://wordpress.org/support/users/muette/).
 *  Plugin Support [Laura – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support8/)
 * (@wpmudev-support8)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/update-bug-5/#post-17110953)
 * Hi [@muette](https://wordpress.org/support/users/muette/)
 * I hope you’re well today!
 * I’m sorry to hear about the issue but we are not aware of any general bug that
   would take sites down. Usually such issues are specific to site configuration
   or server configuration/resources and that would need to be checked.
 * If you have access to some server PHP error log (or could ask your host to look
   into it) and you could share such log – entries from about time when this happened–
   it could help diagnose the issue.
 * As for rollback, simplest way is as follows
 * 1. access your site via FTP, cPanel “File Manager” or similar way and go to “/
   wp-content/plugins” folder
    2. delete “forminator” folder from there entirely(
   it will not remove any form data from site, only the plugin itself)
 * If Forminator update took the site down, site should get up after that (note:
   if there’s any server-side cache, you may need to purge it additionally)
 * You should be able to login to the site then just fine.
 * 3. then you can download previous version of plugin from this page (form at the
   bottom):
 * [https://wordpress.org/plugins/forminator/advanced/](https://wordpress.org/plugins/forminator/advanced/)
 * 4. and, finally, simply install it via the “Plugins -> Add new -> Upload” option
   in your site’s back-end.
 * This way you would retain all the forms and data that was already there.
 * Kind regards,
    Adam
 *  Thread Starter [Muette](https://wordpress.org/support/users/muette/)
 * (@muette)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/update-bug-5/#post-17111402)
 * Thank you, have managed to rollback to previous version 1.26 which works fine.
   However, I tested this twice, both times 1.27 caused a critical WP error – and
   there were no changes to the rest of the environment in the intervening period
   so we are still unable to use 1.27. I have looked thru PHP error logs – nothing–
   and have put in a support request to the hosting company. May I reiterate also,
   I was not the only one who experienced this today – I noted another person with
   the same issue.
 *  Thread Starter [Muette](https://wordpress.org/support/users/muette/)
 * (@muette)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/update-bug-5/#post-17112912)
 * Thanks for the instructions.
 * I replicated the error and this points firmly toward a mismatch between your 
   latest version and WP functions.php line 5905:
 * “Fatal error: Uncaught Error: Call to undefined function php_uname() in D:\Inetpub\
   vhosts\DOMAIN\wordpress\wp-content\plugins\forminator\library\mixpanel\class-
   mixpanel.php:151 Stack trace: #0 D:\Inetpub\vhosts\DOMAIN\wordpress\wp-content\
   plugins\forminator\library\mixpanel\class-mixpanel.php(64): Forminator_Mixpanel-
   >super_properties() #1 D:\Inetpub\vhosts\DOMAIN\wordpress\wp-content\plugins\
   forminator\library\class-core.php(128): Forminator_Mixpanel->__construct() #2
   D:\Inetpub\vhosts\DOMAIN\wordpress\wp-content\plugins\forminator\library\class-
   core.php(68): Forminator_Core->__construct() #3 D:\Inetpub\vhosts\DOMAIN\wordpress\
   wp-content\plugins\forminator\forminator.php(377): Forminator_Core::get_instance()#
   4 D:\Inetpub\vhosts\DOMAIN\wordpress\wp-content\plugins\forminator\forminator.
   php(106): Forminator->init() #5 D:\Inetpub\vhosts\DOMAIN\wordpress\wp-content\
   plugins\forminator\forminator.php(84): Forminator->__construct() #6 D:\Inetpub\
   vhosts\DOMAIN\wordpress\wp-content\plugins\forminator\forminator.php(505): Forminator::
   get_instance() #7 D:\Inetpub\vhosts\DOMAIN\wordpress\wp-includes\class-wp-hook.
   php(310): forminator() #8 D:\Inetpub\vhosts\DOMAIN\wordpress\wp-includes\class-
   wp-hook.php(334): WP_Hook->apply_filters() #9 D:\Inetpub\vhosts\DOMAIN\wordpress\
   wp-includes\plugin.php(517): WP_Hook->do_action() #10 D:\Inetpub\vhosts\DOMAIN\
   wordpress\wp-settings.php(495): do_action() #11 D:\Inetpub\vhosts\DOMAIN\wordpress\
   wp-config.php(86): require_once(‘…’) #12 D:\Inetpub\vhosts\DOMAIN\wordpress\wp-
   load.php(50): require_once(‘…’) #13 D:\Inetpub\vhosts\DOMAIN\wordpress\wp-admin\
   admin.php(34): require_once(‘…’) #14 D:\Inetpub\vhosts\DOMAIN\wordpress\wp-admin\
   upload.php(10): require_once(‘…’) #15 {main} thrown in D:\Inetpub\vhosts\DOMAIN\
   wordpress\wp-content\plugins\forminator\library\mixpanel\class-mixpanel.php on
   line 151
 * Notice: Function is_embed was called incorrectly. Conditional query tags do not
   work before the query is run. Before then, they always return false. Please see
   Debugging in WordPress for more information. (This message was added in version
   3.1.0.) in D:\Inetpub\vhosts\DOMAIN\wordpress\wp-includes\functions.php on line
   5905
 * Notice: Function is_search was called incorrectly. Conditional query tags do 
   not work before the query is run. Before then, they always return false. Please
   see Debugging in WordPress for more information. (This message was added in version
   3.1.0.) in D:\Inetpub\vhosts\DOMAIN\wordpress\wp-includes\functions.php on line
   5905
 * There has been a critical error on this website.”
    -  This reply was modified 2 years, 8 months ago by [Muette](https://wordpress.org/support/users/muette/).
 *  Plugin Support [Laura – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support8/)
 * (@wpmudev-support8)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/update-bug-5/#post-17113100)
 * Hi [@muette](https://wordpress.org/support/users/muette/)
 * Thank you for response!
 * Yes, I noticed another case as well afterwards but still – knowing about specific
   error is very important here.
 * And the error that you found is indeed saying a lot about the issue. It seems
   that, the php_uname() function is disabled by your host (either or purpose – 
   assuming some security risk or just by oversight) the “php_uname()” function 
   on the server. Most likely that happened upon PHP update/switch from 7.x to 8.
   x.
 * That doesn’t mean that there is a bug in Forminator but rather that it’s a server/
   hosting specific issue and so far it’s quite rare.
 * However, we care a lot about compatibility so I have reported it to our Forminator
   Team already and our developers will look into it to see how they can modify 
   our code so it would no longer need that function (or at least didn’t fail if
   it’s not available).
 * I’m not able to give ETA on this as it’s a fresh discovery and needs to be fully
   investigated by developers, fixed and then also tested by QA team before release
   but they’ll work on it and fix would be included in one of future releases.
 * As for now, you could ask your host to see if they could allow the php_uname()
   function for you or, if they refuse, stick to previous version of the plugin 
   until the fix is released.
 * Kind regards,
    Adam
 *  Thread Starter [Muette](https://wordpress.org/support/users/muette/)
 * (@muette)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/update-bug-5/#post-17113419)
 * Thank you very much. I will pass that suggestion on to them. Hope it helps other
   people avoid this stress. Have already reverted to v 26.
 *  Thread Starter [Muette](https://wordpress.org/support/users/muette/)
 * (@muette)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/update-bug-5/#post-17119373)
 * They cannot allow that function since it is a shared tenancy. We will wait for
   your next (improved) version in the hope you can rectify this.
 *  [grafikastudio](https://wordpress.org/support/users/grafikastudio/)
 * (@grafikastudio)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/update-bug-5/#post-17123070)
 * My host has that option disabled too for security so hope reverting to previews
   version will fix error on my end too
 * Agata
 *  Thread Starter [Muette](https://wordpress.org/support/users/muette/)
 * (@muette)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/update-bug-5/#post-17158733)
 * Hi, I just tried your latest update 1.27.0, and it’s still breaking my WP admin
   backend… sorry guys. Still stuck on 1.26.0
 *  Plugin Support [Dmytro – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport16/)
 * (@wpmudevsupport16)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/update-bug-5/#post-17159204)
 * Hello [@muette](https://wordpress.org/support/users/muette/),
 * I hope you’re doing well today!
 * Our developers are still looking for possible workarounds to be implemented in
   the plugin, to make the latest versions work with as much hosting environments
   as possible. However, there’s no ETA, I’m afraid.
 * Meanwhile, if the hosting support can’t help with enabling _php\_uname_ function,
   you can try a workaround with defining it in a PHP snippet.
 * Please save the following code in as a PHP file, e.g. php-uname.php, and upload
   it to _/wp-content/mu-plugins/_ directory:
 *     ```
       <?php
   
       if (!function_exists('php_uname')) {
           function php_uname($mode = 'a')
           {
               $uname = array(
                   'a' => php_uname('s') . ' ' . php_uname('r') . ' ' . php_uname('v') . ' ' . php_uname('m'),
                   's' => 'Windows NT',
                   'n' => 'Windows',
                   'r' => '5.1',
                   'v' => '5.1 build 2600',
                   'm' => 'x86'
               );
               return $uname[$mode];
           }
       }
       ```
   
 * This should make it run as a [must use plugin](https://wordpress.org/support/article/must-use-plugins/).
 * Let us know if there’s still any issue!
 * Best Regards,
    Dmytro
 *  Thread Starter [Muette](https://wordpress.org/support/users/muette/)
 * (@muette)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/update-bug-5/#post-17159256)
 * Thank you Dymtro I will try that. Do you think you will solve this problem eventually?
 *  Plugin Support [Dmytro – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport16/)
 * (@wpmudevsupport16)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/update-bug-5/#post-17159525)
 * Hello [@muette](https://wordpress.org/support/users/muette/),
 * I see the request has been forwarded to the developers. However, I can’t guarantee
   that _php\_uname_ function can be completely omitted, or provide any ETA at this
   point, I’m afraid.
 * Please let us know if the above PHP snippet helped to make it work on your end.
   Your feedback can help our devs to make the right decision, (e.g. use a similar
   solution in the plugin).
 * Best Regards,
    Dmytro
 *  Plugin Support [Nithin – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport11/)
 * (@wpmudevsupport11)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/update-bug-5/#post-17176926)
 * Hi [@muette](https://wordpress.org/support/users/muette/),
 * Since we haven’t heard from you for a while. I’ll mark this thread as resolved
   for now. Please feel free to re-open the thread if you need further assistance.
 * Regards
   Nithin
 *  Thread Starter [Muette](https://wordpress.org/support/users/muette/)
 * (@muette)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/update-bug-5/#post-17177683)
 * Please if we can keep open till I have tried the snippet. Thank you.
 *  Thread Starter [Muette](https://wordpress.org/support/users/muette/)
 * (@muette)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/update-bug-5/#post-17213035)
 * Hi Forminator,
 * I followed your instructions and uploaded the php-uname.php file, then tried 
   to update to 1.28 and got this!
 * Update failed: &lt;?php if (!function_exists('php_uname')) { function php_uname(
   $mode = 'a') { $uname = array( 'a' =&gt; php_uname('s') . ' ' . php_uname('r').''.
   php_uname('v') . ' ' . php_uname('m'), 's' =&gt; 'Windows NT', 'n' =&gt; 'Windows','
   r' =&gt; '5.1', 'v' =&gt; '5.1 build 2600', 'm' =&gt; 'x86' ); return $uname[
   $mode]; } } -1
 * So, I removed the php-uname.php file & tried the update again.
 * 1.28 has now updated and so far, seems to be ok! YAY!
 * Will keep you posted. Thank you.
 * Muette

Viewing 15 replies - 1 through 15 (of 15 total)

The topic ‘Update bug’ is closed to new replies.

 * ![](https://ps.w.org/forminator/assets/icon-256x256.gif?rev=3443182)
 * [Forminator Forms – Contact Form, Payment Form & Custom Form Builder](https://wordpress.org/plugins/forminator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/forminator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/forminator/)
 * [Active Topics](https://wordpress.org/support/plugin/forminator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/forminator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/forminator/reviews/)

## Tags

 * [critical error](https://wordpress.org/support/topic-tag/critical-error/)
 * [update](https://wordpress.org/support/topic-tag/update/)

 * 15 replies
 * 5 participants
 * Last reply from: [Muette](https://wordpress.org/support/users/muette/)
 * Last activity: [2 years, 6 months ago](https://wordpress.org/support/topic/update-bug-5/#post-17213035)
 * Status: resolved