Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • markovicho Friend
    #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

    Try
    http://staging.kitchen2soul.com/index.php/veranstaltungen/cat.listevents/2015/06/01/-?template=system

    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.php

    This is a SERIOUS bug in their template framework and you should raise ticket with them</blockquote>

    Any ideas how to fix this bug? :((

    jooservices Friend
    #572533

    Hi there
    Which version of T3 you are using ?

    Thank you,
    Viet Vu

    markovicho Friend
    #572536

    extension manager says : 2.6.9

    jooservices Friend
    #572540

    Hi 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 Vu

    markovicho Friend
    #572546

    Seems fine. Thank you very much :cool::cool::cool:

Viewing 5 posts - 1 through 5 (of 5 total)

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