pods-framework/pods — Issue #82: Getting Fatal Error after activation
Author: staqihz
Created: 2012-01-03 00:48:30+00:00
State: open

I am getting fatal error when i tried to activate the plugin:

```Fatal error: Uncaught exception 'Exception' with message 'Cannot setup SQL tables; SQL: DROP TABLE IF EXISTS wp_pods; DROP TABLE IF EXISTS wp_pods_fields; DROP TABLE IF EXISTS wp_pods_objects; DROP TABLE IF EXISTS wp_pods_rel; CREATE TABLE `wp_pods` ( `id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, `name` VARCHAR(255) NULL DEFAULT NULL, `type` VARCHAR(15) NULL DEFAULT 'pod', `object` VARCHAR(255) NULL DEFAULT NULL, `storage` VARCHAR(255) NULL DEFAULT 'table', `alias` VARCHAR(255) NULL DEFAULT NULL, `weight` INT(10) UNSIGNED NULL DEFAULT '0', `options` LONGTEXT NULL, PRIMARY KEY (`id`), INDEX `name_x` (`name`) ) DEFAULT CHARSET utf8; CREATE TABLE `wp_pods_fields` ( `id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, `pod_id` INT(10) UNSIGNED NULL DEFAULT NULL, `name` VARCHAR(64) NULL DEFAULT NULL, `label` VARCHAR(255) NULL DEFAULT NULL, `type` VARCHAR(32) NULL DEFAULT NULL, `pick_object` VARCHAR(32) NULL DEFAULT NULL, `pick_val` VARCHA in D:\xampp-win32-1.7.4-VC6\xampp\htdocs\overlay\wp-content\plugins\pods-framework-pods-707d927\functions.php on line 56```

Things need to be fixed in Activation function hook, not allowing the pods to create the table.

I have tried fixing the activation hook but once i fixed it i went to another problem i.e. on
http://localhost/wp-admin/admin.php?page=pods
I am getting this error:
```Parse error: syntax error, unexpected T_FUNCTION in /home/mgstorag/public_html/wp-content/plugins/pods-framework-pods-707d927/classes/PodsUI.php on line 396```

FYI: I have downloaded the latest PODS2.0 version from GITHUB and tested on Wordpress Single and Multisite
Plugin not working on both.