Page 1 of 1

Ask a Question is enabled, but it is still blank.

Posted: 13 Apr 2020, 10:35
by thethe
Hi Benno or Jan

I tried enabling Ask a question with model popup selected. But I just notice it is blank after I enabled it. What else I need to leave some fields etc.

Thanks
Mang

Re: Ask a Question is enabled, but it is still blank.

Posted: 13 Apr 2020, 11:09
by Benno
Hi,
there is a js error on your page:
Image

Kind regards,
Benno

Re: Ask a Question is enabled, but it is still blank.

Posted: 13 Apr 2020, 20:36
by Jan
The error says, that the captcha is enabled there but there is no sitekey for reCaptcha - this needs to be added in Options of Phoca Cart.

But not sure if this is the reason for blank page, there can be even some conflict with template, or another JS or CSS library :idea:

Jan

Re: Ask a Question is enabled, but it is still blank.

Posted: 14 Apr 2020, 13:47
by thethe
Looks like there are something error with Template Css. I tried a different template, it works.

Any idea how I can fix these?

Thanks
ML

Re: Ask a Question is enabled, but it is still blank.

Posted: 14 Apr 2020, 18:05
by Jan
Hi, the problem is the class .modal in tmpl=component and new bootstrap library.

Image

Some templates including the standard Protostar in Joomla! add "modal" class to view which has no modules (typically a site displayed in modal or popup). This class can be in conflict with new Bootstrap libraries which add display: none value to modal class.

This is why it is hidden, when I change the class, the content is displayed:
Image

So the solution can be overwriting the component.php in your template and removing the modal class or check which bootstrap libraries are loaded and add specific rule for this "modal" window which, like display: block, etc.

Jan