Forum constantly reloads when not logged in.

Post a reply


This question is a means of preventing automated form submissions by spambots.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

If you wish to attach one or more files enter the details below.

Maximum filesize per attachment: 1 MiB.

Expand view Topic review: Forum constantly reloads when not logged in.

Re: Forum constantly reloads when not logged in.

by axew3 » Sat May 16, 2020 4:25 pm

default addons/page-forum.php file on plugin repository has been patched to resolve definitively this issue, as said above, it substitute this line of code:

Code: Select all

var wp_u_logged = ".$current_user->ID.";
with this:

Code: Select all

var wp_u_logged = ".get_current_user_id().";
i assume the wrong result may was given by the previous code, on different Php versions. It do not return the same into my tests

Re: Forum constantly reloads when not logged in.

by axew3 » Fri May 15, 2020 2:49 pm

open page-forum.php and where this line:

Code: Select all

var wp_u_logged = ".$current_user->ID.";
change with this:

Code: Select all

var wp_u_logged = ".get_current_user_id().";
it is better to change this line by default because it return a strange result i see (and fortunately it is was not affecting any security issue. Imagine a result that should be 0 that return 1 instead) WoW
Please let know asap

Re: Forum constantly reloads when not logged in.

by axew3 » Fri May 15, 2020 2:42 pm

mhh ... i see a strange thing into your page forum, that let me think php versions can may interfere, so a fix should be applied maybe-
Your wp, i see that even if my user is not logged in, the function wp_get_current_user(); return 1.
This cause the loop, because the user is not really logged instead into phpBB, nor in wp. Then the iframe loop.
let me check the solution

Re: Forum constantly reloads when not logged in.

by Nighty » Thu May 14, 2020 5:12 pm

Hm.

A guildie pointed out to me that the site (forum) seems to be back on a reload loop after the design changes, so kind of back to square one.
Got an idea about what's going on there?

As the site is now, when not logged in.

Re: Forum constantly reloads when not logged in.

by axew3 » Thu May 14, 2020 9:34 am

Nighty wrote: Thu May 14, 2020 6:46 am -- Just some sizing issues
So you may will take a look into this to resolve definitively any resizer issue
viewtopic.php?p=4505#p4505

Re: Forum constantly reloads when not logged in.

by Nighty » Thu May 14, 2020 6:46 am

I've updated the theme we're using (Hestia), which was a couple of versions behind - mainly due to my changes - However, the "Gutenberg" thing was kind of broke, so had to :p

Forum looks, in my opinion, better now, as in: it looks more like it belongs to the page -- Just some sizing issues, it's cutting off the bottom of the forum. I'll look into that later, it's about time I get some sleep :P

I'll look into the js error when I get back up.

Thanks for the help!

Top