Forums

after install(upgrade) form is blank

grafik 02 May, 2013
Hi
i had a working form created with easy wizard.

after "upgrade" Component to (Chronoforms_V4_stable) chronoforms Frontend-View goes blank. (somehow Test Form Preview work)
when i "downgrade" to Chronoforms_V4_RC3.5.2_J1.6 chronoforms reappear.

PHP-Version 	5.3.2-1
Joomla 2.5.9

Form is pretty simple:
1 Text Box, 1 Text Area, 1 Submit Button


did someone else had (this) Problem too with J2.5 and Chronoforms V4 stable?
Max_admin 10 May, 2013
Hi Grafik,

Please make sure that your installer file has J2.5 in the file name, maybe you have downloaded the J3.0 version ?

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
grafik 14 May, 2013

Hi Grafik,

Please make sure that your installer file has J2.5 in the file name, maybe you have downloaded the J3.0 version ?

Regards,
Max



Hi Max

no i dont download the J3.0 version, but just to get sure i download the version again (from here) it has now the J2.5 in the filename. but i still have the same problem.

do you change someting with the file-include?
because i had a nearly similar Problem with an Module and I found out this was because of the plugin Advanced Module Manager from NoNumber that I use.

I ask the Developer of NoNumber how to solve the problem there.
and he say, error is because the use of:
require_once(JPATH_SITE.DS.'libraries'.DS.'joomla'.DS.'application'.DS.'module'.DS.'helper.php');
instead of:
jimport("joomla.application.module.helper");

do both code does exactly the same?
No, not quite. The first force loads a file. While the second checks if the file is still needed or that it has been overridden by another file.
So the first code is not the way to do it. we should use the second code.
Otherwise it isn't compatible with Advanced Module Manager (or anything else that overrules the module helper file).



strange is that the prior version works ;-)
Max_admin 14 May, 2013
Hi grafik,

Well, we can do something, please set the "Error reporting" to "maximum" under the Joomla global configuration, see if you get some error message instead of a blank page ?

You may also contact me though the "Contact us" page to test the new version ?🙂

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
grafik 18 Jun, 2013
Hi Max sorry for the late reply. i was realy busy,
site was going live: thats why i cant just do something with error reporting, or install / uninstall to search for other reasons.
and i was not able to reproduce the problem on a "not live site"/ testsite till now:

Error came from: /modules/mod_exmenu/exmenu/view/menuview.class.php
line 291:
$secure = $menuItemParameters->def('secure', 0);

if i comment out that line, the form reappear.

but i dont know what this line do, or why stable Release didnt work anymore but old RC3 did.
GreyHead 18 Jun, 2013
Hi grafik,

That looks like a bug in the exmenu module code to me :-(

Bob
grafik 24 Jul, 2013
when it is a bug from menumodule, why it works before? :wink: 😢

i found out when i comment out posted code inside this file:
components/com_chronoforms/chronoforms.php
it works too.

if(!class_exists('JParameter')){
	class JParameter{
		var $params = null;
		
		function __construct($string = ''){
			if(is_array($string)){
				$this->params = $string;
			}else{
				$this->setParams($string);
			}
		}
		
		function get($k, $v = null){
			if(array_key_exists($k, $this->params)){
				return $this->params[$k];
			}else{
				return $v;
			}
		}
		
		function set($k, $v){
			$this->params[$k] = $v;
		}
		
		function setParams($string = ''){
			if(strlen(trim(($string))) > 0){
				$data = json_decode($string, true);
				$this->params = $data;
			}else{
				$this->params = array();
			}
		}
		
		function toString(){
			return json_encode($this->params);
		}
		
		function toArray(){
			return $this->params;
		}
		
		function toObject(){
			return json_decode(json_encode($this->params));
		}
	}
}
GreyHead 07 Aug, 2013
Hi grafik,

I know what the problem is here - just not sure of the fix. I thought someone posted one but I can't find it right now.

JParameter has been removed from the latest release of Joomla!. Max has redefined it in the code you posted and added a check to make sure that no other component has defined it before ChronoForms is loaded.

The problem is that Max's version isn't complete so if his version is loaded and another extension then tries to use one of the missing parts then other extension fails :-(

Bob

Later: I found the user fix for Joomla! 2.5:

I installed CHRONOFORMS version 4.0 on Joomla 2.5.11

Then appears some conflict with others component , like "front page slide Show", because of the redeclaration of class JParameter in components/com_chronoforms/chronoforms.php ( line 13 : if(!class_exists('JParameter')){ ..)

This class already exists in Joomla 2.5, even if she is deprecated ( with more function inside than declared in Chronofrom file )

Before redeclaring the class, you should do : jimport('joomla.html.parameter'); to have the native joomla class if exists.

This will solve problems like "Fatal error: Call to undefined method JParameter::merge() in XXX/components/com_fpss/helpers/slideshow.php on line 112" in other components on joomla! 2.5

I don't know if this pach is ok with Joomla! 3 ( where Jparametrer disappear )

grafik 16 Aug, 2013
Hi Bob

First of all, thank you verry much.
The tip that you found works.

When i add jimport('joomla.html.parameter'); a line before the code that i first had commented out. than i had no problem with extended menunodule 😀

the only thing that make me unsure is:
i had now that import on line 11, and also at line 73.
is that a problem?

And can Max release a chronoforms version with that fix, included? because than i can uptate to newer releases without had to apply this fix this manually again.
GreyHead 16 Aug, 2013
Hi grafik,

Repeating the 'import' line is no problem; Joomla! checks to see if the code is already loaded and, if it is then ignores the second request.

I expect that Max will catch up with this on his bugs list soon.

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