Page 1 of 3
how do i stop forum page from continuous loading of i-frame
Posted: Mon Apr 13, 2020 9:32 pm
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
Re: how do i stop forum page from continuous loading of i-frame
Posted: Tue Apr 14, 2020 6:31 am
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?
Re: how do i stop forum page from continuous loading of i-frame
Posted: Tue Apr 14, 2020 8:47 am
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
Re: how do i stop forum page from continuous loading of i-frame
Posted: Tue Apr 14, 2020 12:26 pm
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]
Re: how do i stop forum page from continuous loading of i-frame
Posted: Tue Apr 14, 2020 2:04 pm
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 ..
Re: how do i stop forum page from continuous loading of i-frame
Posted: Tue Apr 14, 2020 5:18 pm
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 ...