• Resolved Skeary

    (@skeary)


    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/

Viewing 5 replies - 1 through 5 (of 5 total)
  • 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

    (@skeary)

    That was the source of the error I was getting as well.

    Did you figure out how to fix it yet?

    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

    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?

    Hi all 🙂

    We were made aware of this over on our tri.be forum 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.