Title: Preview failure
Last modified: May 11, 2025

---

# Preview failure

 *  Resolved [plord12](https://wordpress.org/support/users/plord12/)
 * (@plord12)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/preview-failure/)
 * Previewing my event I see :
 * ![](https://immich.plord.co.uk/api/assets/4fe340e6-551b-4873-bdf3-4780982349d8/
   original?key=Q0dPfLl177U88POIq7OL4Ee-a_Ch_AJAGilomKyOS_gBeDEeXmdtAy-v7C5TRgs31wg&
   c=%2BQcGBQKCu1KIyqr2jMVIhWSJb4b3)
 * A couple of issues with this :
    - The icons on the top don’t do anything
    - “critical error” shown – I presume this is stopping the actual event text 
      being displayed
 * Server logs include
 *     ```wp-block-code
       AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught Error: Call to a member function get_name() on null in /home/sites/10b/7/79fe0e6b13/public_html/wp-content/plugins/event-bridge-for-activitypub/templates/event-preview.php:1352Stack trace:#0 /home/sites/10b/7/79fe0e6b13/public_html/wp-includes/template-loader.php(106): include()#1 /home/sites/10b/7/79fe0e6b13/public_html/wp-blog-header.php(19): require_once('/home/sites/10b...')#2 /home/sites/10b/7/79fe0e6b13/public_html/index.php(17): require('/home/sites/10b...')#3 {main}  thrown in /home/sites/10b/7/79fe0e6b13/public_html/wp-content/plugins/event-bridge-for-activitypub/templates/event-preview.php on line 1352'
       ```
   
 * Browser console includes
 *     ```wp-block-code
       GET https://u3acommunities.org/event/local-generative-ai/?preview=true&activitypub=true# [HTTP/2 500  1449ms]Uncaught ReferenceError: openPreviewForApplication is not defined    onclick https://u3acommunities.org/event/local-generative-ai/?preview=true&activitypub=true#:1
       ```
   

Viewing 1 replies (of 1 total)

 *  Plugin Author [André Menrath](https://wordpress.org/support/users/andremenrath/)
 * (@andremenrath)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/preview-failure/#post-18463337)
 * Thanks a lot for your detailed report. The issue is a missing check whether the
   location is present at all. I will ship a fix with the next release.
 * See [https://codeberg.org/Event-Federation/wordpress-event-bridge-for-activitypub/issues/160](https://codeberg.org/Event-Federation/wordpress-event-bridge-for-activitypub/issues/160)

Viewing 1 replies (of 1 total)

The topic ‘Preview failure’ is closed to new replies.

 * ![](https://ps.w.org/event-bridge-for-activitypub/assets/icon-256x256.gif?rev
   =3215286)
 * [Event Bridge for ActivityPub](https://wordpress.org/plugins/event-bridge-for-activitypub/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/event-bridge-for-activitypub/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/event-bridge-for-activitypub/)
 * [Active Topics](https://wordpress.org/support/plugin/event-bridge-for-activitypub/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/event-bridge-for-activitypub/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/event-bridge-for-activitypub/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [André Menrath](https://wordpress.org/support/users/andremenrath/)
 * Last activity: [1 year, 3 months ago](https://wordpress.org/support/topic/preview-failure/#post-18463337)
 * Status: resolved