Title: Twig_Error_Runtime thrown
Last modified: August 22, 2016

---

# Twig_Error_Runtime thrown

 *  Resolved [secret_rc23](https://wordpress.org/support/users/secret_rc23/)
 * (@secret_rc23)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/twig_error_runtime-thrown/)
 * An exception has been thrown during the rendering of a template (“Requested method‘
   permalink’ is unknown”) in “agenda-widget.twig” at line 38.
 * How to solve it?
 * [https://wordpress.org/plugins/all-in-one-event-calendar/](https://wordpress.org/plugins/all-in-one-event-calendar/)

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

 *  [Nicola Peluchetti](https://wordpress.org/support/users/nicolapeluchetti/)
 * (@nicolapeluchetti)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/twig_error_runtime-thrown/#post-5502615)
 * we will release 2.1.8 today for that. to fix it you must add to file
 * `app/model/event-compatibility.php` the following method
 *     ```
       /**
       	 * Returns Event instance permalink for FER compatibility.
       	 *
       	 * @return string Event instance permalink.
       	 */
       	public function getpermalink() {
       		return $this->get_runtime( 'instance_permalink' );
       	}
       ```
   
 * [http://take.ms/4E9bg](http://take.ms/4E9bg)
 *  [absolute0net](https://wordpress.org/support/users/absolute0net/)
 * (@absolute0net)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/twig_error_runtime-thrown/#post-5502634)
 * I added the above function to the file, cleared my browser cache and reloaded
   the page and I’m still getting the same error. Any other thoughts?
 *  [Nicola Peluchetti](https://wordpress.org/support/users/nicolapeluchetti/)
 * (@nicolapeluchetti)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/twig_error_runtime-thrown/#post-5502651)
 * Try point 2
 * [https://wordpress.org/support/topic/known-issues-with-version-216-and-above-and-possible-solutions?replies=10](https://wordpress.org/support/topic/known-issues-with-version-216-and-above-and-possible-solutions?replies=10)
 *  [absolute0net](https://wordpress.org/support/users/absolute0net/)
 * (@absolute0net)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/twig_error_runtime-thrown/#post-5502660)
 * I’ve tried point 2 with no success. I also updated to 2.8.1 but it didn’t resolve
   the issue, I’m still getting the error. You can see for yourself at [http://www.villageofwestfieldcenter.com/test-page/](http://www.villageofwestfieldcenter.com/test-page/)
 *  [absolute0net](https://wordpress.org/support/users/absolute0net/)
 * (@absolute0net)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/twig_error_runtime-thrown/#post-5502662)
 * In an effort to troubleshoot any plugin or theme conflicts I downloaded the 2.8.1
   version and installed it on a base wordpress install.
 * When I went to activated it, I got the following error:
    Fatal error: Call to
   a member function render() on a non-object in /var/www/vhosts/absolute0.net/httpdocs/
   gimOybiv3/wp-content/plugins/all-in-one-event-calendar/vendor/twig/Environment.
   php on line 300
 *  [krannock](https://wordpress.org/support/users/krannock/)
 * (@krannock)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/twig_error_runtime-thrown/#post-5502695)
 * I had this error tonight after updating the plugin.
 * problem was solved by going to calendar themes and changing the theme and then
   changing it back again.
 * Hope this helps.
 *  [salty-sailor](https://wordpress.org/support/users/salty-sailor/)
 * (@salty-sailor)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/twig_error_runtime-thrown/#post-5502697)
 * +1 [@krannock](https://wordpress.org/support/users/krannock/) (I just changed
   from ‘gamma’ to ‘vortex’ theme and left it alone)
 *  [MikeColes](https://wordpress.org/support/users/mikecoles/)
 * (@mikecoles)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/twig_error_runtime-thrown/#post-5502797)
 * Thanks krannock. I had the same issue, activated a new theme, then re-activated
   the old one. Voila! All working again.
 *  [Asif Ata](https://wordpress.org/support/users/asif-ata/)
 * (@asif-ata)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/twig_error_runtime-thrown/#post-5502810)
 * there is no a big issue, **i have done it and it is working well** 🙂
    just run
   this query in your database:
 * **UPDATE wp_ai1ec_events SET timezone_name=’America/New_York’**
 * actually in updated plugin, there is a new field of timezone, and before this
   version there was no field so this field showing null data in database and error
   is appearing because of it
 * in this query set your own time zone, i personally set ‘America/New_York’
 * UPDATE wp_ai1ec_events SET timezone_name=’America/New_York’
 *  [Asif Ata](https://wordpress.org/support/users/asif-ata/)
 * (@asif-ata)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/twig_error_runtime-thrown/#post-5502811)
 * there is no a big issue, **i have done it and it is working well** 🙂
    just run
   this query in your database:
 * **UPDATE wp_ai1ec_events SET timezone_name=’America/New_York’**
 * actually in updated plugin, there is a new field of timezone, and before this
   version there was no field so this field showing null data in database and error
   is appearing because of it
 * in this query set your own time zone, i personally set ‘America/New_York’
 * UPDATE wp_ai1ec_events SET timezone_name=’America/New_York’

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

The topic ‘Twig_Error_Runtime thrown’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/all-in-one-event-calendar.svg)
 * [Timely All-in-One Events Calendar](https://wordpress.org/plugins/all-in-one-event-calendar/)
 * [Support Threads](https://wordpress.org/support/plugin/all-in-one-event-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/all-in-one-event-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/all-in-one-event-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/all-in-one-event-calendar/reviews/)

 * 10 replies
 * 7 participants
 * Last reply from: [Asif Ata](https://wordpress.org/support/users/asif-ata/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/twig_error_runtime-thrown/#post-5502811)
 * Status: resolved