Jump to content

Viewing Arrays on Identity page


Recommended Posts

Hello I have a problem and do not know how to move on.

 

When going to "My personal details" on my account I am getting page with this code:

Array
(
    [0] => Array
        (
            [file] => /domains/web2213/web/classes/ObjectModel.php
            [line] => 390
            [function] => displayError
            [class] => ToolsCore
            [type] => ::
            [args] => Array
                (
                )

        )

    [1] => Array
        (
            [file] => /domains/web2213/web/classes/Customer.php
            [line] => 127
            [function] => validateFields
            [class] => ObjectModelCore
            [object] => Customer Object
                (
                    [id] => 4
                    [businessid] => 
                    [secure_key] => 56542744284017df9664d85023c58456
                    [note] => 
                    [id_gender] => 1
                    [id_default_group] => 1
                    [lastname] => Jarecki
                    [firstname] => Marcin
                    [birthday] => 
                    [email] => [email protected]
                    [newsletter] => 0
                    [ip_registration_newsletter] => 
                    [newsletter_date_add] => 
                    [optin] => 0
                    [passwd] => e669104f29d4b12b4536dd4e82d024e4
                    [last_passwd_gen] => 2012-11-15 05:48:57
                    [active] => 1
                    [is_guest] => 0
                    [deleted] => 0
                    [date_add] => 2012-11-15 11:48:57
                    [date_upd] => 2012-11-15 11:37:29
                    [years] => 
                    [days] => 
                    [months] => 
                    [tables:protected] => Array
                        (
                            [0] => customer
                        )

                    [fieldsRequired:protected] => Array
                        (
                            [0] => lastname
                            [1] => passwd
                            [2] => firstname
                            [3] => email
                        )

                    [fieldsSize:protected] => Array
                        (
                            [lastname] => 32
                            [passwd] => 32
                            [firstname] => 32
                            [email] => 128
                            [note] => 65000
                        )

                    [fieldsValidate:protected] => Array
                        (
                            [secure_key] => isMd5
                            [lastname] => isName
                            [firstname] => isName
                            [email] => isEmail
                            [passwd] => isPasswd
                            [id_gender] => isUnsignedId
                            [birthday] => isBirthDate
                            [newsletter] => isBool
                            [optin] => isBool
                            [active] => isBool
                            [note] => isCleanHtml
                            [is_guest] => isBool
                        )

                    [exclude_copy_post:protected] => Array
                        (
                            [0] => secure_key
                            [1] => active
                            [2] => date_add
                            [3] => date_upd
                            [4] => last_passwd_gen
                            [5] => newsletter_date_add
                            [6] => id_default_group
                            [7] => ip_registration_newsletter
                            [8] => note
                            [9] => is_guest
                            [10] => deleted
                        )

                    [webserviceParameters:protected] => Array
                        (
                            [fields] => Array
                                (
                                    [id_default_group] => Array
                                        (
                                            [xlink_resource] => groups
                                        )

                                    [newsletter_date_add] => Array
                                        (
                                        )

                                    [ip_registration_newsletter] => Array
                                        (
                                        )

                                    [last_passwd_gen] => Array
                                        (
                                            [setter] => 
                                        )

                                    [secure_key] => Array
                                        (
                                            [setter] => 
                                        )

                                    [deleted] => Array
                                        (
                                        )

                                    [passwd] => Array
                                        (
                                            [setter] => setWsPasswd
                                        )

                                )

                            [associations] => Array
                                (
                                    [groups] => Array
                                        (
                                            [resource] => group
                                        )

                                )

                        )

                    [table:protected] => customer
                    [identifier:protected] => id_customer
                    [id_lang:protected] => 
                    [fieldsRequiredLang:protected] => Array
                        (
                        )

                    [fieldsSizeLang:protected] => Array
                        (
                        )

                    [fieldsValidateLang:protected] => Array
                        (
                        )

                    [image_dir:protected] => 
                    [image_format:protected] => jpg
                )

            [type] => ->
            [args] => Array
                (
                )

        )

    [2] => Array
        (
            [file] => /domains/web2213/web/controllers/IdentityController.php
            [line] => 84
            [function] => getFields
            [class] => CustomerCore
            [object] => Customer Object
                (
                    [id] => 4
                    [businessid] => 
                    [secure_key] => 56542744284017df9664d85023c58456
                    [note] => 
                    [id_gender] => 1
                    [id_default_group] => 1
                    [lastname] => Jarecki
                    [firstname] => Marcin
                    [birthday] => 
                    [email] => [email protected]
                    [newsletter] => 0
                    [ip_registration_newsletter] => 
                    [newsletter_date_add] => 
                    [optin] => 0
                    [passwd] => e669104f29d4b12b4536dd4e82d024e4
                    [last_passwd_gen] => 2012-11-15 05:48:57
                    [active] => 1
                    [is_guest] => 0
                    [deleted] => 0
                    [date_add] => 2012-11-15 11:48:57
                    [date_upd] => 2012-11-15 11:37:29
                    [years] => 
                    [days] => 
                    [months] => 
                    [tables:protected] => Array
                        (
                            [0] => customer
                        )

                    [fieldsRequired:protected] => Array
                        (
                            [0] => lastname
                            [1] => passwd
                            [2] => firstname
                            [3] => email
                        )

                    [fieldsSize:protected] => Array
                        (
                            [lastname] => 32
                            [passwd] => 32
                            [firstname] => 32
                            [email] => 128
                            [note] => 65000
                        )

                    [fieldsValidate:protected] => Array
                        (
                            [secure_key] => isMd5
                            [lastname] => isName
                            [firstname] => isName
                            [email] => isEmail
                            [passwd] => isPasswd
                            [id_gender] => isUnsignedId
                            [birthday] => isBirthDate
                            [newsletter] => isBool
                            [optin] => isBool
                            [active] => isBool
                            [note] => isCleanHtml
                            [is_guest] => isBool
                        )

                    [exclude_copy_post:protected] => Array
                        (
                            [0] => secure_key
                            [1] => active
                            [2] => date_add
                            [3] => date_upd
                            [4] => last_passwd_gen
                            [5] => newsletter_date_add
                            [6] => id_default_group
                            [7] => ip_registration_newsletter
                            [8] => note
                            [9] => is_guest
                            [10] => deleted
                        )

                    [webserviceParameters:protected] => Array
                        (
                            [fields] => Array
                                (
                                    [id_default_group] => Array
                                        (
                                            [xlink_resource] => groups
                                        )

                                    [newsletter_date_add] => Array
                                        (
                                        )

                                    [ip_registration_newsletter] => Array
                                        (
                                        )

                                    [last_passwd_gen] => Array
                                        (
                                            [setter] => 
                                        )

                                    [secure_key] => Array
                                        (
                                            [setter] => 
                                        )

                                    [deleted] => Array
                                        (
                                        )

                                    [passwd] => Array
                                        (
                                            [setter] => setWsPasswd
                                        )

                                )

                            [associations] => Array
                                (
                                    [groups] => Array
                                        (
                                            [resource] => group
                                        )

                                )

                        )

                    [table:protected] => customer
                    [identifier:protected] => id_customer
                    [id_lang:protected] => 
                    [fieldsRequiredLang:protected] => Array
                        (
                        )

                    [fieldsSizeLang:protected] => Array
                        (
                        )

                    [fieldsValidateLang:protected] => Array
                        (
                        )

                    [image_dir:protected] => 
                    [image_format:protected] => jpg
                )

            [type] => ->
            [args] => Array
                (
                )

        )

    [3] => Array
        (
            [file] => /domains/web2213/web/classes/FrontController.php
            [line] => 63
            [function] => preProcess
            [class] => IdentityControllerCore
            [object] => IdentityController Object
                (
                    [php_self] => identity.php
                    [authRedirection] => identity.php
                    [ssl] => 1
                    [errors] => Array
                        (
                        )

                    [iso] => en
                    [orderBy] => 
                    [orderWay] => 
                    [p] => 
                    [n] => 
                    [auth] => 
                    [guestAllowed] => 
                    [restrictedCountry:protected] => 
                    [maintenance:protected] => 
                )

            [type] => ->
            [args] => Array
                (
                )

        )

    [4] => Array
        (
            [file] => /domains/web2213/web/identity.php
            [line] => 29
            [function] => run
            [class] => FrontControllerCore
            [object] => IdentityController Object
                (
                    [php_self] => identity.php
                    [authRedirection] => identity.php
                    [ssl] => 1
                    [errors] => Array
                        (
                        )

                    [iso] => en
                    [orderBy] => 
                    [orderWay] => 
                    [p] => 
                    [n] => 
                    [auth] => 
                    [guestAllowed] => 
                    [restrictedCountry:protected] => 
                    [maintenance:protected] => 
                )

            [type] => ->
            [args] => Array
                (
                )

        )

)
(Customer -> businessid is empty)

What is wrong? Please help.

Link to comment
Share on other sites

Are you using any additional modules? Is this happening on default theme or are you using custom one? As far as I know - property "businessid" is not part of the class Customer. It would be helpful if you can provide more info also what is the version of your presta.

Link to comment
Share on other sites

Hmmm.... Prestashop is in version 1.4.8.2... it is not a default theme and code... but i do not remember too much as I did it over a year ago. I not the was some additional module. But I think the problem would be additional field added on registration... and that was businessid... that must have been done incorectly, but I never noticed there was a problem. The field is visible on registration and in Back end panel as well... would you have an idea what and were shall be added in the code to make that page working as well?

Link to comment
Share on other sites

Maybe there were a change in error reporting settings on your web server recently. If it is not affecting functionality of your site maybe the fastest (not the best) solution would be just to suspend printed errors. Check file /config/config.inc.php = line 29. and change 'display_errors' option to off. This should suspend printed errors. 

The best would be to contact the developer who add this additional field and ask for support. If this field is not defined for Customer class I doubt it is working as suppose to.

Link to comment
Share on other sites

×
×
  • Create New...