WWBN / AVideo

Create Your Own Broadcast Network With AVideo Platform Open-Source. OAVP OVP
https://avideo.tube/AVideo_OpenSource
Other
1.91k stars 972 forks source link

Login problems and cache issues after last updates. URGENT #6310

Closed partystreamsk closed 2 years ago

partystreamsk commented 2 years ago

Describe the bug As i write by email. On friday we had a live stream on my site and users reported me that had issues with login, after login they was loged off after few seconds/minutes. They tried different way to login (facebook, google) but same behavior. Even if they use anonymous window , same issue. Customers and friends dont wanna visit my site more. Even lot of members get errors durring login, they was unable to login. Tried to clear cache of first page + directory , not helped. Its there way to deactivate completly cache?

To Reproduce Steps to reproduce the behavior:

  1. Login
  2. stay on site
  3. after few minutes loged out

Expected behavior After somebody login, should be loged in till dont press logout.

Error Logs No errors in avideo.log

Thanks

OptimistPrimal commented 2 years ago

Uploaded Chat2 and SendRecordertoEncoder updates - site broken.

array(4) { ["type"]=> int(64) ["message"]=> string(207) "Declaration of Chat2::afterDonation($from_users_id, $how_much, $videos_id, $users_id, $extraParameters) must be compatible with PluginAbstract::afterDonation($from_users_id, $how_much, $videos_id, $users_id)" ["file"]=> string(98) "/home/WEBSITE/public_html/AVideo/plugin/Chat2/Chat2.php(18) : eval()'d code(1) : eval()'d code" ["line"]=> int(427) }

disabled the Chat2 plugin on server - site will load. Chat2 update appears to be the problem.

DanielnetoDotCom commented 2 years ago

Make also a git pull

partystreamsk commented 2 years ago

No new git pull.. last one is this : 2022-02-26 17:07 avoid errors

DanielnetoDotCom commented 2 years ago

@partystreamsk I think this error is not clear.

it seems to be has nothing to do with the cache.

if you do not check the Remember me switch button on the login form, you may be disconnected on the session timeout

there are a few places to set it up, you may need to check where is it in your server,

in most cases, you can find this configuration on php.ini or on apache

also if there is nothing overwriting the PHP code (any server configuration) you may be able to increase it here

image

partystreamsk commented 2 years ago

the problem was that people after login, joined my live stream and was not able to tip me because button of donation was orange that shows ,that user was not logged in. So afterč login, people was not able to chat. This is main problem.

DanielnetoDotCom commented 2 years ago

humm, this is confusing.

do they log in before joining your live?

do you mean after login they do not have access to the chat anymore?

can you please post here a page that behaves like you described?

partystreamsk commented 2 years ago

It was last sheduled live. Like this one : https://partystream.tv/live/0/MaloFunAcademy?live_schedule=22

Chat is same from last stream. They loged in, but in reality they was logged off.. Some people logged succesfuly after they try more times , but after few minutes they was disconnected and was not able to use chat. Same behavior was with incognito mode, but at least they logged in succesfuly, chat for few minutes and after that again unable and logged off. fortr that i thought that is something to do with cache.

DanielnetoDotCom commented 2 years ago

Maybe you have this checked,

image

thy to uncheck it

the separateChatPerLive makes each livestream a separate chat.

so if for some reason your live disconnect and you connect again the chat will be reset.

if you uncheck it and you want to reset the chat, you just need to reset the live key

partystreamsk commented 2 years ago

Yes its checked, but my live was not disconected, my live was stable and during this live people encounter this issues. i dont see any refreshes of live. Its there any way to deactivate cache of site? yes plugin cache is deactivated. During the problems i tried both activated and deactivated. Between before you do customisation of plugin with new features, login worked fine. So maybe there is issue.

DanielnetoDotCom commented 2 years ago

again, this is not related to the cache.

if you want to do not refresh on a live please uncheck that. otherwise, the chat will refresh when you start a new live

partystreamsk commented 2 years ago

Yes i know what you write, but problem is not refresh because when i start to stream , chat is refreshed just one time. After that people join me and cannot write on chat because they are logged off. This is problem. Chat is not refreshing, chat and stream is stable but they are logged off.

  1. they login successfuly on homepage
  2. after they join my stream, they results logged off.
  3. This behavior started from when you do custom work. before nobody has issues with login.
  4. So its something like chat2 dont see logged user even if is logged in on page, is not logged in on chat2. understand now please?
DanielnetoDotCom commented 2 years ago

Question ....

do you have your Chat setup on a separate server or on the same server?

can you please share a page where it does happen?

also a test user if it possible?

partystreamsk commented 2 years ago

Its on the same server, like before. Its happening on live page. https://partystream.tv/live/0/MaloFunAcademy?live_schedule=22

Try to login by social login, there are three ways or test user is : DanielTest , pass : DanielTest

DanielnetoDotCom commented 2 years ago

Just tested it and seems fine to me, what did I do wrong? chrome-capture (3)

partystreamsk commented 2 years ago
  1. Try to login on HomePage and than go to the stream.
  2. Try to login by native button of site , not on orange button
  3. Try it with mobile phone.
partystreamsk commented 2 years ago

Its look like you are loged on site, but loged off on chat.

partystreamsk commented 2 years ago

Now i tried to reproduce issue on iphone and android phone and after last git pull its look like works fine on booth devices. No issues with login. During this week i will try do do a stream show before a friday so i will test with public too. Thank you for now

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.