Closed (fixed)
Project:
MERCI (Manage Equipment Reservations, Checkout and Inventory)
Version:
7.x-2.0
Component:
Merci Staff
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
7 Jan 2013 at 12:34 UTC
Updated:
11 Jul 2015 at 18:28 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
pimok3000 commentedI don´t know how to solve it but the same error for page title module uses this patch.
Maybe someone with a bit more knowledge of php can make a patch for the merci module out of this?
Comment #2
darrick commentedI've posted a fix here: http://drupalcode.org/project/merci.git/commit/9314c6d
Please test.
Comment #3
darrick commentedComment #5
Cheviot commentedI wish to open this again.
Using the latest patch as mentioned in http://drupalcode.org/project/merci.git/commit/9314c6d is still happens when creating a new reservation or updating this.
The error disappears when I click on "Limit List to Available Items" suggesting it is an array issue (unexpected results in an array?).
Strict warning: Only variables should be passed by reference in merci_staff_load_user() (line 38 of /Library/WebServer/Documents/podcocoon/sites/all/modules/merci/modules/merci_staff/merci_staff.module).
Comment #6
darrick commentedI'm not able to reproduce this. Can you verify the patch was applied correctly? Can you test with the latest code?
When does the error occur? After saving the reservation? When selecting the user the reservation is for?
Thanks
Comment #7
Cheviot commentedThe error occurred when opening a new reservation and when I tried to amend an existing reservation.
It disappears as seen in the image samples. I took me a good few extra hours trying to uninstall/re-installl and solved this.
I discovered that some left over in the db can cause a fresh install to fail so I had to resort to cleaning the db from all MERCI records manually. The strange thing was that I could create a new reservation and amend an existing one while MERCI no any views existed. It have me a hint there is a SQL record issue.
To create a really totally clean install II uninstalled MERCI, deleted manually all SQL MERCI related table/fields records. I copy a fresh MERCI module to drupal modules (to be sure there are no typing errors as I was trying to amend it). Then I re-installed MERCI. MERCI and views are now properly installed. I created a new reservation and the error appeared again expected because it is a fresh install, I applied the patch and.... it now works!
I conclude that in some cases it may help to start from scratch after first properly cleaning SQL db from any MERCI left overs, it worked in my case.
Thanks!
Comment #8
darrick commentedThanks for the update.