Title: Random Image Element Broken
Last modified: February 10, 2025

---

# Random Image Element Broken

 *  Resolved [retunes](https://wordpress.org/support/users/retunes/)
 * (@retunes)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/random-image-element-broken/)
 * Using the Random Image Element causes the following error
   `Fatal error: Uncaught
   Error: Class "Database" not found in /wp-content/plugins/bricksable/includes/
   elements/random-image/element-random-image.php:231 Stack trace: #0 /wp-content/
   themes/bricks/includes/elements/base.php(2631): Bricksable_Random_Image->render()#
   1 /wp-content/themes/bricks/includes/frontend.php(628): Bricks\Element->init()#
   2 /wp-content/themes/bricks/includes/elements/container.php(938): Bricks\Frontend::
   render_element(Array) #3 /wp-content/themes/bricks/includes/elements/base.php(
   2631): Bricks\Element_Container->render() #4 /wp-content/themes/bricks/includes/
   frontend.php(628): Bricks\Element->init() #5 /wp-content/themes/bricks/includes/
   frontend.php(769): Bricks\Frontend::render_element(Array) #6 /wp-content/themes/
   bricks/includes/frontend.php(1016): Bricks\Frontend::render_data(Array) #7 /wp-
   content/themes/bricks/page.php(7): Bricks\Frontend::render_content(Array) #8 /
   wp-includes/template-loader.php(106): include('/home/www/stagi...') #9 /wp-blog-
   header.php(19): require_once('/home/www/stagi...') #10 /index.php(17): require('/
   home/www/stagi...') #11 {main} thrown in /wp-content/plugins/bricksable/includes/
   elements/random-image/element-random-image.php on line 231`
 * Tested on single page and archive page template.
 * Bricks Version: 1.12.1
   Bricksable Version 1.6.71 

Viewing 1 replies (of 1 total)

 *  Plugin Author [Bricksable](https://wordpress.org/support/users/bricksable/)
 * (@bricksable)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/random-image-element-broken/#post-18297954)
 * [@retunes](https://wordpress.org/support/users/retunes/) Thanks for letting us
   know. This has been fixed in the latest version

Viewing 1 replies (of 1 total)

The topic ‘Random Image Element Broken’ is closed to new replies.

 * ![](https://ps.w.org/bricksable/assets/icon.svg?rev=2519526)
 * [Bricksable for Bricks Builder](https://wordpress.org/plugins/bricksable/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/bricksable/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/bricksable/)
 * [Active Topics](https://wordpress.org/support/plugin/bricksable/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bricksable/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bricksable/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Bricksable](https://wordpress.org/support/users/bricksable/)
 * Last activity: [1 year, 4 months ago](https://wordpress.org/support/topic/random-image-element-broken/#post-18297954)
 * Status: resolved