Title: Notifications Error
Last modified: August 21, 2016

---

# Notifications Error

 *  ResolvedPlugin Author [myCred](https://wordpress.org/support/users/designbymerovingi/)
 * (@designbymerovingi)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/notifications-error/)
 * **Issue:**
    When using either `'` or `"` in the message template, a notice will
   trigger an error and is not saved.
 * **Solution:**
    Open the myCRED-addon-notifications.php file located in `plugins/
   mycred/add-ons/notifications/` and make sure the following three lines are correct:
 * On line 74 your code should be:
 *     ```
       foreach ( (array) $notices as $notice ) {
       ```
   
 * On line 77 your code should be:
 *     ```
       echo '<script type="text/javascript">(function(jQuery){jQuery.noticeAdd({ text: "' . $notice . '",stay: ' . $stay . '});})(jQuery);</script>';
       ```
   
 * And finally on 237 your code is:
 *     ```
       $notices[] = addslashes( $notice['message'] );
       ```
   
 * [http://wordpress.org/plugins/mycred/](http://wordpress.org/plugins/mycred/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [myCred](https://wordpress.org/support/users/designbymerovingi/)
 * (@designbymerovingi)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/notifications-error/#post-4192735)
 * Also on line 153 your code should be:
 *     ```
       add_filter( 'mycred_notifications', create_function( '$query', '$query[]=\'' . $notice . '\'; return $query;' ) );
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Notifications Error’ is closed to new replies.

 * ![](https://ps.w.org/mycred/assets/icon-128x128.gif?rev=3512531)
 * [Points Management System For Gamification, Ranks, Badges, and Loyalty Rewards Program - myCred](https://wordpress.org/plugins/mycred/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mycred/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mycred/)
 * [Active Topics](https://wordpress.org/support/plugin/mycred/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mycred/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mycred/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [myCred](https://wordpress.org/support/users/designbymerovingi/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/notifications-error/#post-4192735)
 * Status: resolved