solved Widgets on SB Index page falling outside page layout

iamtimbo
@iamtimbo
7 years ago
301 posts
Hi, there,

I'm not sure what's happened here (it was whilst I was on iPad and accidentally hit the SiteBuilder button), but the widgets for the right hand column (it was an 8/4 layout) are now appearing below the container they are supposed to be in,and I can't move them out.

Creating a new line for the layout makes things worse, as it has seems to drag in old widget config from goodness only knows where - stuff I haven't used in two years.

I have tried restoring from yesterday's sb backup, but it displays the layout exactly the same. Help!
index.PNG.png
index.PNG.png  •  86KB


updated by @iamtimbo: 02/16/18 03:18:51PM
michael
@michael
7 years ago
7,714 posts
add repair=true to the page URL in the address bar, that will load the page without the widget content.

Suspect that it is something in the widget that has unbalanced things. LIke if you added a widget with just:
</div>
</div>
</div>
</div>
its going to screw up your page layout because it will unbalance stuff.

Reckon its that.
iamtimbo
@iamtimbo
7 years ago
301 posts
Fab - thanks - forgot about the repair ="true" trick. Will give it a bash. Thanks.
iamtimbo
@iamtimbo
7 years ago
301 posts
Yep - that was it - it was actually a unclosed div in a template that rarely gets called for in the timeline; it had occurred and unbalanced everything.

Whilst doing that search, though, I discovered that one profile page is crashing, despite calling on a template that is successfully used by lots of others. It's also generating an error in the log:

[07-Aug-2017 20:37:22 Europe/Dublin] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 262101 bytes) in /home/mysite/public_html/modules/jrCore-release-6.0.7/lib/misc.php on line 241 [1]
[07-Aug-2017 20:42:25 Europe/Dublin] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 9899768 bytes) in /home/mysite/public_html/modules/jrCore-release-6.0.7/lib/misc.php on line 241 [1]
[07-Aug-2017 20:42:58 Europe/Dublin] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 262100 bytes) in /home/mysite/public_html/modules/jrCore-release-6.0.7/lib/misc.php on line 241 [1]
[07-Aug-2017 20:45:16 Europe/Dublin] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 262224 bytes) in /home/mysite/public_html/modules/jrCore-release-6.0.7/lib/misc.php on line 241 [1]
[07-Aug-2017 20:46:06 Europe/Dublin] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 262099 bytes) in /home/mysite/public_html/modules/jrCore-release-6.0.7/lib/misc.php on line 241 [1]

The page in question is http://www.ourtownstory.co.uk/kent - www.ourtownstory.co.uk/dorset or with any other county after the / seem to work fine, and as I said, all use the same template. Using the Inspector shows a very limited amount of html coming in - confess to being a little confused....
michael
@michael
7 years ago
7,714 posts
for me both open
http://www.ourtownstory.co.uk/kent
http://www.ourtownstory.co.uk/dorset

When you say crashing, what happens? That php error is saying the limit of 256M of memory has been reached.

This:
https://stackoverflow.com/questions/3903363/allowed-memory-size-of-268435456-bytes-exhausted

suggests that the issue is either server resources set in php.ini for the server or this in the script
ini_set('memory_limit', '256M')
. That is not set in the code in anywhere other than the image resize function.

might be that you have a HUGE image that needs resizing on that page, but if not, server is best guess.
iamtimbo
@iamtimbo
7 years ago
301 posts
It's not pulling in any of the normal HTML or CSS, right from the beginning of the page up to the page content - which has the same info and templates as every other county page - no big images or fancy features etc. I would suspect div issues again, if it didn't work for the other profiles in the same quota.

Odd that you could open kent and I can't....
IMG_4453.PNG.png
IMG_4453.PNG.png  •  100KB

michael
@michael
7 years ago
7,714 posts
you see that on all browsers, are you logged in or logged out? is it the same if you log-in/log-out?

Try clearing your browser. on Firefox: HISTORY -> CLEAR RECENT HISTORY
iamtimbo
@iamtimbo
7 years ago
301 posts
Aha - page renders fine if I'm logged out. Only happens when logged in. All other pages using that template work fine when I'm logged in. Trying to work out what could possibly be special about that one...
michael
@michael
7 years ago
7,714 posts
Send my you're login and I'll take a look at the page, see if I can see. Send to support at jamroom dot net along with
* a link to this thread
* your login details


Change your admin password occasionally ;) Looking.

--edit--
For me logged in as 'admin' kent still shows up ok.

--edit edit--
I take that back, there is something weird.
http://ourtownstory.co.uk/kent

does not show for me, but
http://www.ourtownstory.co.uk/kent

does. The difference is the www. vs non-www. and another thing that is weird is its not showing the user menu for me on that page. (screenshot).

My guess is something maybe stuck in the filesystem version of the cache.

Try doing a Manual clear of the caches:

Docs: "Manually Clearing the Cache"
https://www.jamroom.net/the-jamroom-network/documentation/troubleshooting/114/somethings-wrong-what-do-i-do#manually-clearing-caches

Docs: "Connecting to your server using SFTP"
https://www.jamroom.net/the-jamroom-network/documentation/jamroom-hosting/2552/connecting-to-your-server-using-sftp
no_menu.jpg
no_menu.jpg  •  104KB


updated by @michael: 08/15/17 10:43:27PM
iamtimbo
@iamtimbo
7 years ago
301 posts
Sorry - was a weekend job! Just done that, to no avail. :(
michael
@michael
7 years ago
7,714 posts
if its JUST kent, how hard would it be to recreate the same profile on the url /kent2 , see if that works, delete /kent and move /kent2 to /kent

Saves trying to figure out what the issue is.
iamtimbo
@iamtimbo
7 years ago
301 posts
I just went for the burn and deleted Kent (as it didn't work anyway!). Reset the caches and visited the page, which gave me a Site Builder 'this page does not exist - would you like to create it?' message, so I was satisfied it was gone.

I created a new Kent profile - and, guess what - same thing! It behaves exactly the same as before, too - www works, but behaves as if you aren't logged in. I cannot work out for the life of me what is different about that profile than the others.

The search in the template file just reads:

{jrCore_list module="jrProfile" search1="profile_county = `$profile_name`" limit="2000" order_by="profile_place asc"}

and works on every other profile in that quota that I've tried. Baffling.

UPDATE: whilst trying to figure out the problem, I visited the Devon page, which loaded fine. I then loaded Kent, which didn't. I then hit the browser's back button, which took me to the Devon page, which is now broken, too....

UPDATE II: Added an error log entry
errorlog.PNG.png
errorlog.PNG.png  •  24KB


updated by @iamtimbo: 08/21/17 03:28:07PM
michael
@michael
7 years ago
7,714 posts
profile_county = 

its missing the profile county.

Ok for me to login and do some debugging? can you send me the FTP details to support at jamroom dot net.
iamtimbo
@iamtimbo
7 years ago
301 posts
I've popped those over on the support address - fill your boots!