• Maria Aus

    (@maria-krapivko)


    There is a bug after installing some plugins & updating the WordPress:
    Warning: key() expects parameter 1 to be array, null given in /home/wm104722/domains/nophotoplz.com/public_html/wp-content/themes/zancudo/framework/core/class.admin.php on line 301

    I couldn’t find a way to fix it, but I can’t edit any pages because of this bug

    if anyone knows how to fix this please let me know

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi there! judging by the message above, it’s most likely that the issue is coming from the theme zancudo. Would you be able to share that theme or at least the file/line that is mentioned on that error?

    1. Make a backup of that file.
    2. Find out the variable (like “$xyz”) that’s being given to the key() function around that line.
    3. Before the key() function, add this: $xyz = $xyz ? $zyz : NULL;
    4. Replace “xyz” with the variable name, of course. That masks the issue but at least you might be able to load pages. Actually solving the issue is another matter.
    Thread Starter Maria Aus

    (@maria-krapivko)

    Hey @youknowriad of course, how do I do that? I’m sorry, I’m not a pro at this, just an artist who tries to maintain my own web and fix this error. I would really appreciate if you would be able to direct me, thank you!

    @maria-krapivko It really depends on your host provider, but if you can download the wp-content/themes/zacundo folder, this would help us debug further.

    If that’s too complex, you can go to “Tools > Theme File Editor” in the WordPress dashboard and then on the right sidebar under “theme files”, navigate to “framework” > “core” and locate the “class.admin.php” and maybe you can share that file with us or the line 301 of that file.

    This second option is less effective but we’ll only see a partial picture of the problem but may help us find the problem.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘key() expects parameter 1 to be array – 301’ is closed to new replies.