forum.coppermine-gallery.net

Dev Board => cpg1.4 Testing/Bugs => cpg1.4 Testing/Bugs: FIXED/CLOSED => Topic started by: robinna on September 23, 2005, 06:38:34 pm

Title: Unable to create a new album: Fatal error: Call to undefined function -resolved?
Post by: robinna on September 23, 2005, 06:38:34 pm
Hello,
I believe I may have resolved this problem so I'm updating my entry... :
Anyhow, use at your own risk (as with anything I create or fix!)  :)

------------------------------ 
Problem:
Error message I receive when I try to access albummgr.php
Fatal error: Call to undefined function: starttable() in ..../public_html/galleries/albmgr.php on line 336
(the dots are just to shorten the path) I receive this error message regardless of which theme I choose.
The only language I have tested so far is English.

albummgr.php is 1.17; all of my other files are the latest dev from the cvs.
No modifications...

my url:
http:/www.robinart.com/galleries/
----------------------


--------------------------------
UPDATE:
ok, I compared the schema.sql file to coppermine 1.3.3. in the create album spot of the code and noticed some differences.  Not sure if this is the real fix or not, put thought I would include it if it is. I"m not noticing any differences or other errors in cp 1.4.1 now. Everything else seems to be working ok for me. I just replaced the whole chunk of creating album code because I'm lazy and like copy n paste. ;D

So, in the  schema.sql 1.4.1,  Revision: 1.40:

Lines 36-53
OLD:

Code: [Select]
CREATE TABLE CPG_albums (
  aid int(11) NOT NULL auto_increment,
  title varchar(255) NOT NULL default '',
  description text NOT NULL,
  visibility int(11) NOT NULL default '0',
  uploads enum('YES','NO') NOT NULL default 'NO',
  comments enum('YES','NO') NOT NULL default 'YES',
  votes enum('YES','NO') NOT NULL default 'YES',
  pos int(11) NOT NULL default '0',
  category int(11) NOT NULL default '0',
  thumb int(11) NOT NULL default '0',
  keyword VARCHAR( 50 ),
  alb_password VARCHAR( 32 ),
  alb_password_hint TEXT,
  PRIMARY KEY  (aid),
  KEY alb_category (category)
) TYPE=MyISAM;
# --------------------------------------------------------

REPLACED WITH:
Code: [Select]
# Table structure for table `CPG_albums`
#

CREATE TABLE CPG_albums (
  aid int(11) NOT NULL auto_increment,
  title varchar(255) NOT NULL default '',
  description text NOT NULL,
  visibility int(11) NOT NULL default '0',
  uploads enum('YES','NO') NOT NULL default 'NO',
  comments enum('YES','NO') NOT NULL default 'YES',
  votes enum('YES','NO') NOT NULL default 'YES',
  pos int(11) NOT NULL default '0',
  category int(11) NOT NULL default '0',
  pic_count int(11) NOT NULL default '0',
  thumb int(11) NOT NULL default '0',
  last_addition datetime NOT NULL default '0000-00-00 00:00:00',
  stat_uptodate enum('YES','NO') NOT NULL default 'NO',
  keyword VARCHAR( 50 ),
  PRIMARY KEY  (aid),
  KEY alb_category (category)
) TYPE=MyISAM;
#
 --------------------------------------------------------
Title: Re: Unable to create a new album: Fatal error: Call to undefined function -resol
Post by: Joachim Müller on September 25, 2005, 08:33:24 am
it appears that you haven't performed a full upgrade - use versioncheck to make sure you have replaced all leftover files from cpg1.3.x