-
AuthorPosts
-
January 31, 2017 at 3:47 pm #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
-SAVENothing 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:763Regards
ErikPankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
January 31, 2017 at 4:12 pm #1007075Hi Can you share screenshot of issue and how to replicate it?
January 31, 2017 at 4:15 pm #1007098Hi
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 ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
January 31, 2017 at 4:22 pm #1007102This reply has been marked as private.January 31, 2017 at 4:31 pm #1007104Yes 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
ErikPankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
January 31, 2017 at 5:17 pm #1007135This reply has been marked as private.January 31, 2017 at 5:35 pm #1007145Hi
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.- Pankaj Sharma Moderator
Pankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
February 23, 2017 at 11:04 am #1013093I’ve read that 1.1.9 fix my isseu.
I’ve installed it, but the problem remain.
I’ve deleted all cachesUncaught 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:1662Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
February 24, 2017 at 3:33 am #1013246Hi
Kindly share your site Super user details via Private reply.
RegardsFebruary 27, 2017 at 3:18 pm #1013907I’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.phpI 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
ErikPankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
February 28, 2017 at 1:39 am #1013999Hi
As i can see your code is customized and wrong, I suggest you to use the same code that is working on site.Regards
February 28, 2017 at 8:36 am #1014108Is 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 ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
February 28, 2017 at 9:38 am #1014133Hi
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.AuthorPostsViewing 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
Jump to forum