• Resolved herrschuessler

    (@herrschuessler)


    Hi Mikko,

    I noticed that, after updating to 4.0.10, the following PHP error shows in the admin area:

    Notice: Undefined variable: content in /wp-content/plugins/relevanssi/lib/privacy.php on line 46

    I suppose it has something to do with the new privacy page introduced in WP 4.9.6?

    Is anybody else experiencing this?

    Best regards
    Christoph

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Mikko Saari

    (@msaari)

    Yes, there’s a small error in the code; this notice pops up if logging is disabled.

    It’s nothing dangerous, it’s easy to fix and will be fixed in version 4.0.11. You can see the Github issue page here, there’s a?solution: https://github.com/msaari/relevanssi/issues/11

    Same here. Thanks.

    Notice: Undefined variable: content in /wp-content/plugins/relevanssi/lib/privacy.php on line 46

    Getting white screen when updating a post:

    Warning: Cannot modify header information – headers already sent by (output started at /wp-content/plugins/relevanssi/lib/privacy.php:46) in /wp-includes/pluggable.php on line 1216

    • This reply was modified 6 years, 6 months ago by John.

    I just updated to 4.0.10 and immediately, the wp admin displays only a blank page. I only know enough about coding to get myself in trouble. Could you please spell out where (in what file) to put the fix?

    All I understand is that the fix is on the following page but not how to implement it:
    https://github.com/msaari/relevanssi/commit/b9979646c74ef37b7bc45651d30d75cfb2ba4414

    At this point, in order to see the wp admin area, I have had to disable Relevanssi, which is a less than optimum solution.

    Thank you.

    -E Morris

    • This reply was modified 6 years, 6 months ago by ejm.

    Please excuse me for appearing to reply to myself.

    I took a plunge at trying to understand and went into the relevanssi files to add $content = ''; to line 29 of /plugins/relevanssi/lib/privacy.php

    as per the following:

    https://github.com/msaari/relevanssi/commit/b9979646c74ef37b7bc45651d30d75cfb2ba4414

    I then reactivated Relevanssi. Alas. It is still causing the admin area to throw a blank page. I do not know how to find out what the exact error message is. Please advise so I can enable relevanssi again.

    Thank you.

    -E Morris

    Plugin Author Mikko Saari

    (@msaari)

    Ok, so it is slightly more dangerous than it seemed. Adding the

    $content = '';

    should fix the notices and warnings, though.

    If you’re not running WP 4.9.6, that’ll also cause a blank admin page. That’s not good.

    I’ll release a fixed version now that’ll sort out both of these issues, and then everything should work better.

    Many thanks Mikko;

    The update did the trick and the blank page syndrome has disappeared.

    E Morris

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘PHP Error in admin area after update to 4.0.10’ is closed to new replies.