Hippo Page details not found when we click in link

155 views
Skip to first unread message

hamza.yo...@gmail.com

unread,
Feb 7, 2017, 10:10:23 AM2/7/17
to Hippo Community
I have a page who list my document with a link. Normally, this link redirect me to page details. But the link not working, it redirect me to 404 not found.
If I change the navigation bar manually to put for example : http://localhost:8080/site/factures/test.html, page details works. 

HELP ME PLEASE

William Borg Barthet

unread,
Feb 7, 2017, 3:47:32 PM2/7/17
to hippo-c...@googlegroups.com
Hi there,

sounds like you are lacking a sitemap item that has a relativecontentpath that resolves to your document. You need this for the hst.link tag to re-write a link.

Check your sitemap configuration and ensure that there is a relative content path that points to your document.

see https://www.onehippo.org/library/concepts/request-handling/sitemapitem-matching.html for more information.

Hope that helps!

- William

--
Hippo Community Group: The place for all discussions and announcements about Hippo CMS (and HST, repository etc. etc.)
 
To post to this group, send email to hippo-community@googlegroups.com
RSS: https://groups.google.com/group/hippo-community/feed/rss_v2_0_msgs.xml?num=50
---
You received this message because you are subscribed to the Google Groups "Hippo Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hippo-community+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/hippo-community.
For more options, visit https://groups.google.com/d/optout.



--

William Borg Barthet
SOLUTION ARCHITECT / TRAINER
 w.borgbarthet@onehippo.com
+49 160 360 5648

Amsterdam - Oosteinde 11, 1017 WT Amsterdam
Boston - 71 Summer Street, Boston, MA 02110

DE +49 170 4074731
NL +31 20 522 44 66
US +1 877 414 47 76 (toll free)
www.onehippo.com
www.onehippo.org

Hamza YOUSSOUF

unread,
Feb 8, 2017, 4:18:51 AM2/8/17
to Hippo Community
Hi,

Thank you for your answer. I attended this tutorial: https://www.onehippo.org/trails/developer-trail/develop-new-features/products-part-3-product-detail.html. So I added in my node /hst:hst/hst:configurations/myhippoproject/hst:sitemap/factures a child node called _any_.html

I also added a property  hst:relativecontentpath to the  _any_.html node and entered the value  ${parent}/${1}.

When I load my page overview the value of variable link is 'site/pagenotfound'.

Help me please. 

Jasper Floor

unread,
Feb 8, 2017, 5:03:25 AM2/8/17
to Hippo Community
Actually it sounds like you have a problem on your template or in your component configuration not with your sitemap. Could you share your template code and configuration? It sounds like the input for hst.link does not resolve to a valid link. So depending on how you use this means different things (e.g. if you use it with a path then the path is incorrect). 

Also, check you log. You are using the EssentialListComponent? Check to see if there are any warnings or errors from that component in the log. You could also increase the log level for that class for more info.

mvg,
Jasper

Hamza YOUSSOUF

unread,
Feb 8, 2017, 5:50:29 AM2/8/17
to Hippo Community
Please find my template file code and my page listing the product. 

I also didn't link my product detail page to a template for the moment like the tutorial. Only my product overview page link to a template file.

Le mardi 7 février 2017 16:10:23 UTC+1, Hamza YOUSSOUF a écrit :
components.xml
pages.xml
templates.xml
facturelist.ftl

Jasper Floor

unread,
Feb 8, 2017, 6:01:12 AM2/8/17
to Hippo Community
      <@hst.link var="link" hippobean=item/> <!-- This variable equals pagenotfound-->

So the hippobean it gets here cannot be resolved to sitemapitem. But your pages and components are completely empty so I don't see how this is configured.

Hamza YOUSSOUF

unread,
Feb 8, 2017, 8:15:29 AM2/8/17
to Hippo Community
Please find the configuration. I do not have any file for component configuration.


Le mardi 7 février 2017 16:10:23 UTC+1, Hamza YOUSSOUF a écrit :
facturelist- left.png
facturelist.png
facturepage.png

Hamza YOUSSOUF

unread,
Feb 8, 2017, 11:03:31 AM2/8/17
to Hippo Community
HELP ME PLEASE


Le mardi 7 février 2017 16:10:23 UTC+1, Hamza YOUSSOUF a écrit :

Jasper Floor

unread,
Feb 8, 2017, 11:32:18 AM2/8/17
to Hippo Community
Hi,

Did you check the logs for errors?

The issue isn't with the detail page but with the overview. The scope for the search is defined by the url. Can you give the sitemap entry for the overview page? There may be something there.

Please understand I have limited time to answer this list. I cannot promise to answer in any time frame, only when I have a spare moment.

