Fatal error: Wrong parameters for Exception([string $exception [, long $code ]]) in /var/www/tmgmt/sites/all/modules/tmgmt/includes/tmgmt.exception.inc on line 16

requested from here:

comments

Comments

berdir’s picture

Assigned: Unassigned » blueminds

Unable to reproduce this, getting the following drupal error message, as expected: "Unable to add job item for entity The title.. Make sure the source content is not empty.".

Checked the API docs at http://ch2.php.net/manual/en/exception.construct.php, looks like the third argument was added in PHP 5.3. We currently don't depend on that, so let's just remove the third argument from our exception class.

cgalli’s picture

That makes sense, the error occured an a server running Lenny/PHP 5.2

blueminds’s picture

Status: Active » Needs review
StatusFileSize
new703 bytes

Third argument removed. See the patch.

blueminds’s picture

Third argument removed.

berdir’s picture

Status: Needs review » Fixed

Commited.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.