Fatal error form no longer loading.

Status
Not open for further replies.
Getting the following error after updating from github on 4/9/15. Lists loading okay, as are most forms, but one form is no longer loading.

Code:
Fatal error: Cannot use object of type stdClass as array in /home/mmmmmmoopetvps/extranet.ocom.edu/components/com_fabrik/helpers/arrayhelper.php on line 327

Here is the line 327:
Code:
if (isset($array[$name]))

Here are lines 309-382:
Code:
/** 
    * Workaround for J! 3.4 change in FArrayHelper::getValue(), which now forces $array to be, well, an array.
    * We've been a bit naughty and using it for things like SimpleXMLElement.  So for J! 3.4 release, 2/25/2015,
    * globally replaced all use of JArrayHelper::getValue() with FArrayHelper::getValue().  This code is just a
    * copy of the J! code, it just doesn't specify "array $array".
    *
    * [USER=20939]param[/USER]  array  &$array  A named array
    * [USER=20939]param[/USER]  string  $name    The key to search for
    * [USER=20939]param[/USER]  mixed  $default  The default value to give if no key found
    * [USER=20939]param[/USER]  string  $type    Return type for the variable (INT, FLOAT, STRING, WORD, BOOLEAN, ARRAY)
    *
    * @return  mixed  The value from the source array
    */
 
    public static function getValue(&$array, $name, $default = null, $type = '')
    {
        $result = null;
 
        if (isset($array[$name]))
        {
            $result = $array[$name];
        }
 
        // Handle the default case
        if (is_null($result))
        {
            $result = $default;
        }
 
        // Handle the type constraint
        switch (strtoupper($type))
        {
            case 'INT':
            case 'INTEGER':
                // Only use the first integer value
                @preg_match('/-?[0-9]+/', $result, $matches);
                $result = @(int) $matches[0];
                break;
 
            case 'FLOAT':
            case 'DOUBLE':
                // Only use the first floating point value
                @preg_match('/-?[0-9]+(\.[0-9]+)?/', $result, $matches);
                $result = @(float) $matches[0];
                break;
 
            case 'BOOL':
            case 'BOOLEAN':
                $result = (bool) $result;
                break;
 
            case 'ARRAY':
                if (!is_array($result))
                {
                    $result = array($result);
                }
                break;
 
            case 'STRING':
                $result = (string) $result;
                break;
 
            case 'WORD':
                $result = (string) preg_replace('#\W#', '', $result);
                break;
 
            case 'NONE':
            default:
                // No casting necessary
                break;
        }
 
        return $result;
    }

The specific url for the form that is NOT WORKING on the front end is: http://extranet.ocom.edu/index.php/intern-evals/new-eval-spring

It requires the username/pw from mysites.

extranet.ocom.edu
Joomla 3.4.1
Fabrik 3.3.2
 
Hi
I just fixed this issue about 5 minutes ago - please try updating from github

Cheers
Rob
 
Status
Not open for further replies.
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top