Forums

No HTML - not even template, and I set show html event

alivebyscience 21 Oct, 2011
Joomla 1.7.2, ChronoForms 4.0 RC2.0.

The site resides on a host where Joomla 1.5.23 is in the root, and the domain root for the Joomla 1.7 site is a folder of the Joomla 1.5 site (as if that matters).

Quite simple - from Forms Manager when I view the front end I get zero html. The template doesn't show. When I view source there is nothing.

I had started this site in xampp, and kick started it onto the host. Which is when I installed ChronoForms.

I went back to local xampp to test the idea I was having template problems. So I installed ChronoForms and make a quick form like is done in the tutorial PDF and YouTube. It worked fine with the same template as the public host.

I'm stumped. Do I have a permissions problem (folders all show writable that should)? Or am I missing a PHP component (what)? I have mootools enabled in the template (weird place to offer this feature). I have no idea what version of mootools is going on - I haven't monkeyed or reverse engineered mootools. But how would I know - where would I look? Seems like there is an extension in the Joomla world that hates newer versions of mootools. Could I have installed that extension, and they wrote something to mess with the running version?

Any advice? They're begging me for forms!

Jim
GreyHead 21 Oct, 2011
Hi Jim,

Mini-rant: I really don't like hosts that have you set up sites in sub-folders of other sites :-(

Please check the live_site setting in the configuration folder to make sure that it is correctly set to the sub-folder.

A completely blank page is usually a sign of a PHP error. Please temporarily set Error Reporting to Maximum in the Site Global Configuration and see if you then get a useful error message.

MooTools loading in the template is a bit odd, though I'm not clear what you mean?

Bob
alivebyscience 23 Oct, 2011
Hi Bob.

Thanks for replying.

Here's the error:
Fatal error: Class 'JModel' not found in /home/***top_domain***/public_html/***other_domain_home_folder***/modules/mod_weblinks/helper.php on line 14


Obviously helper.php is present. Line 14 says:
JModel::addIncludePath(JPATH_SITE . '/components/com_weblinks/models', 'WeblinksModel');


Any of that make any sense to you? It looks like the pathing is correct. I don't know how to make any more sense of this than to presume something is missing/askew in creating the model WeblinksModel. Hmmm!

The mention of mootools in the template... I meant when setting the template properties there is a setting to enable/disable mootools on the public side. Nice touch if you're using JQuery based extensions, or if none of your extensions use mootools (turn off 74k file load, or whatever ksize).

Jim
GreyHead 23 Oct, 2011
Hi alivebyscience ,

It looks to me as though the WebLinks component is assuming that it is being loaded on an article page and that JModel is already loaded.

You can try addig this to load JModel although ChronoForms doesn't need it.
JLoader::import(‘joomla.application.component.model’);


Bob
alivebyscience 24 Oct, 2011
Slower. Add that to the helper.php just before the line throwing the error?

Since this thing has weblinks in the error - and I'm using weblinks - I thought they might be related.

I'm going to backup the site and kickstart it locally to see if I can re-create the error on my desktop. As I mentioned my starter local/xampp instance worked fine. So, how's the live site going to work locally. And then I'll try your suggestion - rather than monkey with a live site.

Thanks, Bob.
GreyHead 24 Oct, 2011
Hi alivebyscience,

Probably simpler to put it into your Form HTML (in CFv3) or a Custom Code action in CFv4 (inside <?php ?> tags).

From a quick look at the code the weblinks module loads the helper from the weblinks component but assumes that JModel is already loaded. JModel is a core Joomla! file used by most components but not by ChronoForms.

Bob
alivebyscience 04 Nov, 2011
Rain delay. I'm back on this project.

Recall the starter site running locally did not have any problems showing the form.

So I kickstarted the live site locally, and the problem exhibited itself. So, it's not the server.

I went back and forth: a) trying to break the working instance; vs b) trying to fix the broken instance.

Bottom line...
- add/publish a weblinks module and it's broken
- un-publish the/all weblinks module(s) and ChronoForms will show a form

Your suggestion of something to try didn't work out. Did I execute correctly?
- in form actions, in the on-load box
- I deleted the show HTML, then added custom code, then Show html
- in the custom code I put the following (and tried both controller and view modes)

<?php JLoader::import(‘joomla.application.component.model’); ?>



Any other ideas for a work around? I need links - suppose I could re-create them in custom html modules. That would probably work around the issue. (??)

For future generations who read this:
- Joomla 1.7.2
- ChronoForms 4.0 RC2.0

Strikes me as a Joomla failing of some sort.

Bob, you probably have experience reporting this stuff to the Joomla group - I have none. You can speak with credibility. So I hope I'm not imposing by leaving it in your hands. If I am imposing please drop me a personal note and direct me in what to do.

Thanks for your help.
GreyHead 04 Nov, 2011
Hi alivebyscience ,

Just to double check the code you posted has curly quotes, they should be straight ''

I'm as certain as I can be that this is a bug in the web-links extension :-( I'm afraid that I have no experience of posting bugs in the Joomla! forums and no reputation there.

Please try the fix here from the CB forums.

Bob
alivebyscience 04 Nov, 2011
I resolved the problem by using the fix from the CB forums that you referenced.

Bob, thanks for helping pin this down!

jim
This topic is locked and no more replies can be posted.