Kevin
Kevin

Reputation: 779

Drupal TableGenerator class not working in drupal 7

I've migrated a website from drupal 6 to drupal 7. I was using Druapl6/TableGenerator class. After migration this class wont work. When I call:

$Table = new TableGenerator();

it gives this error

Error
The website encountered an unexpected error. Please try again later.

Is it possible to get this working in drupal 7? Any help is highly appreciated.

Upvotes: 0

Views: 54

Answers (1)

shanet
shanet

Reputation: 7334

You're missing the parentheses: $Table = new TableGenerator();

However, I can't find any reference to a TableGenerator class in the Drupal API. If it's coming from a contrib module, make sure that module is enabled and compatible with D7.

Your best bet is to enable error reporting (remember to disable it for production environments). Stick the following in your settings.php:

error_reporting(E_ALL);
ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);

Upvotes: 1

Related Questions