By Genevieve Kolling on Tuesday, 31 January 2017
Posted in General
Likes 0
Views 180
Votes 0
Hello!

I built a custom module that displays a user's avatar, as well as a simple alert that tells them whether they have any new notifications. It's working on my local stack, but on another server, only the avatar is appearing -- the activity alert isn't working at all — as in, I used this code:


$my = ES::user();
$total = $my->getTotalNewNotifications();


And the variable $total isn't returning anything. If I try to echo the variable, nothing happens.

I've included all system information in the "hidden" field below. Any guidance would be much appreciated!!! Thanks for a great suite of extensions!!!!!

Bob
Hello Bob,

Is it possible for you provide us access to your live site so that we can have better look on the module. You can provide us Backend, FTP and phpmyadmin.
·
Tuesday, 31 January 2017 11:30
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi, Nik! Thanks so much for the speedy response. Unfortunately, the site is on a VPN. I'd need to talk with my employers.

Do you and/or your team have the capacity to work over a VPN, if I were to give you the credentials?

Thanks again!
·
Tuesday, 31 January 2017 23:14
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

I am really sorry but we normally do not provide support for customized codes as they aren't supported in our support policy. However, in your case we'll make this an exception just this once but before we even dive into the whole VPN fiasco, are there any errors generated with your codes?
·
Wednesday, 01 February 2017 01:47
·
0 Likes
·
0 Votes
·
0 Comments
·
Howdy! This is solved, and it was my bad. I had a teensy PHP syntax error that my local stack didn't notice, but my remote one did. D'oh! Thanks, team!!!
·
Friday, 03 February 2017 05:25
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

You are most welcome. Glad to hear that your issue has been resolved now.

As a gentle reminder, kindly start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiry. I will lock and mark this thread as resolved.
·
Friday, 03 February 2017 09:46
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post