• Hello, I get the following message at the top of the content after the subscriber confirms per emails:
    Warning: Trying to access array offset on value of type bool in /srv/www/3/9/7/3977/www/www.andersreisen.at/htdocs/wp-content/themes/fluida-plus/cryout/prototypes.php on line 913

    Do you have any idea why? THANKS! Blessings, @brisch

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Brisch

    (@brisch)

    This is line 913:

    $output .= '<a href="' . $homeUrl . '/' . $slug['slug'] . '/">' . $post_type->labels->singular_name . '</a>';
    Plugin Support Kel C. a11n

    (@kellymetal)

    Hi there @brisch,

    I see that the warning is being reported from a file in your Fluida Plus theme.

    From the warning message Trying to access array offset on value of type bool, it sounds like the code is trying to access an array value on a variable that’s type boolean, rather than an array. In the line of code you shared, the only part that seems related is the $slug['slug'] part.

    It’s hard to say for sure, but it seems at that point in the code when loading the Subscription confirmation page, $slug is set to a boolean value, resulting in that warning being reported. I see the same thing on the Captcha page after submitting your subscription form as well. It’s likely since the MailPoet pages don’t actually have slugs, just URLs going through the mailpoet_router function like https://www.andersreisen.at/?mailpoet_page=subscriptions&mailpoet_router&endpoint=subscription...

    That said, please note that it is just a warning message, so you could disable WP Debug to not display the message on your site’s frontend: https://wordpress.org/documentation/article/debugging-in-wordpress/

    Alternatively, you could reach out to your theme developer to ask about having the code in the theme files updated to handle that.

    I hope this helps! Please let me know if you have any questions.

    Thread Starter Brisch

    (@brisch)

    Thanks for your answer! Maybe I should use another theme.
    Blessings, Brisch

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Warning: Trying to access array’ is closed to new replies.