• Resolved angelalgibson

    (@angelalgibson)


    Hi there,

    First, thank you for the great plugin! Overall it works as expected. I do have some concerns about the following warnings:

    FastCGI sent in stderr: “PHP message: PHP Warning: Undefined array key “which_users” in /public/wp-content/plugins/content-control/classes/Site/Widgets.php on line 47

    PHP message: PHP Warning: Undefined array key “roles” in /public/wp-content/plugins/content-control/classes/Site/Widgets.php on line 47

    The warning indicates that it was not able to find which_users and roles array keys on Widgets.php on line 47. It could be that it was not initialized properly. It means that under the $option array, it can’t find the array key containing “which users” and roles.

    Any ideas?

    Thank you!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Bel

    (@belimperial)

    Hi @angelalgibson

    Thank you for reaching out, and for letting us know the PHP warning.

    We tried to replicate the issue on our test environment, but we were unable to reproduce the issue.

    Can you please tell us more about your WordPress setup? We’d like to test it using the same site configuration.

    • WordPress version
    • PHP version
    • Content Control version
    • Hosting provider

    Thank you!

    Thread Starter angelalgibson

    (@angelalgibson)

    Hi there, Bel.

    Thank you for getting back to me. Here is the info you requested:

    • WordPress version: 6.1.1
    • PHP version: 8.0
    • Content Control version: Version 1.1.10
    • Hosting provider: Kinsta

      Let me know if you need anything further from me.

      Thank you!
    Bel

    (@belimperial)

    Hi @angelalgibson

    Thank you for your reply.

    We’ve asked our development team to have a look with the same setup.

    We’ll get back to you as soon as we received new information.

    Thank you for your patience.

    Thread Starter angelalgibson

    (@angelalgibson)

    Hi Bel,

    Just an update… I originally built my site on PHP 8.0, but there were a lot of issues, so I had to revert to PHP 7.4.

    The PHP warnings I listed above no longer occur, so it appears to be related to PHP 8.0.

    I do see that Content Control Version 1.1.10 is PHP 8.0+ ready, so not sure what is happening. But perhaps knowing that those errors do not appear on PHP 7.4 may be helpful.

    Thank you!

    ~ Angela

    Bel

    (@belimperial)

    Hi @angelalgibson

    Thank you for the update.

    We’re glad you have managed to fix the PHP warnings.

    Our developers are currently working on improvements for Content Control, so there might be things to look forward in future updates, including avoiding the PHP warnings when using PHP 8.0.

    Let us know if you have any questions.

    Bel

    (@belimperial)

    Hi @angelalgibson

    I’m going to mark this as resolved, as we haven’t heard from you in a while.

    Feel free to create a new thread if you have any other questions.

    Thank you!

    Hello. I´m whith the same issue.
    I can’t back to the 7.4 PHP version.

    it’s breaking my site

    https://test.asaga.org.ar


    Any idea? Thanks

    • WordPress version: 6.2
    • PHP version: 8.1
    • Content Control version: Version 1.1.10 
    • Hosting provider: VPS GoDaddy

      Error msg:
      Warning: Undefined array key “which_users” in /home/asagaorg/public_html/test.asaga.org.ar/wp-content/plugins/content-control/classes/Site/Widgets.php on line 47
    • same with roles
    • This reply was modified 2 years, 10 months ago by iamnicosilva. Reason: add
Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Undefined array key “which_users” and “roles”’ is closed to new replies.