• Resolved brianbill

    (@brianbill)


    I’m getting the following PHP error message: Cannot use a scalar value as an array

    Location;

    wp-content/plugins/jetpack/modules/markdown/easy-markdown.php:484
    WPCom_Markdown->wp_kses_allowed_html()
    wp-includes/class-wp-hook.php:307
    apply_filters('wp_kses_allowed_html')
    wp-includes/kses.php:838
    wp_kses_allowed_html()
    wp-includes/kses.php:1077
    wp_kses_split2()
    wp-includes/kses.php:1017
    _wp_kses_split_callback()
    Unknown location
    preg_replace_callback()
    wp-includes/kses.php:947
    wp_kses_split()
    wp-includes/kses.php:721
    wp_kses()
    wp-includes/kses.php:2106
    wp_kses_post()
    wp-content/plugins/seo-by-rank-math/includes/settings/general/links.php:20
    RankMath\A\Options->register_option_page()
    wp-includes/class-wp-hook.php:307
    do_action('cmb2_admin_init')
    wp-content/plugins/seo-by-rank-math/vendor/cmb2/cmb2/bootstrap.php:26
    cmb2_bootstrap()
    wp-content/plugins/seo-by-rank-math/vendor/cmb2/cmb2/init.php:165
    CMB2_Bootstrap_2101->include_cmb()
    wp-includes/class-wp-hook.php:307
    do_action('init')
    wp-settings.php:598

    Can someone help me to troubleshoot this error please? Thank you

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support MadHatter (a11n)

    (@madhattersez)

    Hello, there.

    What are you trying to accomplish exactly, and what isn’t working the way you expect?

    If you’d be able to provide us with the steps you’re taking when you see this error and where exactly you’re seeing it, that would definitely help.

    One more thing before I send this reply back to you – It looks like your xmlrpc.php file (which is needed for Jetpack to work properly) is coming back as a 503 Service Unavailable error when we try to connect to it, and we’re also seeing some timeouts happening.

    In this case, I would recommend reaching out to your webhost to first make sure that Jetpack is not getting blocked or limited or is prevented from accessing your xmlrpc.php file. They can check their error and connection logs for these 503 errors to see exactly what is causing them and hopefully fix them for you.

    For the best results, you would also have them allowlist the Jetpack IP ranges noted on this page:

    https://jetpack.com/support/how-to-add-jetpack-ips-allowlist/

    Aside from telling us more about the error you posted in this thread, please do let us know once you’ve talked with your host as well so we know that Jetpack is connected and working properly before we continue to troubleshoot. Thanks!

    Thread Starter brianbill

    (@brianbill)

    Thanks for the response.
    The error disappeared when I turned off “Bot” in Cloudflare.

    To prevent unauthorized access to xmlrpc.php, I blocked IP access to the file about a week ago in cloudflare and added the following Jetpack IPs to allowlist:

    192.0.64.0/24
    192.0.65.0/24
    192.0.66.0/24
    192.0.67.0/24
    192.0.68.0/24
    192.0.69.0/24
    192.0.70.0/24
    192.0.71.0/24
    192.0.72.0/24
    192.0.73.0/24
    192.0.74.0/24
    192.0.75.0/24
    192.0.76.0/24
    192.0.77.0/24
    192.0.78.0/24
    192.0.79.0/24
    192.0.80.0/24
    192.0.81.0/24
    192.0.82.0/24
    192.0.83.0/24
    192.0.84.0/24
    192.0.85.0/24
    192.0.86.0/24
    192.0.87.0/24
    192.0.88.0/24
    192.0.89.0/24
    192.0.90.0/24
    192.0.91.0/24
    192.0.92.0/24
    192.0.93.0/24
    192.0.94.0/24
    192.0.95.0/24
    192.0.96.0/24
    192.0.97.0/24
    192.0.98.0/24
    192.0.99.0/24
    192.0.100.0/24
    192.0.101.0/24
    192.0.102.0/24
    192.0.103.0/24
    192.0.104.0/24
    192.0.105.0/24
    192.0.106.0/24
    192.0.107.0/24
    192.0.108.0/24
    192.0.109.0/24
    192.0.110.0/24
    192.0.111.0/24
    192.0.112.0/24
    192.0.113.0/24
    192.0.114.0/24
    192.0.115.0/24
    192.0.116.0/24
    192.0.117.0/24
    192.0.118.0/24
    192.0.119.0/24
    192.0.120.0/24
    192.0.121.0/24
    192.0.122.0/24
    192.0.123.0/24
    192.0.124.0/24
    192.0.125.0/24
    192.0.126.0/24
    192.0.127.0/24

    Please let me know if there is an additional step I need to make.

    • This reply was modified 2 years, 8 months ago by brianbill.
    Plugin Support lastsplash (a11n)

    (@lastsplash)

    While I’m glad that the error went away, it’s still unclear if it is related to Jetpack and why it went away.

    We’re still seeing the 503 error when we test your connection.

    I’d recommend following these steps to configure Jetpack to work with Cloudflare:

    https://jetpack.com/support/getting-started-with-jetpack/configure-jetpack-cloudflare/

    If the Jetpack connection still isn’t working, you will need to reach out to Cloudflare.

    Additionally, regarding the initial error message, can you share what you were trying to do at the time you encountered the error? That would help us to reproduce it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Cannot use a scalar value as an array’ is closed to new replies.