Modo Web Design

Local Weather


Click for Forecast

Webmail Login





fGallery+ WordPress plugin | Table does not exist

I installed fGallery+ for a client but was getting an error message that the “Table wp_fim_cat does not exist.” On the forum it said this happens occasionally, it’s a bug.

Fix: copy the SQL code from fgallery-plugin.php for all three tables, change the table names appropriately, i.e.,

as is:
$sql1 = “CREATE TABLE IF NOT EXISTS $table_name_images (
id smallint(11) NOT NULL auto_increment,
image varchar(255) default NULL,
download varchar(255) default NULL,
date datetime default NULL,
title varchar(255) default NULL,
description TEXT default NULL,
cat varchar(10) NOT NULL,
status varchar(50) default ‘include’,
PRIMARY KEY (id)
)”;

cut ‘n’ paste into phpMyadmin:

CREATE TABLE IF NOT EXISTS $wp_fim_images (
id smallint(11) NOT NULL auto_increment,
image varchar(255) default NULL,
download varchar(255) default NULL,
date datetime default NULL,
title varchar(255) default NULL,
description TEXT default NULL,
cat varchar(10) NOT NULL,
status varchar(50) default ‘include’,
PRIMARY KEY (id)
)