Skip to main content
Topic: Home page empty on first visit (Read 3832 times) previous topic - next topic - Topic derived from Show off your Elks!
0 Members and 1 Guest are viewing this topic.

Home page empty on first visit


Thank you sir, sorry would like to know why my homepage on simpleportal goes blank on first visit. Or you didn't experience such? [member]@ahrasis[/member]
Last Edit: August 30, 2017, 05:59:08 pm by Egbune

Re: Home page empty on first vitis

Reply #1

I am not sure about that. @Spuds knows much more and should be able to help when he is free.

Re: Home page empty on first vitis

Reply #2

Possible the visibility settings are wrong ... be sure to have some blocks visible to guests.

Re: Home page empty on first vitis

Reply #3

Quote from: Spuds – Possible the visibility settings are wrong ... be sure to have some blocks visible to guests.

They are visible to 'Everyone'. The only problem is that it only appears when you refresh the page twice or more but at first visit, it is completely blank.

Re: Home page empty on first vitis

Reply #4

Discussion moved to its own topic because it is worth. ;)

You host has a kind of anti-bot redirection (javascript based), it may also be that one, though I didn't see any problem on first visit.
Bugs creator.
Features destroyer.
Template killer.

Re: Home page empty on first vitis

Reply #5

see what I mean in the below screenshot...
I use infinityfree hosting

Re: Home page empty on first visit

Reply #6

Can anyone please post a link to the board?

Re: Home page empty on first visit

Reply #7

http://www.lotsofstory.com/

I visited and found it working fine. The only problem is his redirect is not working properly, probably due to wrong redirect code. This happens when you type http://lotsofstory.com instead of http://www.lotsofstory.com and this code "?i=1" is added to the url.

Re: Home page empty on first visit

Reply #8

The board index is empty with IE too, even with the leading www. But it seems @ahrasis is right about the "?i=1", but I have the problem even with www.lotsofstory.com.

Edit: After closing the browser tab and then clicking on the link again, the board index is shown and the link is working now.  :o

Re: Home page empty on first visit

Reply #9

This is indeed caused by ?i=1 added to the query string by some additional code you have on your site. If there are unknown query string parameters as such, the page is not considered the portal front page. You can add this query string parameter as an exception to prevent this by making the following change:

Sources/Portal.subs.php

Code: (Find) [Select]
		'wwwRedirect' => true,

Code: (Replace) [Select]
		'wwwRedirect' => true,
'i' => true,

Re: Home page empty on first visit

Reply #10

Thanks for the support guys, but I don't seem to see where to get this done.

@SiNaN pls where do I put that code, please I am new to all these and you could be more descriptive. Please

Re: Home page empty on first visit

Reply #11

with an ftp client like Filezilla go to /sources/subs and edit the file Portal.subs.php . Sinan wrote above what you have to find and replace
sorry for my bad english