Forums

The argument should be an array

lifecolor 23 May, 2013
Hi, we've a warning when I send a message from a form with chronoforms 4.0 (25.April.2013)


Warning: array_values() [function.array-values]: The argument should be an array in /var/www/html/xxxxxxxxxx/administrator/components/com_chronoforms/form_actions/email/email.php on line 205

Warning: Invalid argument supplied for foreach() in /var/www/html/xxxxxxxxxx/administrator/components/com_chronoforms/form_actions/email/email.php on line 206

Thank you



I've added debugger:


Data Array:

Array
(
    [option] => com_chronoforms
    [view] => form
    [Itemid] => 711
    [template] => component
    [oggetto] => 
    [chronoform] => personalizza
    [event] => submit
    [input_text_1] => Rossi
    [input_text_2] => gigi@mymail.com
    [input_textarea_3] => kopko
    [input_file_4] => 20130523100124_3341867340.jpg
    [input_textarea_5] => 
    [input_file_6] => 
    [chrono_verification] => b7Ugx
    [input_submit_7] => Send
    [3d5f2de8165f0ddf381d28c75ae4a9e0] => 1
    [_PLUGINS_] => Array
        (
            [upload_files] => Array
                (
                    [input_file_4] => Array
                        (
                            [name] => 20130523100124_3341867340.jpg
                            [original_name] => 3341867340.jpg
                            [path] => /var/www/html/xxxxxxxxxx/components/com_chronoforms/uploads/personalizza/20130523100124_3341867340.jpg
                            [size] => 34256
                            [link] => http://yyyyyy.ccc/xxxxxxxxxx/components/com_chronoforms/uploads/personalizza/20130523100124_3341867340.jpg
                        )

                )

        )

)

Validation Errors:

Array
(
)

Thank you!
Debug Data

    Core Captcha
        Passed the core captcha check!
    Upload routine started for file upload by : input_file_4
    /var/www/html/xxxxxxxxxxxx/components/com_chronoforms/uploads/personalizza/20130523100124_3341867340.jpg has been uploaded successfully.
    email
        3
            Result An email has been SENT successfully from (Rossi)gigi@mymail.com to support@yourmail.com            Body
            Cognome Nome 	Rossi
            email 	gigi@mymail.com
            Testo 1 	kopko
            Immagine 1 	20130523100124_3341867340.jpg
            Testo 2 	
            Immagine 2 	


            Submitted by 192.168.3.100
            Attachments array ( 0 => '/var/www/html/xxxxxxxxxxxx/components/com_chronoforms/uploads/personalizza/20130523100124_3341867340.jpg', )


How can I found the problem?
Thanks in advance
Life Color Communication srl
GreyHead 24 May, 2013
Hi life.color,

Unfortunately the Debugger output doesn't include the $form->files array which the message refers to.

The simplest answer is to set your site Error Reporting to System Default of to None which should hide any PHP Notices or Warnings.

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