Site Builder Problem

derrickhand300
@derrickhand300
7 years ago
1,353 posts
Hello-I have not been working on my Home page for quite some time but I notice today its broken
I have a 3/6/3 site builder layout and the last col is missing in site builder-I ram latest updates and no fix- ran integrity checks and cleared data/cach no fix
I changed the page to a single col 12 layout hoping to remove the broken 3/6/3 and was able to get a 12 layout- but after doing that the site builder config options disappeared- so i was not able to return to a 3/6/3?
Anyway i had to restore my server to last night just to get back to the broken layout I had before going to the 1 col layout
Its back but content is jumbled everywhere and missing...ive signed out signed in and tried using Chrome and firefox...no help
Can someone help with this?
Thanks
Capture.JPG.jpg
Capture.JPG.jpg  •  56KB


updated by @derrickhand300: 01/10/18 11:58:46AM
michael
@michael
7 years ago
7,697 posts
first guess is some CSS interfering with the css for that section. Have you added any padding or margin CSS lately?

What I would do to figure out the problem is open firebug and see where the boundaries of the previous two sections are at to try to figure out what is pushing the third section of the right of the page. You'll probably find the third section below the other two at a guess.
derrickhand300
@derrickhand300
7 years ago
1,353 posts
Thanks Michael- no CSS changes in months- just seems to happen from time to time..I will try
Inspecting I am seeing '(index):614 Uncaught SyntaxError: Unexpected token ..." in the browser inspector...
Which brings up another issue-
If i remove all the content from a widget-all the code-even the title and then save...site builder refuses to save it displaying the error "Syntax Error..." even though the editor contains zero code?
At least that was happening yesterday...not so much this morning....doing a server restore again as site builder option buttons have disappeared again

updated by @derrickhand300: 10/04/17 06:22:38AM
derrickhand300
@derrickhand300
7 years ago
1,353 posts
Here is an example of a site builder widget- i just removed all the template code from it and the title then tried to save it- and i get this error...not sure where there can be a syntax error when there is no code?
Capture.JPG.jpg
Capture.JPG.jpg  •  45KB

derrickhand300
@derrickhand300
7 years ago
1,353 posts
It seems to be this bit of code in the center /6/ col that is breaking the page...without it the page seems to work fine...see anything in this code that could be a problem?
<p><img src="https://www.roughneckcity.com/upimg/image/upimg_file/1816/original" style="max-width: 100%; height: auto;" alt="Oilfield News" width="460" height="95"></p>
{jrFeed_list name="Oilfield News" template="rss_featured_oilfield_news.tpl" limit="5"}
gary.moncrieff
gary.moncrieff
@garymoncrieff
7 years ago
865 posts
Could be showing that because there is no content in the widget when you click save. ie its a default error message rather than a separate one to tell you there is no content.
derrickhand300
@derrickhand300
7 years ago
1,353 posts
More specifically this part
{jrFeed_list name="Oilfield News" template="rss_featured_oilfield_news.tpl" limit="5"}

Here is the code from the Rss Featured News Template ( which had been working fine for months and has n ot been edited since)

<style type="text/css">
    .rssincl-box {
        font-size: 14px;
        font-family: "Roboto Condensed", sans-serif;
        line-height: 14px;
        margin: 0;
        padding: 0;
        text-align: left;
    }
    .rssincl-itemtitle{
        margin-top:0;
        padding-top:0;
    }

    .rssincl-itemtitle a {
        color: #444444;
        font-family: "Roboto Condensed", sans-serif;
        font-size: 18px;
        font-weight: bold;
        text-decoration: none;
    }
</style>
{* all the images in the HTML *}
{xxOilfieldNews_extract_img items=$jrFeed.feed.item assign="_img"}

{* the feed laid out *}
<div class="rssincl-box caption_this">

    {foreach $jrFeed.feed.item as $key => $item}
        <div class="row">
            <div class="col12">
                <div class="rssincl-entry">
                    <p class="rssincl-itemtitle">
                        <a href="{$item.link}">{$item.title}</a>
                    </p>
                    <div class="rssinc-body">
                        {$item.description|jrCore_format_string:1|truncate:1500}<p><a href="{$item.link}">READ MORE AT ROUGHNECK CITY NEWS &#8680;</a></p>

                        <div class="fb-like" data-href="{$item.link}" data-layout="button_count" data-action="recommend" data-size="small" data-show-faces="true" data-share="false"></div>
                    </div>
                </div>
            </div>
        </div>
    {/foreach}
</div>

My only guess is something in this code is breaking Site builder..
derrickhand300
@derrickhand300
7 years ago
1,353 posts
Ok....the issue seems to be something in "News Article 4'...if i add the template code then change the limit=5 to 1-it displays fine- then limit=2 and it displays fine.. all the way up to limit=4-which breaks the layout so it must be some issue with that particular news article...not sure what because i created the article and code in site builder from scratch...anyways i will just delete it
Thanks!
(Problem was a jrEmbed video added to the article using site builder)
updated by @derrickhand300: 10/04/17 07:17:28AM
michael
@michael
7 years ago
7,697 posts
Nice one. the video item_embed.tpl template might need some adjustment to match with your rss_featured_oilfield_news.tpl template if the video is required.

good find.
derrickhand300
@derrickhand300
7 years ago
1,353 posts
Thanks Michael- yes its happening each time a jrEmbed video is added to the template...still dont understand why...Im sure it has something to do with the size of the video player..
michael
@michael
7 years ago
7,697 posts
setup a page somewhere where I can see it happening and I'll see if there is an easy tweak.

Tags