Thread Rating:
  • 12 Vote(s) - 4.67 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MyAlerts v2.0.4
Yeah, the only reason I can see would be due to another plugin interfering. I've not been able to replicate the issue on its own on a stock install. I'm think I might just add a check to the plugin and skip the rest of the function if data is missing.
Reply
After the update, I'm also getting this error on 2x forums; seems to be selective as I'm seeing some without any info, and others as normal (even on the same post, if that makes sense)

Not sure if it helps, but both forums use the same plugins in conjunction with MyAlerts all listed below

Automatic Award Granting (1.0)
Cookie Law (1.0.0)
First Post Edit Permissions (0.0.2)
MentionMe (3.2.10)
MyAlerts (2.0.4)
MyBB Fancybox (1.0.0dev)
MyBot (1.4.1)
OUGC Admin Post Edit (1.8.19)
OUGC Awards (1.8.19)
Template Conditionals (1.8)
Rin Editor (0.9.6)
Table Generator (2.0)
Thank You/Like System (3.2.0)
View Unread Posts (1.11)
XThreads (1.68)
YourCode (2.1.3)
Reply
(06-17-2019, 06:55 PM)Euan T Wrote: Yeah, the only reason I can see would be due to another plugin interfering. I've not been able to replicate the issue on its own on a stock install. I'm think I might just add a check to the plugin and skip the rest of the function if data is missing.
Thanks a lot.
Reply
I hope you could make it Smile
Reply
Hey Euan. Seems like Alerts broke my https://

Gave me error in console as:
Uncaught ReferenceError: my_post_key is not defined
at myalerts.js:82

This is what reads:
;
(function ($, window, document, my_post_key, undefined) {
    this.MybbStuff = this.MybbStuff || {};

    this.MybbStuff.MyAlerts = (function MyAlertsModule(window, $) {
        var module = function MyAlerts() {
            $('a.open_modal').click(this.openModal).bind(this);

            $("body").on("click", "#getUnreadAlerts", this.getUnreadAlerts);

            $("body").on("click", ".deleteAlertButton", this.deleteAlert).bind(this);

            if (typeof myalerts_autorefresh !== 'undefined' && myalerts_autorefresh > 0)
            {
                window.setInterval(function() {
                    $.get('xmlhttp.php?action=getNewAlerts', function(data) {
                        $('#latestAlertsListing').prepend(data);
                    });
                }, myalerts_autorefresh * 1000);
            }

            if (typeof unreadAlerts !== 'undefined' && unreadAlerts > 0)
            {
                document.title = document.title + ' (' + unreadAlerts + ')';
            }
        };

        module.prototype.openModal = function openModal(event) {
            event.preventDefault();

            var originalTarget = $(event.currentTarget),
                modalSelector = originalTarget.attr('data-selector');

            $(modalSelector).modal({
                fadeDuration: 250,
                keepelement: true
            });

            return false;
        };

        module.prototype.getUnreadAlerts = function getUnreadAlerts(event) {
            event.preventDefault();
            $.get('xmlhttp.php?action=getNewAlerts', function(data) {
                $('#latestAlertsListing').html(data.template);
            });
        };

        module.prototype.deleteAlert = function deleteAlert(event) {
            event.preventDefault();

            var deleteButton = $(event.currentTarget),
                alertId = deleteButton.attr("id").substring(13);

            $.getJSON('xmlhttp.php?action=myalerts_delete', {accessMethod: 'js', id: alertId, my_post_key: my_post_key}, function(data) {
                if (data.success)
                {
                    deleteButton.parents('tr').get(0).remove();
                    if (data.template)
                    {
                        $('#latestAlertsListing').html(data.template);
                    }
                }
                else
                {
                    for (var i = 0; i < data.errors.length; ++i) {
                        console.log(data.errors[i]);
                    }
                    alert(data.errors[0]);
                }
            });

            return false;
        };

        return module;
    })(window, jQuery);

    $(document).ready(function() {
        var myalerts = new MybbStuff.MyAlerts();
    });
})(jQuery, window, document, my_post_key);




What can be issue on this one? Thanks for great plugin Big Grin
Reply
Message deleted. My issue was caused by something else.
Reply
(04-13-2019, 01:54 PM)Alia Wrote:
Quote:I've been having this problem. I'm using MyAlerts with MentionMe. The @ mentions work (ie the dropdown and text highlighting), and the alerts # increases, but when I try to view my alerts or access alert settings via UCP, I get a blank page.


I tried Serpius' solution here but nothing changed. I've logged in as a regular user, and no dice there either. I am using Mybb 1820 MentionMe 3.2.9 and MyAlerts 2.0.4, and even updated Plugin Library, all the latest versions afaik.

Zip zero nada.

Ideas?

Many thanks!


(04-12-2019, 10:04 PM)Wildcard Wrote: Is it possible that MentionMe's language files are missing? Can you just double-check that everything has been copied correctly?

I just looked and that is the only possibility that I came up with for it to be on the MentionMe side of things.

Is there anything pertinent in the error logs?

Quote:Lang files are there


No error was created. Cleared log (that was a trip ; ), did a couple of @mentions, and checked my alerts. No changes in the error.log

Thank you for the generous help! You are much appreciated <3

I am still getting blank screens for MyAlerts. I have updated my forums to 1821, myalerts is 2.0.4 (core/classloader updated per instructions), plugin library up to date, and deactivated every single other plugin, and still get zip. 

I can see that I have alerts in the user cp, but when I click on them, I get mysite.com/usercp.php?action=alerts with a a blank screen. Nothing is output to the error log. 

Ideas?

Thank you!
Reply
What I would like is to receive subscription alerts in forums. MyAlerts only allows threads subscriptios, but does not allow forum alerts.

Has anyone ever created this?

I would love to have this.
Reply
nevermind, this is fixed
Reply
(06-17-2019, 06:55 PM)Euan T Wrote: Yeah, the only reason I can see would be due to another plugin interfering. I've not been able to replicate the issue on its own on a stock install. I'm think I might just add a check to the plugin and skip the rest of the function if data is missing.

Still waiting to try this amazing plugin!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)