WordPress.org

Ready to get started?Download WordPress

Forums

Problem with grins (5 posts)

  1. mulligan
    Member
    Posted 9 years ago #

    I made the following edit to my admin-functions.php file to get the grins program to show up when writing:

    <script type="text/javascript">edToolbar();</script>
    ';
    if (function_exists("wp_grins")) { echo "
    "; wp_grins(); }
    echo '</div>';
    endif;
    }

    The plugin is working but now I'm getting this message in the admin area:

    Warning: Cannot modify header information - headers already sent by (output started at /home/mulligan/public_html/wp-admin/admin-functions.php:1044) in /home/mulligan/public_html/wp-admin/admin.php on line 6

    Warning: Cannot modify header information - headers already sent by (output started at /home/mulligan/public_html/wp-admin/admin-functions.php:1044) in /home/mulligan/public_html/wp-admin/admin.php on line 7

    Warning: Cannot modify header information - headers already sent by (output started at /home/mulligan/public_html/wp-admin/admin-functions.php:1044) in /home/mulligan/public_html/wp-admin/admin.php on line 8

    Warning: Cannot modify header information - headers already sent by (output started at /home/mulligan/public_html/wp-admin/admin-functions.php:1044) in /home/mulligan/public_html/wp-admin/admin.php on line 9

    I don't know enough about php to figure out what is wrong. Can anyone help me?

  2. mulligan
    Member
    Posted 9 years ago #

    Thanks but that doesn't answer my question. The only change I made to the admin-functions.php file was to add this after edToolbar()

    if (function_exists("wp_grins")) { echo "
    "; wp_grins(); }

    The link you provided talks about <?php ?> codes which this isn't.

    I know that this is what is causing my problems because when I remove it the problem goes away. I'm just trying to get this to work correctly so that I have the smilies available to click in the writing area of my site.

    Anybody have any other ideas? I can't get this one to work without somehow messing up my code.

  3. Jinsan
    Member
    Posted 9 years ago #

    Are you sure it's not PHP?

    The link macmanx provided is to determine why the error is occurring, with regards to the headers already sent. Have tried any of the suggestions in that?

    If when you remove it the problem goes away, and the code itself is PHP...well I'm confused. The grins plugin does work, I've used it, I just didn't use it long enough.

    Check for any extra spaces that shouldn't be there, is the only idea I can' come up with if you're sure it's not the code itself. I think there have been a few threads with solutions on how to install and configure grins - perhaps you can do a search on the forum?

  4. mulligan
    Member
    Posted 9 years ago #

    Yes, I've done a search and they all come back to adding this

    if (function_exists("wp_grins")) { echo "
    "; wp_grins(); }

    I've tried pulling out what might be extra spaces (I have no idea for sure) and nothing works. The only way to fix the problem is to overwrite the file with the original backup version.

    Thanks anyway.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.