mvg,
Jasper

Hamza YOUSSOUF

unread,
Feb 8, 2017, 11:45:13 AM2/8/17
to Hippo Community
I check the logs errors and I didn't found errors.

Thank you very very much for your answers.

Please find this file.


Le mardi 7 février 2017 16:10:23 UTC+1, Hamza YOUSSOUF a écrit :
Overview page sitemap.png
Details page sitemap.png

youssouf adaweh

unread,
Feb 9, 2017, 6:00:45 AM2/9/17
to Hippo Community
IS THERE ANYONE THERE ??


Le mardi 7 février 2017 16:10:23 UTC+1, Hamza YOUSSOUF a écrit :

Marijan Milicevic

unread,
Feb 9, 2017, 6:20:12 AM2/9/17
to hippo-c...@googlegroups.com
On Thu, Feb 9, 2017 at 12:00 PM, youssouf adaweh <hamad...@gmail.com> wrote:
IS THERE ANYONE THERE ??


alive and kicking..
is there a way you can upload your project somewhere so we can have a quick look? It's hard to say what's going wrong if there are no exceptions in the logs,
cheers
marijan
 

Stefan Schinkel

unread,
Feb 9, 2017, 7:03:34 AM2/9/17
to hippo-c...@googlegroups.com
Hi,

If you want guaranteed response times on support, we offer the Hippo Enterprise Subscription. This subscription-based premium and industry-leading service will secure time-sensitive & business-critical projects. Please let me know if we can help you with this service.

Have a great day!

Best

--
Hippo Community Group: The place for all discussions and announcements about Hippo CMS (and HST, repository etc. etc.)
 
To post to this group, send email to hippo-community@googlegroups.com
RSS: https://groups.google.com/group/hippo-community/feed/rss_v2_0_msgs.xml?num=50
---
You received this message because you are subscribed to the Google Groups "Hippo Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hippo-community+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/hippo-community.
For more options, visit https://groups.google.com/d/optout.



--
Kind regards

Stefan Schinkel



71 Summer Street, 2nd Floor, Boston, MA 02110

youssouf adaweh

unread,
Feb 9, 2017, 8:12:47 AM2/9/17
to Hippo Community


Le mardi 7 février 2017 16:10:23 UTC+1, Hamza YOUSSOUF a écrit :

Marijan Milicevic

unread,
Feb 9, 2017, 9:02:12 AM2/9/17
to hippo-c...@googlegroups.com
On Thu, Feb 9, 2017 at 2:12 PM, youssouf adaweh <hamad...@gmail.com> wrote:

your relative content path property points to factures and your content is stored in a folder named  facture,
if you change that you'll get a valid link,
also, when attaching the project, it is preferable to do mvn clean before uploading it, 

cheers
marijan
 
Thank you very much

Le mardi 7 février 2017 16:10:23 UTC+1, Hamza YOUSSOUF a écrit :
I have a page who list my document with a link. Normally, this link redirect me to page details. But the link not working, it redirect me to 404 not found.
If I change the navigation bar manually to put for example : http://localhost:8080/site/factures/test.html, page details works. 

HELP ME PLEASE

Marijan Milicevic

unread,
Feb 9, 2017, 9:04:54 AM2/9/17
to hippo-c...@googlegroups.com
On Thu, Feb 9, 2017 at 3:02 PM, Marijan Milicevic <marijan....@bloomreach.com> wrote:

On Thu, Feb 9, 2017 at 2:12 PM, youssouf adaweh <hamad...@gmail.com> wrote:

your relative content path property points to factures and your content is stored in a folder named  facture,
if you change that you'll get a valid link,
also, when attaching the project, it is preferable to do mvn clean before uploading it, 



in addition, your ftl contains some mistakes, for example item.prix instead of item.price ...
for valid names,  check org.example.myhippoproject.beans.Facture getter names,
/m

youssouf adaweh

unread,
Feb 9, 2017, 9:32:58 AM2/9/17
to Hippo Community
THANK YOU VERY MUCH Marijan Milisevic.

And Last point, how can I filter these products in product overview page ?? For example, I want filter these products by the field name ( username) or title.

Le mardi 7 février 2017 16:10:23 UTC+1, Hamza YOUSSOUF a écrit :

Marijan Milicevic

unread,
Feb 9, 2017, 9:38:20 AM2/9/17
to hippo-c...@googlegroups.com
On Thu, Feb 9, 2017 at 3:32 PM, youssouf adaweh <hamad...@gmail.com> wrote:
THANK YOU VERY MUCH Marijan Milisevic.

And Last point, how can I filter these products in product overview page ?? For example, I want filter these products by the field name ( username) or title.


