Site Stalls After Block Save

Permalink
Hello - looking for some help on this one....

When I add a content block to the site I can edit as normal, it all works great until you hit save. it spins for a second and then freezes up. I have to manually refresh the page to see the update and get any other clickable options - the top menu grays out as well.

It is like it is not refreshing all the way. Any insight would be helpful! Thanks in advance.

5jdesign
 
stewblack23 replied on at Permalink Reply
stewblack23
Hi 5jdesign

1. What version of C5 are you using?
2. Are you using a custom theme?
3. Are there any errors in the console tab in chrome or firefox developer tools?
5jdesign replied on at Permalink Reply
5jdesign
Hi! I am using the latest version on 5.7

Custom theme, and I am not sure on the errors. Let me get back in that.

I am wondering if I am missing a closing tag somewhere.

Temp site is - luthmem.dreamhosters.com/oldinstall

On Wed, Aug 16, 2017 at 6:07 PM concrete5 Community <
discussions@concretecms.com> wrote:
stewblack23 replied on at Permalink Reply
stewblack23
Took a look at the site. Don't see any major issue when when I look at the console log. But you might want to take a look again when you are logged in to the dashboard. Look in your themes folder in the default.php page template file. Make sure your <?php Loader::element('header_required') ?> and <?php Loader::element('footer_required') ?> includes are in the correct areas.

Are you using a page_theme.php file to add any functionality to the site?
5jdesign replied on at Permalink Reply
5jdesign
Stew, thanks for your help - I am getting an error in the Javascript counsel - this is what I get while logged in, in edit mode and after I hit the save button on the content block.

jquery.min.js:4 Uncaught Error: Syntax error, unrecognized expression: <div data-container="block">
    <div
        data-cID="1"
        data-area-id="13"
        data-block-id="152"
        data-block-type-wraps="1"
        class="ccm-block-edit"
        data-block-type-handle="content"
        data-launch-block-menu="block-menu-b152-13"
        data-dragging-avatar="<p><img src="/oldinstall/concrete/blocks/content/icon.png" /><span>Content</span></p>"
                >
        <ul class="ccm-edit-mode-inline-commands ccm-ui">
                            <li><a data-inline-command="move-block" href="#"><i class="fa fa-arrows"></i></a></li>
                    </ul>
        <div class="ccm-ui">
stewblack23 replied on at Permalink Reply
stewblack23
Looks like you have an issue with your jquery.min.js file not loading or is the incorrect version. Only can be two reason for this.

1. Your theme is telling the jquery.min.js file not be loaded: Check in your theme for a page_theme.php file. Look for a reference to jquery.min.js file. Might looks something like this $this->requireAsset('javascript', 'jquery');. Comment it out, clear your site cache and then check the dashboard functionality.

2. The jquery.min.js that C5 needs does not exist or is some how corrupted. Lets try the first one before we go playing around in C5 core files.
5jdesign replied on at Permalink Reply
5jdesign
Thanks so much for your help. I got it figured out - I was calling Jquery two times, once in the concrete install and once in my custom theme. Removed it from my custom theme and boom it worked.

Thank you again for your help!
stewblack23 replied on at Permalink Reply
stewblack23
Glad I could help.