test
Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • arcastudio Friend
    #1007072

    Hello, I’m using Purity III Template, and I’ve seen that when I’m editing a new article there are no message alert error on missing fields.

    Example:
    -Create a new article.
    -NOT write the TITLE
    -Go to PUBLISHING TAB
    -SAVE

    Nothing happens! Not an error message, not an alert, not an automatic switch to the EDITOR TAB to see the red Field TITLE

    This is what I can see in the console.

    Any ideas? thanks

    Uncaught TypeError: Cannot read property ‘firstChild’ of null
    at Object.a.removeMessages (core.js:1)
    at Object.a.renderMessages (core.js:1)
    at Object.u [as isValid] (validate.js:1)
    at Object.Joomla.submitbutton (create-a-post:597)
    at HTMLButtonElement.onclick (create-a-post:763)
    a.removeMessages @ core.js:1
    a.renderMessages @ core.js:1
    u @ validate.js:1
    Joomla.submitbutton @ create-a-post:597
    onclick @ create-a-post:763

    Regards
    Erik

    Pankaj Sharma Moderator
    #1007075

    Hi Can you share screenshot of issue and how to replicate it?

    arcastudio Friend
    #1007098

    Hi
    Can i share screenshot of issue and how to replicate it?

    Yes, you can share!
    Or maybe I haven’t understood… do you need some other info by me?

    Pankaj Sharma Moderator
    #1007102
    This reply has been marked as private.
    arcastudio Friend
    #1007104

    Yes kindly provide information.

    I can tell you how you can replicate this behaviour.
    Fresh install of Joomla 3.6.5.
    Trying to write a new post on the default template, and not write a title in the title field.
    Joomla will alert you that you have to compile title filed! Will appear a red Message and the Title Filed will be red framed.

    Install Purity III template and set as default.
    Write a new post, but not write the title.Then go to the PUBLISHING TAB (or another) and SAVE
    No Message will be showed. No Error, no alert. The TITLE field will be red framed, but if you are not on the first edit Tab, you can’t see this. So the article will not save, and you can’t understand why.

    Do you need other info?
    regards
    Erik

    Pankaj Sharma Moderator
    #1007135
    This reply has been marked as private.
    arcastudio Friend
    #1007145

    Hi
    Its on menu or articles? Screenshot please. purity-iii doesn’t change Joomla workings.

    I send you a screenshot. In this case I’m writing a post from default "Create post". Default Joomla Menu.
    On my site I have the same behaviour adding an article from an "Add New" in a Category list view or from the default "Create new".

    I think if you try to follow what I have wrote in the previous post you can understand the problem.

    3 screenshoots.
    In the last, with protostar template, you can see the alert in red. With the Purity Template, the Alert message is not showed.


    1. Schermata-2017-01-31-alle-18.25.23
    2. Schermata-2017-01-31-alle-18.26.28
    3. Schermata-2017-01-31-alle-18.33.33
    Pankaj Sharma Moderator
    #1007290

    Hi
    I sent the bug report to development team, so they can check and fix it in the next version of template.
    You can track it here.
    Regards

    arcastudio Friend
    #1013093

    I’ve read that 1.1.9 fix my isseu.
    I’ve installed it, but the problem remain.
    I’ve deleted all caches

    Uncaught TypeError: Cannot read property ‘firstChild’ of null
    at Object.a.removeMessages (js-88aa3-47458.js:62)
    at Object.a.renderMessages (js-88aa3-47458.js:62)
    at Object.u [as isValid] (js-88aa3-47458.js:75)
    at Object.Joomla.submitbutton (scrivi-sul-sito:653)
    at HTMLButtonElement.onclick (scrivi-sul-sito:1662)
    a.removeMessages @ js-88aa3-47458.js:62
    a.renderMessages @ js-88aa3-47458.js:62
    u @ js-88aa3-47458.js:75
    Joomla.submitbutton @ scrivi-sul-sito:653
    onclick @ scrivi-sul-sito:1662

    Pankaj Sharma Moderator
    #1013246

    Hi
    Kindly share your site Super user details via Private reply.
    Regards

    arcastudio Friend
    #1013907

    I’ve found the problem.(maybe)
    I’m using this template file:
    /purity_iii/tpls/blocks/mainbody/one-sidebar-left.php
    confronting this file with:
    /templates/purity_iii/tpls/blocks/mainbody/no-sidebar.php

    I can see a difference in the code.
    This code is not working
    <?php if($this->hasMessage()) : ?>
    <jdoc:include type="message" />
    <?php endif ?>
    <jdoc:include type="component" />

    This code is working:
    <?php //if($this->hasMessage()) : ?>
    <jdoc:include type="message" />
    <?php //endif ?>
    <jdoc:include type="component" />

    Regards
    Erik

    Pankaj Sharma Moderator
    #1013999

    Hi
    As i can see your code is customized and wrong, I suggest you to use the same code that is working on site.

    Regards

    arcastudio Friend
    #1014108

    Is not my cose. Is yours code.
    If you go in this folder:
    /templates/purity_iii/tpls/blocks/mainbody
    you can see that some files have this code (full-width; no-sidebar)

        <div id="t3-content" class="t3-content col-xs-12">
            <?php //if($this->hasMessage()) : ?>
            <jdoc:include type="message" />
            <?php //endif ?>
            <jdoc:include type="component" />
        </div>
        <!-- //MAIN CONTENT -->

    and some others

    <!-- MAIN CONTENT -->
        <div id="t3-content" class="t3-content col-xs-12 col-sm-8 col-sm-push-4 col-md-9 col-md-push-3">
            <?php if($this->hasMessage()) : ?>
            <jdoc:include type="message" />
            <?php endif ?>
            <jdoc:include type="component" />
        </div>
        <!-- //MAIN CONTENT -->

    On my site the alert message works only where the "if" is commented.

    Pankaj Sharma Moderator
    #1014133

    Hi
    Yes because template if the main body is used it use the mainbody and doesn’t open the alert. I checked the latest package the issue is fixed in it.

Viewing 14 posts - 1 through 14 (of 14 total)

This topic contains 13 replies, has 2 voices, and was last updated by  Pankaj Sharma 7 years, 10 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum