Alright i solved the issue, it seems that in the views page, i didnt put the default 'array()' for the form helper's $form->day, $form->month and $form->year.
pretty weird that my development copy didnt catch that error. 2009/6/9 Ryan Tan <[email protected]> > Hi all, > > I seem to have a problem during this migration. > I just transfered the exact copy of my developed site and its database, > with all necessary configurations in placed. > > The copy in my development server works fine thou, both are running on > Ubuntu Linux. > > However a minor error in my custom drop-down input forms shows me: > > *Warning* (2): array_merge() [function.array-merge > <http://php.net/function.array-merge>]: Argument #1 is not an array > [*CORE/cake/libs/view/helpers/form.php*, line *1141*] > > > Code: > > array_merge - [internal], line ?? > FormHelper::select() - CORE/cake/libs/view/helpers/form.php, line 1141 > FormHelper::day() - CORE/cake/libs/view/helpers/form.php, line 1238 > include - APP/views/admin/staff_job_registration.ctp, line 37 > > View::_render() - CORE/cake/libs/view/view.php, line 654 > View::render() - CORE/cake/libs/view/view.php, line 372 > Controller::render() - CORE/cake/libs/controller/controller.php, line 744 > Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 262 > > Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 213 > [main] - APP/webroot/index.php, line 90 > > > Context: > > $fieldName = "Admin.jend.day.day" > > $options = array( > 1, > 2, > 3, > 4, > 5, > 6, > 7, > 8, > 9, > 10, > 11, > 12, > 13, > 14, > 15, > 16, > 17, > 18, > 19, > 20, > 21, > 22, > 23, > 24, > 25, > 26, > 27, > > 28, > 29, > 30, > 31 > ) > $selected = null > $attributes = null > $showEmpty = true > $select = array() > $showParents = false > $escapeOptions = true > $style = null > $tag = null > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
