-
Hi Ahmed,
I recently migrated my site to another host. Now I have the unread messages box showing at all times for some reason. Do you mind popping into the site and checking it out?
I’ll add the login details in a private post below.
Sorry, Salih. Are you using the latest version of the addon?
What error do you get? Please give me a direct page or image to check the issue. Thanks!
Salih, download messaging addon from customer portal again.
On line 379, api.php
there’s not foreach loop, there’s this: global $userpro;
Please confirm/double check line 379 in your api.php
Hi Ahmed, I do have the latest file installed. I tried to insert global $userpro; as suggested however it broke the site. Here is the code I think you’re talking about.
PHP12345678910111213return '';}}/* Sort array */function array_sort_by_column(&$arr, $col, $dir = SORT_ASC) {$sort_col = array();foreach ($arr as $key=> $row) {Start line375
end line 389Salih, no , I do not mean this. On messaging addon functions/api.php file itself, what’s in line 379 ?
Here’s the line of code starting at 373 – 383
PHP1234567891011/* new chats notification */function new_chats_notifier($user_id) {$unread = $this->get_conv_unread_folder($user_id);$count = count(glob( $unread . "*"));$num = 0;if ($count > 0) {foreach (glob( $unread . '*.txt') as $user) {$content = @file_get_contents($user);$content = explode('[/]', $content);$num += count($content) - 1;}Just updated and still reads 0 unread messages.:( Stupid server migration!
Does it work on fresh install? Did it happen after migrating to new server (copied files etc)? That could be the reason!
It’s definitely the reason as it was working fine before. I just don’t know why or how I can re-install plugin with all the existing and for it to work.
There’s a lot of stuff in here Ahmed like people’s profile pictures and all of that. We have close to 300 active members, is there some specific folder I should be clearing. I can’t really touch and remove their profile images etc.
You must be logged in to reply to this topic.