-
AuthorPosts
-
June 1, 2015 at 11:27 pm #206805
I installed JEvents with the customFields Plugin…
The result ist this on pages with JEvents content:
<blockquote> Fatal error: Call to undefined method JFormField::__set() in /mnt/webt/b3/89/54560989/htdocs/joomla_01/libraries/joomla/form/fields/textarea.php on line 87 </blockquote>
After getting an major Error in the Frontend I reported it to JEvents and got this answer:
<blockquote>I found the problem – its caused by your template
There are no problems.
When I use your template then the core Joomla JFormField file is not loaded it uses a broken version created by your template club
/plugins/system/jat3/jat3/core/joomla/form/field.phpThis is a SERIOUS bug in their template framework and you should raise ticket with them</blockquote>
Any ideas how to fix this bug? :((
jooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
June 2, 2015 at 12:05 am #572533Hi there
Which version of T3 you are using ?Thank you,
Viet VuJune 2, 2015 at 12:08 am #572536extension manager says : 2.6.9
jooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
June 2, 2015 at 12:21 am #572540Hi there
Please try to add this function into our t3 field.php
/**
* Method to set certain otherwise inaccessible properties of the form field object.
*
* @param string $name The property name for which to the the value.
* @param mixed $value The value of the property.
*
* @return void
*
* @since 3.2
*/
public function __set($name, $value)
{
switch ($name)
{
case 'class':
// Removes spaces from left & right and extra spaces from middle
$value = preg_replace('/s+/', ' ', trim((string) $value));case 'description':
case 'hint':
case 'value':
case 'labelclass':
case 'onchange':
case 'onclick':
case 'validate':
case 'pattern':
case 'group':
case 'default':
$this->$name = (string) $value;
break;case 'id':
$this->id = $this->getId((string) $value, $this->fieldname);
break;case 'fieldname':
$this->fieldname = $this->getFieldName((string) $value);
break;case 'name':
$this->fieldname = $this->getFieldName((string) $value);
$this->name = $this->getName($this->fieldname);
break;case 'multiple':
// Allow for field classes to force the multiple values option.
$value = (string) $value;
$value = $value === '' && isset($this->forceMultiple) ? (string) $this->forceMultiple : $value;case 'required':
case 'disabled':
case 'readonly':
case 'autofocus':
case 'hidden':
$value = (string) $value;
$this->$name = ($value === 'true' || $value === $name || $value === '1');
break;case 'autocomplete':
$value = (string) $value;
$value = ($value == 'on' || $value == '') ? 'on' : $value;
$this->$name = ($value === 'false' || $value === 'off' || $value === '0') ? false : $value;
break;case 'spellcheck':
case 'translateLabel':
case 'translateDescription':
case 'translateHint':
$value = (string) $value;
$this->$name = !($value === 'false' || $value === 'off' || $value === '0');
break;case 'translate_label':
$value = (string) $value;
$this->translateLabel = $this->translateLabel && !($value === 'false' || $value === 'off' || $value === '0');
break;case 'translate_description':
$value = (string) $value;
$this->translateDescription = $this->translateDescription && !($value === 'false' || $value === 'off' || $value === '0');
break;case 'size':
$this->$name = (int) $value;
break;default:
if (property_exists(__CLASS__, $name))
{
JLog::add("Cannot access protected / private property $name of " . __CLASS__);
}
else
{
$this->$name = $value;
}
}
}Thank you,
Viet VuJune 2, 2015 at 12:59 am #572546Seems fine. Thank you very much :cool::cool::cool:
-
AuthorPosts
This topic contains 5 replies, has 2 voices, and was last updated by markovicho 9 years, 3 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum