Clean install Drupal 7 beta1, installed the rotating banner module but when i try to create a new rotating banner i get the following error:

Warning: Parameter 1 to rotating_banner_add_form() expected to be a reference, value given in drupal_retrieve_form() (line 703 of C:\wamp\www\drupal7\includes\form.inc).

CommentFileSizeAuthor
rotatingbannererror.jpg99.6 KBrlmumford
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

bjalford’s picture

I get the same issue.

james.elliott’s picture

Status: Active » Fixed

The root of this was that rotating_banner_add_form() was using a reference to $form instead of the $form. That is to say, the first argument was &$form instead of $form.

I committed the fix

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Creatorus’s picture

Status: Closed (fixed) » Active

Doesn't been fixed; I still have the same issue.

thomasstapleton’s picture

on line 251 of sites/all/modules/rotating_banner/rotating_banner.admin.inc, change

function rotating_banner_add_form(&$form, &$form_state) {

to

function rotating_banner_add_form($form, &$form_state) {

so you are changing &$form to $form as noted in comment 2.

james.elliott’s picture

Try checking out HEAD

james.elliott’s picture

Status: Active » Fixed
TribalMan’s picture

Worked for me

mtippetts’s picture

It didn't work for me:
Warning: Parameter 1 to rotating_banner_add_form() expected to be a reference, value given in drupal_retrieve_form() (line 771 of C:\xampp\htdocs\mymusiced\includes\form.inc).

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

need4speed’s picture

I tried to change the as you suggest James Im still having the problem after trying to save a slide.

Fatal error: Call to undefined function media_load() in /home/u125asa/www/sites/all/modules/rotating_banner/rotating_banner.module on line 241

petkove’s picture

Only a temp solution:
aaron from http://drupal.org/node/1216052:
The media_load function no longer exists in the Media module. The MediaFront module needs to be updated to work with major API changes to Media for the 7.x-1.0-beta5 release. Try replacing media_load with file_load and see if that solves that particular issue.

I tried it and it works temporary developers should probably replace it with the proper function.

--
Latest drupal 7 sites:
Libri Stranieri and Strane Knjige

husainhyder’s picture

where is the download file??????????????????????????