WordPress.org

Ready to get started?Download WordPress

Forums

Edit Flow
[resolved] Disabling email notifications of status changes giving syntax error (9 posts)

  1. Statmanlouie
    Member
    Posted 3 years ago #

    The code that was posted earlier for removing email notifications of status updates is giving me issues in 3.1.

    This works on one of my Websites (which is running WordPress 3.0.2), but when I tried to do this on my newest site, which is running 3.1, WordPress itself completely crashes and I have to go into the php files in a text editor and remove it manually.

    Editflow works fine until I try to remove the user notifications.

    When I post the code on this page in the theme editor and update the file, the whole thing goes down. I can’t get the site or the WordPress dashboard to load anymore. I have to go back into folders the theme is saved in and then remove it from the functions.php file.

    I wasn’t sure if it was because of the theme I was using, so I reactivated the default WordPress theme, and tried it again and it did the same thing. The page just doesn’t load (neither does the dashboard) and it just has a “This site is unavailable” message in Chrome and a blank page in Firefox.

    It works fine in our other website, however. I even copied and pasted the code directly into the new site from the old one, but it doesn’t work …

    Using the Debug, I got this message: Parse error: syntax error, unexpected ‘<' in D:\wordpress-new\wordpress-3.1\wordpress\wp-content\themes\twentyten\functions.php on line 510

    I’m fairly new to WordPress, so maybe it’s just me. I don’t know. Any help would be appreciated.

    http://wordpress.org/extend/plugins/edit-flow/

  2. Scott Bressler
    Member
    Plugin Author

    Posted 3 years ago #

    Hi Louie,

    Is the code in post #2 in this thread what you're using? http://wordpress.org/support/topic/plugin-edit-flow-notification-only-for-editorial-comments?replies=4

    Also, what version of Edit Flow are you using?

    Thanks,
    Scott

  3. Scott Bressler
    Member
    Plugin Author

    Posted 3 years ago #

    Oops, duplicate post.

  4. Statmanlouie
    Member
    Posted 3 years ago #

    Yes, that's the code.

    The site where it works is using 3.0.2

    The site where it's not working is 3.1.

  5. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 3 years ago #

    According to WP_DEBUG, you have a syntax error which means that you most likely copy and pasted something incorrectly. Can you copy the entire snippet you pasted into this thread, along with a few lines before and after?

    Thanks,

    Daniel

  6. Statmanlouie
    Member
    Posted 3 years ago #

    Here's the code I pasted (copied from the one that works):

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Sorry if it turns out to be something simple, but I'm new to WordPress and PHP.

    Thanks for your help. I appreciate it.

  7. Statmanlouie
    Member
    Posted 3 years ago #

    Sorry, here's the code using the pastebin.

    This is the code I used
    http://pastebin.com/ipyHrzcv

    This is the stuff immediately before it.
    http://pastebin.com/XWR9R5KR

  8. Scott Bressler
    Member
    Plugin Author

    Posted 3 years ago #

    Thanks for posting the code. What is on line 510 of functions.php? That is what's causing the syntax error.

  9. Statmanlouie
    Member
    Posted 3 years ago #

    We tracked it down. Thanks for your help.

    Turns out there was a missing ?> at the end of the previous code in both the default theme and the theme I was using (which wasn't missing in the older web site).

    So when I started the line of code to remove the notifications with <?php that's when there was the error.

    Thanks again for your help.

  10. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 3 years ago #

    Glad you figured it out!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags