[SPT/CWIS] DBFieldName() on SPT--Resource.php line 668
Edward Almasy
ealmasy at scout.wisc.edu
Wed May 28 11:08:57 CDT 2008
On May 26, 2008, at 11:49 AM, Jhonatan Tirado wrote:
> I get the following error when trying to *add a new resource.
> *As result, a new record is inserted into the database, but with a
> ResourceId like "-1", "-12" or so on. It seems to be a temp register.
> So the record never gets to appear on the cwis portal.
> Fatal error*: Call to a member function DBFieldName() on a non-
> object in
> */var/www/repositorio/include/SPT--Resource.php* on line *668
> I thought the problem was because of changing some database fields
> using
> the Metadata Field Editor.
> *CWIS version*: 1.4.0
The negative resource ID does indeed indicate a
temporary resource record, and the problem is likely
to be connected to something that was changed via
the Metadata Field Editor, as the error message
indicates that there is a metadata field defined
in a way that is causing the Metadata Tool to choke
when it tries to access the field info for editing.
All of that said, I would suggest your best course
is to back up your existing CWIS installation and
database, and upgrade your site to version 1.5.0.
Many bugs have been fixed since 1.4.0 and the Metadata
Tool resource editing interface has been entirely
rewritten to be much more robust, which at minimum
should make any existing problem much easier to track
down and fix.
Ed
---
Edward Almasy ealmasy at scout.wisc.edu
Co-Director 1210 W Dayton Street
Internet Scout Madison WI 53706
Computer Sciences Department 608-262-6606 (voice)
University of Wisconsin - Madison 608-265-9296 (fax)
More information about the SPT-CWIS-Users
mailing list