Title: Fatal Error after Update
Last modified: August 7, 2026

---

# Fatal Error after Update

 *  [crashbone](https://wordpress.org/support/users/crashbone/)
 * (@crashbone)
 * [1 day, 14 hours ago](https://wordpress.org/support/topic/fatal-error-after-update-161/)
 * Hello,
 * after update to 3.4.1 the it produced a fatal error. I have deactivated it and
   cant r-activate it now. wordpress stopp it because of the fatal error.

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

 *  [cyberdaemon](https://wordpress.org/support/users/cyberdaemon/)
 * (@cyberdaemon)
 * [1 day, 6 hours ago](https://wordpress.org/support/topic/fatal-error-after-update-161/#post-18987308)
 * Create class-webi-custom-widget.php in the plugin root.
   Place here –
 *     ```wp-block-code
       <?php// Exit if accessed directly.if ( ! defined( 'ABSPATH' ) ) {	exit;}if ( ! class_exists( 'Webi_Custom_Widget' ) ) {	/**	 * Custom widget to display the online active users count.	 *	 * @package Online_Active_Users	 */	class Webi_Custom_Widget extends WP_Widget {		/**		 * Constructor.		 */		public function __construct() {			parent::__construct(				'webi_custom_widget',				__( 'WP Online Active User', 'online-active-users' ),				array( 'description' => __( 'Display Online Active Users.', 'online-active-users' ) )			);		}		/**		 * Front-end display.		 *		 * @param array $args     Widget arguments.		 * @param array $instance Saved widget settings.		 */		public function widget( $args, $instance ) {			echo $args['before_widget'];			if ( ! empty( $instance['title'] ) ) {				echo $args['before_title'] . apply_filters( 'widget_title', $instance['title'] ) . $args['after_title'];			}			if ( isset( $GLOBALS['wpoau_plugin'] ) && $GLOBALS['wpoau_plugin'] instanceof Webi_Active_User ) {				$active_users_count = $GLOBALS['wpoau_plugin']->wpoau_online_users( 'count' );			} else {				$wpoau_plugin       = new Webi_Active_User();				$active_users_count = $wpoau_plugin->wpoau_online_users( 'count' );			}			echo '<div class="webi-widget-content">';			echo '<p>' . esc_html__( 'Online Active Users:', 'online-active-users' ) . ' <strong>' . absint( $active_users_count ) . '</strong></p>';			echo '</div>';			echo $args['after_widget'];		}		/**		 * Back-end widget form.		 *		 * @param array $instance Widget settings.		 */		public function form( $instance ) {			$title = ! empty( $instance['title'] ) ? $instance['title'] : __( 'Active Users', 'online-active-users' );			?>			<p>				<label for="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>"><?php esc_html_e( 'Title:', 'online-active-users' ); ?></label>				<input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'title' ) ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>">			</p>			<?php		}		/**		 * Save widget settings.		 *		 * @param array $new_instance New settings.		 * @param array $old_instance Old settings.		 * @return array		 */		public function update( $new_instance, $old_instance ) {			$instance          = array();			$instance['title'] = ( ! empty( $new_instance['title'] ) ) ? sanitize_text_field( $new_instance['title'] ) : '';			return $instance;		}	}}
       ```
   
 *  Plugin Author [Nikul Valani](https://wordpress.org/support/users/valani9099/)
 * (@valani9099)
 * [1 day, 6 hours ago](https://wordpress.org/support/topic/fatal-error-after-update-161/#post-18987348)
 * Thank you [@crashbone](https://wordpress.org/support/users/crashbone/) and [@cyberdaemon](https://wordpress.org/support/users/cyberdaemon/)
   for reporting this issue. I will check it, fix it, and release the update in 
   the next plugin version.
 *  [cyberdaemon](https://wordpress.org/support/users/cyberdaemon/)
 * (@cyberdaemon)
 * [1 day, 5 hours ago](https://wordpress.org/support/topic/fatal-error-after-update-161/#post-18987422)
 * I’ve already fixed it)))
 *  Thread Starter [crashbone](https://wordpress.org/support/users/crashbone/)
 * (@crashbone)
 * [1 day, 3 hours ago](https://wordpress.org/support/topic/fatal-error-after-update-161/#post-18987509)
 * [@cyberdaemon](https://wordpress.org/support/users/cyberdaemon/) Thanks, its 
   working for me, too.
 *  [eranedwebbeheerder](https://wordpress.org/support/users/eranedwebbeheerder/)
 * (@eranedwebbeheerder)
 * [22 hours, 6 minutes ago](https://wordpress.org/support/topic/fatal-error-after-update-161/#post-18987678)
 * Hello, I am not happy with the current situation: my WordPress v7.0.3 is no longer
   available and I could no longer log in as an administrator either. The reason
   for this is that I updated Online Active Users v3.4.0 to v3.4.1 and have to restore
   the website using a backup from my hosting provider. I have now reverted to v3.4.0
   and am waiting for a working update version. Kind regards, from the Netherlands
    -  This reply was modified 21 hours, 51 minutes ago by [eranedwebbeheerder](https://wordpress.org/support/users/eranedwebbeheerder/).
 *  [Chris Yau](https://wordpress.org/support/users/chris-yau/)
 * (@chris-yau)
 * [5 hours, 30 minutes ago](https://wordpress.org/support/topic/fatal-error-after-update-161/#post-18988003)
 * I got same fatal error after updated to 3.4.1 and now rollback to v3.4.0, waiting
   for next release to fix

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

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffatal-error-after-update-161%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/online-active-users/assets/icon-256x256.gif?rev=2972350)
 * [Online Active Users](https://wordpress.org/plugins/online-active-users/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/online-active-users/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/online-active-users/)
 * [Active Topics](https://wordpress.org/support/plugin/online-active-users/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/online-active-users/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/online-active-users/reviews/)

 * 6 replies
 * 7 participants
 * Last reply from: [Chris Yau](https://wordpress.org/support/users/chris-yau/)
 * Last activity: [5 hours, 30 minutes ago](https://wordpress.org/support/topic/fatal-error-after-update-161/#post-18988003)
 * Status: not resolved