how do i stop forum page from continuous loading of i-frame

scarce
User w
User w
Posts: 6
Joined: Mon Apr 13, 2020 8:23 pm

how do i stop forum page from continuous loading of i-frame

Post by scarce »

hi guys..

got the phpbb forum integrated into my wordpress forum page but after a while the page will no longer come up but keep loading and appearing and disappearing and continue loading... but i also realised that whenever i clear the browser data, the forum appears and starts working again, then go back to "loading iframe all over again.. i cant keep clearing browsing data always

how do i solve this issue?

thanks in expectation

User avatar
axew3
w3all User
w3all User
Posts: 1932
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: how do i stop forum page from continuous loading of i-frame

Post by axew3 »

Hello! Did you changed cookie settings in phpBB to be available all over the domain?
If yes, open phpBB and clean cookie of the board, by clicking into Delete cookies link on the page bottom right
then login

is it online? url?

scarce
User w
User w
Posts: 6
Joined: Mon Apr 13, 2020 8:23 pm

Re: how do i stop forum page from continuous loading of i-frame

Post by scarce »

thanks for your response.. yea the site is online.. url: https://www.eculaw.com.ng/good

i tried to delete cookies on board as you directed using Edge internet explorer.. it worked a little and opened the forum. but when i logged in my admin details i got a blank page with the url: https://www.eculaw.com.ng/good/?w3=YWRtL2luZGV4LnBocD8=


i tried to use chrome and opera.. it stopped but when i logged in my admin details, it went back to continuous reloading..
what do i do

User avatar
axew3
w3all User
w3all User
Posts: 1932
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: how do i stop forum page from continuous loading of i-frame

Post by axew3 »

no the problem seem to me, is that the phpBB cookie isn't recognized by wordpress, in fact, i registered into phpBB iframed, and when i login i fall into loop.
The reason is that the plugin do not recognize the session cookie, released in this case, by phpBB (then wp recognize the user and add him also into wp if not already existent).
So the problem is exactly this i think.
can you please check 2 things:
1) axew3 user exists in wp side now? (i think not, i registered him in phpBB and login but wp failed in recognize his cookies)

2) open wp_w3all.php file and where this line:

Code: Select all

// $w3reset_cookie_domain = '.mydomain.com'; // (set 'localhost' if you're on localhost) change to fit THE SAME COOKIE DOMAIN SETTING as you have set it in phpBB config. To RESET/force cookie domain setting: remove // chars in front of this line and save, than load any WP page one time. So comment out other time this line re-adding // chars and save.
change into:

Code: Select all

$w3reset_cookie_domain = '.eculaw.com.ng'; // (set 'localhost' if you're on localhost) change to fit THE SAME COOKIE DOMAIN SETTING as you have set it in phpBB config. To RESET/force cookie domain setting: remove // chars in front of this line and save, than load any WP page one time. So comment out other time this line re-adding // chars and save.
now work?

Can you please provide me a link to login in wp-side if possible? I mean indicate me url where i can login axew3 in wp side

[EDITED]

scarce
User w
User w
Posts: 6
Joined: Mon Apr 13, 2020 8:23 pm

Re: how do i stop forum page from continuous loading of i-frame

Post by scarce »

thank you very much,

i have edited the file, i think the looping has stopped but the height of the forum is no longer fitting.. you can check on eculaw.com.ng/good


the WP url of the forum is supposed to be: https://www.eculaw.com.ng/phpbb .... somehow, the url redirects to eculaw.com.ng/good ..

User avatar
axew3
w3all User
w3all User
Posts: 1932
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: how do i stop forum page from continuous loading of i-frame

Post by axew3 »

did you setup the URL setting to forum into plugin admin?
https://www.eculaw.com.ng/phpbb/
instead that
https://www.eculaw.com.ng/phpbb
if yes change, need to be without final slash

into overall_footer.html on added code where
https://eculaw.com.ng/good
may need to be
https://www.eculaw.com.ng/good
(but this affect nothing maybe, since your wp url setting is www then it rewrite)

BUT to fix the scroll, open:
page-forum.php, that's page-good.php in your case, into your active wp template folder
and search for this line

Code: Select all

// document.domain = 'mydomain.com'; // NOTE: reset/setup this with domain if js error when WP is installed like on mysite.domain.com and phpBB on domain.com: js origin error can come out for example when WordPress is on subdomain install and phpBB on domain. The origin fix is needed: (do this also on phpBB overall_footer.html added code)
it need to match document.domain as you set it into overall_footer.html added code, then un-comment and change into:

Code: Select all

document.domain = 'eculaw.com.ng'; // NOTE: reset/setup this with domain if js error when WP is installed like on mysite.domain.com and phpBB on domain.com: js origin error can come out for example when WordPress is on subdomain install and phpBB on domain. The origin fix is needed: (do this also on phpBB overall_footer.html added code)
then all shoul work fine

mhh i assume a re-look to the code for this kind of domains because it is not automatically set ok ...

User avatar
axew3
w3all User
w3all User
Posts: 1932
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: how do i stop forum page from continuous loading of i-frame

Post by axew3 »

p.s look that plugin version 2.3.4 has been released, it also fix a problem that i see not still not resolved, when users register into phpBB iframed, then login in phpBB iframe, that cause a duplicate WP user insertion.

Update to just released last 2.3.4 to fix this issue.

scarce
User w
User w
Posts: 6
Joined: Mon Apr 13, 2020 8:23 pm

Re: how do i stop forum page from continuous loading of i-frame

Post by scarce »

:cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry:
i have effected the changes but nothing really happened.

i still cant find the phpbb forum stand alone on eculaw.com.ng

User avatar
axew3
w3all User
w3all User
Posts: 1932
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: how do i stop forum page from continuous loading of i-frame

Post by axew3 »

you have to remove into page-good.php this line:

Code: Select all

document.domain = '".$document_domain."';
right above the edited

scarce
User w
User w
Posts: 6
Joined: Mon Apr 13, 2020 8:23 pm

Re: how do i stop forum page from continuous loading of i-frame

Post by scarce »

hi, are you saying i should remove that line of code from page-good.php?
its in my line #235..

Post Reply