Keep getting warnings in Views
Warning:
Parameter 1 to admin_menu_admin_menu() expected to be a reference, value given in /includes/module.inc on line 483.
Work initializing the warning:
Menu › Administer › Site building › Views >> Add
Solution in:
/modules/admin_menu/admin_menu.inc
change line 107
function admin_menu_admin_menu(&$deleted) {
to
function admin_menu_admin_menu($deleted) {
*****
warning:
* warning: Parameter 3 to views_ui_build_form_state() expected to be a reference, value given in /srv/www/htdocs/drupal617G/modules/views/includes/admin.inc on line 1606.
* warning: call_user_func_array() expects parameter 1 to be a valid callback, no array or string given in /srv/www/htdocs/drupal617G/includes/form.inc on line 372.
* warning: Invalid argument supplied for foreach() in /srv/www/htdocs/drupal617G/modules/views/includes/admin.inc on line 1542.
* warning: Attempt to assign property of non-object in /srv/www/htdocs/drupal617G/modules/views/includes/admin.inc on line 1613.
Work initializing the warning:
Menu › Administer › Site building › Views
>> Add
BASIC SETTINGS
Style = Table
Anyone who can give me a solution??
Comments
PHP 5.3 problems
Let me guess, you run PHP 5.3
Post the first solution on the admin_menu issue queue.
As for Views, check that you have the latest version, and open an issue on their queue.
Where is the queue?
You were right:
Versions
Apache: : Apache/2.2.15 (Linux/SUSE)
PHP: PHP Version 5.3.2
Drupal: drupal-6.17.tar.gz
Modules: views-6.x-2.11.tar.gz
I am reasonably new to Drupal and I am testing it.
You refer to their queue. Can you tell me where it is?
It's here. Issue queues are
It's here.
Issue queues are always linked from the project page.
There's already a fix in here that might help you.
Solution for me
THANK YOU for the help!
Here is the solution for me:
Warning:
warning: Parameter 3 to views_ui_build_form_state() expected to be a reference, value given in /srv/www/htdocs/drupal617G/modules/views/includes/admin.inc on line 1606.
Work initializing the warning:
Menu › Administer › Site building › Views
>> Add
BASIC SETTINGS
Style = Table
Solution in:
/modules/views/includes/admin.inc
change line 1514
function views_ui_build_form_state($js, $key, &$view, $display_id, $args) {
to
function views_ui_build_form_state($js, $key, $view, $display_id, $args) {
Worked
change line 1514
function views_ui_build_form_state($js, $key, &$view, $display_id, $args) {
to
function views_ui_build_form_state($js, $key, $view, $display_id, $args) {
Did the trick for me. Was getting these warnings when picking a menu type in
views > display page > page settings > menu
Thanks.
thank you this works are
thank you
this works
php 5.3 issues are driving me crazy in many modules
Thank you, that worked
Do we have some idea when/if is this going to be officially patched?
I have had this error and I
I have had this error and I have a I have a clean drupal install with views and views_galleriffic
I followed the instruciton and it fixed it for me thank you
Do we know why this happens?
warning: Parameter 3 to views_ui_build_form_state() expected to
thanks worked for me too... i noticed we are just removing the ampersand '&' from "&$deleted". Some referencing issue with PHP 5.3. I have noticed this error with many modules and PHP 5.3 installation.
eVagabond
disables Views Slideshow
The above mentioned solution removes the error message however it seems to conflict with the Views Slideshow module.
This was at least my result after making the change to the admin.inc.
When I mean conflict, a slide show block would not play. After returning the
admin.inc back to the original code it worked.
I am using PHP 5.3.2