the easiest way is to create facets, otherwise you'll need to override ListComponent and use queries,
see [1] and tutorial  [2] links
cheers
marijan



 
Le mardi 7 février 2017 16:10:23 UTC+1, Hamza YOUSSOUF a écrit :
I have a page who list my document with a link. Normally, this link redirect me to page details. But the link not working, it redirect me to 404 not found.
If I change the navigation bar manually to put for example : http://localhost:8080/site/factures/test.html, page details works. 

HELP ME PLEASE

youssouf adaweh

unread,
Feb 9, 2017, 10:41:31 AM2/9/17
to Hippo Community
Thank you very very much. You help me a lot. I am new in hippo.

The last last last question: In my productpage-main.ftl, I don't get into the "IF" instructions : "<<#if document??>". I don't understand why ?


Le mardi 7 février 2017 16:10:23 UTC+1, Hamza YOUSSOUF a écrit :
facturepage-main.ftl

Jasper Floor

unread,
Feb 9, 2017, 10:45:38 AM2/9/17
to Hippo Community
?? is an existence check. If there is no document variable available then interpreting the rest of the template would lead to many log errors because it tries to access a variable that doesn't exist. 

youssouf adaweh

unread,
Feb 9, 2017, 11:14:23 AM2/9/17
to Hippo Community
But in my case, I have one product with details.  Not necessarily with the same field but I have one document. What is the problem in my case??


Le mardi 7 février 2017 16:10:23 UTC+1, Hamza YOUSSOUF a écrit :

Marijan Milicevic

unread,
Feb 9, 2017, 11:20:02 AM2/9/17
to hippo-c...@googlegroups.com
On Thu, Feb 9, 2017 at 5:14 PM, youssouf adaweh <hamad...@gmail.com> wrote:
But in my case, I have one product with details.  Not necessarily with the same field but I have one document. What is the problem in my case??

problem is that, if your component doesn't throw 404 if bean doesn't exists  and someone requests a non existing document, your logs will fill up with errors..
/m

Le mardi 7 février 2017 16:10:23 UTC+1, Hamza YOUSSOUF a écrit :
I have a page who list my document with a link. Normally, this link redirect me to page details. But the link not working, it redirect me to 404 not found.
If I change the navigation bar manually to put for example : http://localhost:8080/site/factures/test.html, page details works. 

HELP ME PLEASE

youssouf adaweh

unread,
Feb 9, 2017, 11:31:54 AM2/9/17
to Hippo Community
I attended this tutorial to the letter : https://www.onehippo.org/trails/developer-trail/develop-new-features/products-part-3-product-detail.html.

The beans Facture exist and in my log I don't have errors.


Le mardi 7 février 2017 16:10:23 UTC+1, Hamza YOUSSOUF a écrit :

Jasper Floor

unread,
Feb 9, 2017, 11:35:47 AM2/9/17
to Hippo Community
But another external user could call  http://localhost:8080/site/factures/badtest.html (or whatever) which would cause errors. It isn't to protect against your errors but against user errors...or even attacks. Flooding the log file at the least creates work and makes it hard to see real errors. At worst you can crash a system by using up the disk space (though I'd expect that the log file size is limited to prevent this).

youssouf adaweh

unread,
Feb 9, 2017, 11:45:44 AM2/9/17
to Hippo Community
OK. What do I have to do clearly to print the product details?? 

Excuse me, I not understand very fastly.

Le mardi 7 février 2017 16:10:23 UTC+1, Hamza YOUSSOUF a écrit :

youssouf adaweh

unread,
Feb 10, 2017, 4:28:10 AM2/10/17
to Hippo Community
I already created a new document with details information. So the document exists and normally the site must find these document. I don't understand why it says that the document not exist.


Le mardi 7 février 2017 16:10:23 UTC+1, Hamza YOUSSOUF a écrit :

youssouf adaweh

unread,
Feb 10, 2017, 4:40:35 AM2/10/17
to Hippo Community

Jasper Floor

unread,
Feb 10, 2017, 5:08:43 AM2/10/17
to Hippo Community
Hi,

I'll see if I have time to look at this later today, but may I suggest you look at:

Jasper Floor

unread,
Feb 10, 2017, 5:10:13 AM2/10/17
to Hippo Community
Sorry, hit the wrong button.

May I suggest you look at 

This is a training covering the basics of working with Hippo. This way you can direct feedback from an instructor.

mvg,
Jasper

youssouf adaweh

unread,
Feb 10, 2017, 10:16:09 AM2/10/17
to Hippo Community
IS THERE ANYONE THERE ??

Reply all
Reply to author
Forward
0 new messages