Forums

Issue with Joomla 3.5 and shape5 template

psw 28 Mar, 2016
I used with success Chronoforms v5 on joomla site with "Corpway" template (it's a template based on Vertex framework from shape5.com).
After update to joomla 3.5 and chronoforms 5.0.11 I can't view any form. The only result is a blank page (no error reported on logs). Same from the administration page if I use "View Form" link.
It seems a strange issue created by mix of joomla 3.5 and shape5 template.
If I use standard Beeze3 template all works fine.
If I use shape5 template and I disable the standard "joomla related article" extension all works fine (!!!???).
Any suggest?
GreyHead 29 Mar, 2016
Hi pswi2m,

Please try temporarily setting the Site Error Reporting to Maximum in the site Global Configuration and see if you get a more useful error message. Maybe there is a class name used in Related - Articles that is the same as one in CF?

Bob
psw 29 Mar, 2016
Thanks GreyHead for your interest. Error Reporting switched to maximum but same blank page. The link used to show the form is like this:
http://my_server_root/index.php/component/chronoforms5/?chronoform=my_form_name
If I use a link like this:
http://my_server_root/index.php/component/chronoforms5/?chronoform=my_form_name&tmpl=component
the form is showed (obviously on a anonymous "component" page not integrated in site template).
Other idea?
GreyHead 29 Mar, 2016
Hi pswi2m,

Sorry no other ideas :-( Please post or PM me a link to the form so I can take a quick look.

Bob
psw 29 Mar, 2016
Hi Bob,
unfortunately, due to this issue, I had to restore Joomla 3.4.8 on my public server (to avoid problems to site users). Now I'm testing this behavior on local machine with XAMPP and it's no possible access from public web.
I don't know if the link to the form could be useful; the result page is a true blank page, nothing hidden (checked with Chrome DevTools).
GreyHead 29 Mar, 2016
Hi pswi2m.

Can you send me the template you are using. I can then install that on a test site to see if I can work out what is happening.

You can post a file here using the 'Private' tag - or pm me to get an email address.

Bob
GreyHead 29 Mar, 2016
Hi pswi2m,

Sorry, the free templates require registration and as this looks to me like a template problem I suggest you take it up with them. If you want me to test with a template please send me a copy - I will not use it for anything but testing.

Bob
psw 30 Mar, 2016
Ok Bob, I've a free template for testing but I can't attach zip file (about 2 Mb and system stop me). Can you give me your mail address to send it?
jason.clemens 03 Apr, 2016
I have been having problems with Vertex and Chronoforms as well. It may go back longer then the last Joomla and CFv5 version updates, but I am not sure. I used the global errors to attempt to resolve, but did not get any errors. The problem I was having is when I would submit a form it would go back to my home page. It would not put the parameters in the URL as it should have. What I finally did is change the submit method on the CF form. I changed it to use Ajax and that seemed to solve my issue.

It is terrible when you have a template that you love that conflicts with a component you love. I don't want to stop using either one.

Jason
GreyHead 04 Apr, 2016
Hi,

pswi2m has emailed me the free version of the template twice now but I haven’t yet received anything :-(

The problem is probably a javascript error of some kind . . .

Bob
jason.clemens 04 Apr, 2016
Yes, it is a Javascript problem. I am using the free Vertex template which I love, but lately have been having a lot of problems. I built into a CCv5 list a dropdown to select a year. It was to allow querying a specific year of data. It stopped adding the right information to the URL and would go back to my home page. I just had it submit the form (this.value.submit()) when the drop down was changed. I had to build a function that then built the full URL with parameters and then have it change the page's location. That seemed to work.

For a CFv5 form, on submit would go back to the home page. Changing it to submit using Ajax fixed that issue. Now I am having a problem with a CCv5 list and the New button. It is sending it to the home page. I will either have to build a custom button or see if I can change the actions of the built in New button.

I hate the conflicts but love both the template and the Chronoengine components. I have tried using Firebug and the Joomla errors to find the conflicts, but that has been unsuccessful.
GreyHead 04 Apr, 2016
Hi Jason,

The parameters don't usually go into the URL unless you have the form set to submit using GET instead of POST. There are problems with SEF URLs in the more recent versions of Joomla! - often these can be avoided by setting Relative URL to No. Please see this FAQ for more info.

I have now got a copy of the free Forte template - but so far I don't see any problems with the demo forms I have tested.

Bob
GreyHead 04 Apr, 2016
Hi,

With the Shape5 Forte template installed and the Joomla! Related Articles module enabled on a CF page I see an error message "Call to a member function setState() on boolean" which isn't very helpful :-(

Switching to the RocketTheme Isotope template I get a fuller message:
Fatal error: Uncaught Error:
  Call to a member function setState() on boolean in /home/greyhead/j34.greyhead.org/modules/mod_related_items/helper.php:44
  Stack trace: 
    #0 /home/greyhead/j34.greyhead.org/libraries/joomla/cache/controller/callback.php(157): ModRelatedItemsHelper::getList(Object(Joomla\Registry\Registry))
    #1 /home/greyhead/j34.greyhead.org/libraries/cms/module/helper.php(561): JCacheControllerCallback->get(Array, Object(Joomla\Registry\Registry), '947144f1dcc5440...', true, Array)
    #2 /home/greyhead/j34.greyhead.org/modules/mod_related_items/mod_related_items.php(22): JModuleHelper::moduleCache(Object(stdClass), Object(Joomla\Registry\Registry), Object(stdClass))
    #3 /home/greyhead/j34.greyhead.org/libraries/cms/module/helper.php(190): include('/home/greyhead/...')
    #4 /home/greyhead/j34.greyhead.org/libraries/joomla/document/renderer/html/module.php(93): JModuleHelper::renderModule(Object(stdClass), Array)
    #5 /home/greyhead/j34.greyhead.org/libraries/joomla/document/renderer/html/modules.php(42): JDocumentRendere in /home/greyhead/j34.greyhead.org/modules/mod_related_items/helper.php on line 44


Note that none of these are ChronoForms files.

I checked the related articles code and there is a call to a $articles object on line 44 - so I assume that for some reason this isn't being correctly defined on a CF page.

I tried this hack which seems to work. Add the extra lines show here around line 43 of modules/mod_related_items/helper.php
		// Set application parameters in model
		$appParams = $app->getParams();
		// :: hack ::
		if ( !is_object($articles) ) {
			return;
		}
		// :: end hack ::
		$articles->setState('params', $appParams);
What this effectively does is to hide the module if the $articles object hasn’t been created for some reason.

Bob
psw 04 Apr, 2016
Hi Bob,
you are right. With your hack to modules/mod_related_items/helper.php works again.
Obviously this can be only a temporary fix.
GreyHead 04 Apr, 2016
Hi pswi2m,

Yes, you are right - it might be worth reporting as a Joomla! bug.

Bob
jason.clemens 05 Apr, 2016
Glad you were able to figure out the problem on the other vertex template. Thanks for the suggestion for mine. I will try it on my CF forms, however that does not help me with the toolbar_new button in CCv5.
GreyHead 05 Apr, 2016
Hi Jason,

What is the URL that shows in the button link?

Bob
psw 07 Apr, 2016

Hi pswi2m,

Yes, you are right - it might be worth reporting as a Joomla! bug.

Bob


It seems to be solved with 3.5.1 version of joomla.
GreyHead 07 Apr, 2016
Hi pswi2m,

Great, thanks for letting us know.

Bob
jason.clemens 09 Apr, 2016
Here is the code for the New button.

<button id="toolbar-button-add" class="toolbar-button" data-url="/index.php/my-tools-2/cs-report/community-service-report?cont=lists&act=edit&ccname=com_service" type="button" style="background: rgb(246, 246, 246) url("http://www.vfw-warriors.org/libraries/cegcore/assets/images/toolbar/add.png") no-repeat scroll center top;">New</button>


For some reason it still sends me to my home page. I did update to Joomla 3.5.1 and that did not fix the issue.
GreyHead 09 Apr, 2016
Hi Jason,

It looks like a problem with SEF URLs You might try this in your browser and see what happens
http://www.vfw-warriors.org/index.php/my-tools-2/cs-report/community-service-report?cont=lists&act=edit&ccname=com_service
. I get sent to a login page

Do you have an SEF component installed like SH404SEF - if you do, then setting that to ignore ChronoForms URLs might well help.

Bob .
jason.clemens 09 Apr, 2016
I have tried disabling all SEF and it did not solve the issue. I change the template and the problem is gone. I guess I am just going to have to look for a new template. It is starting to cause to many problems. Thank you for your help.
This topic is locked and no more replies can be posted.