WordPress.org

Ready to get started?Download WordPress

Forums

Jetpack by WordPress.com
HELP ! Problem function.array-key-exists (11 posts)

  1. Robert Cadar
    Member
    Posted 1 year ago #

    Warning: array_key_exists() [function.array-key-exists]: The first argument should be either a string or an integer in ......./wp-content/plugins/jetpack/modules/photon.php on line 183

    Can anyone help me with this issue ?

    http://wordpress.org/extend/plugins/jetpack/

  2. htrex
    Member
    Posted 1 year ago #

    After the update from 2.0.2 to 2.0.4 I'm seeing this error message appearing on the front end of my site too!

    Robert, waiting for a proper solution from automattic, you can place an '@' character in front of array_key_exists statement to suppress the warning.

    After the modification line 183 of /wp-content/plugins/jetpack/modules/photon.php should be:

    } elseif ( isset( $size ) && @array_key_exists( $size, $image_sizes ) && isset( $image_sizes[ $size ]['crop'] ) ) {
  3. Robert Cadar
    Member
    Posted 1 year ago #

    The design of my page it's not ok, even if i write this "@" ... i still see in place of each article picture this message.

    Thanks anyway htrex .

  4. Robert Cadar
    Member
    Posted 1 year ago #

    strange, first time i didn't see any change , now works ! thanks

  5. Robert Cadar
    Member
    Posted 1 year ago #

    Have something to do with resize, because now i have all pictures from the articles reduced to 150x150 automatically

  6. John Seln├Žs
    Member
    Posted 1 year ago #

    Deleted Jetpack 2.0.4 and reinstalled Jetpack 2.0.4 solved the problem for me.

  7. htrex
    Member
    Posted 1 year ago #

    John, that probably seemed to solve the problem because deleting and reinstalling Jetpack also resets it's settings and Photon is disabled by default.
    If you reenable that option you should see the problem again, or at least that's what happens on my site...

    Please Automattic check this problem!

  8. OzManic
    Member
    Posted 1 year ago #

    I'll ad my voice to those who are having this problem.

    http://datascopic.net/about/oz-du-soleil/

  9. OzManic
    Member
    Posted 1 year ago #

    htrex, what does it mean to Automattic check this problem?
    I'm reluctant to delete Jetpack, reinstall and have all of the setting reset.

  10. OzManic
    Member
    Posted 1 year ago #

    Ok. I deactivated Photon and things are looking ok again.

  11. Mazzastick
    Member
    Posted 1 year ago #

    That solved the problem for me too OzManic.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic