Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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).
Comment | File | Size | Author |
---|---|---|---|
rotatingbannererror.jpg | 99.6 KB | rlmumford |
Comments
Comment #1
bjalford CreditAttribution: bjalford commentedI get the same issue.
Comment #2
james.elliott CreditAttribution: james.elliott commentedThe 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
Comment #4
Creatorus CreditAttribution: Creatorus commentedDoesn't been fixed; I still have the same issue.
Comment #5
thomasstapleton CreditAttribution: thomasstapleton commentedon 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.
Comment #6
james.elliott CreditAttribution: james.elliott commentedTry checking out HEAD
Comment #7
james.elliott CreditAttribution: james.elliott commentedComment #8
TribalMan CreditAttribution: TribalMan commentedWorked for me
Comment #9
mtippetts CreditAttribution: mtippetts commentedIt 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).
Comment #11
need4speed CreditAttribution: need4speed commentedI 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
Comment #12
petkove CreditAttribution: petkove commentedOnly 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
Comment #13
husainhyder CreditAttribution: husainhyder commentedwhere is the download file??????????????????????????