Title: Fatal error: Uncaught TypeError:
Last modified: October 9, 2019

---

# Fatal error: Uncaught TypeError:

 *  [markowe](https://wordpress.org/support/users/markowe/)
 * (@markowe)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-typeerror-5/)
 * The plugin sounds like just what I need to limit crawling by bad bots. Unfortunately
   when I try to activate it there seems to be a bug. Pretty sure I have uploaded
   the files properly and everything, and anyway, this TypeError seems like a code
   bug.
 * Wp version is still 4.9.11 (not liking the Gutenberg editor), PHP is 7.
 *     ```
       ( ! ) Fatal error: Uncaught TypeError: Return value of Shieldon\Shieldon::setSessionId() must be an instance of Shieldon\void, none returned in /opt/lampstack-7.0.23-0/apache2/htdocs/wp-content/plugins/wp-shieldon/vendor/terrylinooo/shieldon/src/Shieldon/Shieldon.php on line 655
       ( ! ) TypeError: Return value of Shieldon\Shieldon::setSessionId() must be an instance of Shieldon\void, none returned in /opt/lampstack-7.0.23-0/apache2/htdocs/wp-content/plugins/wp-shieldon/vendor/terrylinooo/shieldon/src/Shieldon/Shieldon.php on line 655
       Call Stack
       #	Time	Memory	Function	Location
       1	0.0001	370624	{main}( )	.../plugins.php:0
       2	0.4697	8966248	plugin_sandbox_scrape( )	.../plugins.php:172
       3	0.4697	8966664	include( '/opt/lampstack-7.0.23-0/apache2/htdocs/wp-content/plugins/wp-shieldon/wp-shieldon.php' )	.../plugin.php:1897
       4	0.4706	9052744	wpso_instance( )	.../wp-shieldon.php:181
       5	0.4706	9054216	WPSO_Shieldon_Guardian->__construct( )	.../wpso-helper-functions.php:268
       6	0.4707	9061008	Shieldon\Shieldon->__construct( )	.../class-wpso-shieldon.php:38
       7	0.4707	9061008	Shieldon\Shieldon->setSessionId( )	.../Shieldon.php:244
       ```
   

The topic ‘Fatal error: Uncaught TypeError:’ is closed to new replies.

 * ![](https://ps.w.org/wp-shieldon/assets/icon-256x256.png?rev=2194654)
 * [WP Shieldon - WordPress Firewall](https://wordpress.org/plugins/wp-shieldon/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-shieldon/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-shieldon/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-shieldon/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-shieldon/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [markowe](https://wordpress.org/support/users/markowe/)
 * Last activity: [6 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-typeerror-5/)
 * Status: not resolved