Title: Causing PHP errors with Genesis 2.0
Last modified: August 21, 2016

---

# Causing PHP errors with Genesis 2.0

 *  Resolved [Skeary](https://wordpress.org/support/users/skeary/)
 * (@skeary)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/causing-php-errors-with-genesis-20/)
 * Using the plugin on a site using Genesis 2.0 I get PHP errors in one of the genesis
   functions when viewing the main Events listing page:
    genesis_get_cpt_archive_types_names()
   returns null instead of an array which causes the code to error out.
 * I think this is because the plugin is using an unusual 2d array when registering
   a taxonomy or something.
 * [http://wordpress.org/plugins/the-events-calendar/](http://wordpress.org/plugins/the-events-calendar/)

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

 *  [KristyO](https://wordpress.org/support/users/kristyo/)
 * (@kristyo)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/causing-php-errors-with-genesis-20/#post-4009894)
 * I’m getting this PHP error with Genesis as well, I’m not sure what to do.
 * Warning: in_array() expects parameter 2 to be array, null given in /homepages/
   16/d481103813/htdocs/adept-plm/wp-content/themes/genesis/lib/functions/general.
   php on line 293
 * I went and looked at the file and there is no line 293?
 * Please help I would love to get rid of this error.
 * Thanks!
 *  Thread Starter [Skeary](https://wordpress.org/support/users/skeary/)
 * (@skeary)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/causing-php-errors-with-genesis-20/#post-4009914)
 * That was the source of the error I was getting as well.
 *  [KristyO](https://wordpress.org/support/users/kristyo/)
 * (@kristyo)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/causing-php-errors-with-genesis-20/#post-4009915)
 * Did you figure out how to fix it yet?
 *  [inverts](https://wordpress.org/support/users/inverts/)
 * (@inverts)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/causing-php-errors-with-genesis-20/#post-4009931)
 * A quick,** highly not recommended** fix would be to suppress the PHP warnings
   for the time being.
    [http://stackoverflow.com/questions/1987579/how-to-remove-warning-messages-in-php](http://stackoverflow.com/questions/1987579/how-to-remove-warning-messages-in-php)
 * I did that and the calendar appeared to work fine. I’ll post back here if I find
   the time to dig into the plugin code and figure out a small patch. Vice versa,
   as well, I hope?
 *  [Barry Hughes](https://wordpress.org/support/users/websitebakery/)
 * (@websitebakery)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/causing-php-errors-with-genesis-20/#post-4009936)
 * Hi all 🙂
 * We were made aware of this over on [our tri.be forum](http://tri.be/support/forums/forum/events/events-calendar-pro/)
   and our understanding is that this is really a problem in Genesis’s codebase 
   rather than ours – and indeed I believe they are looking into a fix for this.
 * Thanks!

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

The topic ‘Causing PHP errors with Genesis 2.0’ is closed to new replies.

 * ![](https://ps.w.org/the-events-calendar/assets/icon-256x256.gif?rev=2516440)
 * [The Events Calendar](https://wordpress.org/plugins/the-events-calendar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/the-events-calendar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/the-events-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/the-events-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/the-events-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/the-events-calendar/reviews/)

 * 5 replies
 * 4 participants
 * Last reply from: [Barry Hughes](https://wordpress.org/support/users/websitebakery/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/causing-php-errors-with-genesis-20/#post-4009936)
 * Status: resolved