Publishing/ unpublishing newsletters in Administration / Content management content/ leads to following warning in a Drupal 6.4. Apache test environment:

recoverable fatal error: Object of class stdClass could not be converted to string in C:\xampp\htdocs\[www.sitename.com]\sites\default\modules\simplenews\simplenews.module on line 395.

Status is correctly updated and no harm seems to be done.

Is this a bug?

Enno

Comments

niklp’s picture

I would test this out on a non-XAMPP install and see what happens (ie on a "proper" Apache install) - it's likely that the level of error reporting enabled on your test system is set to display more low priority errors, for a guess.

sutharsan’s picture

Component: User interface » Code
Assigned: Unassigned » sutharsan
Category: support » bug

I confirm the same problem on an MAMP install. This is a genuine error, possibly in Simplenews since long time (but I have not tested). For now you can ignore the fault, it does not have any effect on the content of you newsletter. I will work on a solution.

sutharsan’s picture

Title: publishing / unpublishing newsletters » Error when (un)publishing newsletters in content admin
Version: 6.x-1.0-beta3 » 6.x-1.x-dev
Assigned: sutharsan » Unassigned
Status: Active » Fixed
StatusFileSize
new878 bytes
new2.28 KB

Attached patches are committed. Please test 6.x-1.x-dev when the next snaphot release is available.

simplenews_validate_taxonomy() has been rewritten to handle the different taxonomy forms.
During the above rewrite I discovered that new terms created by free tagging are not handled properly. To prevent problems, free tagging is disallowed and the option removed from the vocabulary add/edit form.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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