Hello,

I receive the following Warnings/Notices when I attempt to edit any existing dart tag.

* Warning: unserialize() expects parameter 1 to be string, array given in dart_tag_ui->edit_form() (line 17 of /mnt/www/html/maximdev/docroot/sites/all/modules/contrib/dart/plugins/export_ui/dart_tag_ui.class.php).

* Notice: Undefined variable: tag in dart_scheduler_form_alter() (line 41 of /mnt/www/html/maximdev/docroot/sites/all/modules/contrib/dart/modules/dart_scheduler/dart_scheduler.module).

* Notice: Trying to get property of non-object in dart_scheduler_form_alter() (line 41 of /mnt/www/html/maximdev/docroot/sites/all/modules/contrib/dart/modules/dart_scheduler/dart_scheduler.module).

Aside from the error messages, everything seems to work fine. I'm new to Drupal, so please let me know any other information that I can provide to help with this problem.

All help is greatly appreciated!

Regards,
Mike
I've searched around and have found not found any information. E

CommentFileSizeAuthor
#3 dart-sched.patch1.8 KBbleen

Comments

bleen’s picture

Category: support » bug

Can you do me a favor and go to /admin/structure/dart_tags and click "export" next to one of the tags that gives you this error. Paste the results right here in the issue...

HalfChem’s picture

Sure, thanks!
----------------------------------------------------

$tag = new stdClass;
$tag->disabled = FALSE; /* Edit this to true to make a default tag disabled initially */
$tag->api_version = 1;
$tag->machinename = 'dart_banner';
$tag->name = 'DART Ad: Banner';
$tag->pos = 'top';
$tag->sz = '970x418';
$tag->active = 1;
$tag->block = 1;
$tag->settings = array(
'overrides' => array(
'site' => '',
'zone' => '',
'slug' => '',
),
'options' => array(
'scriptless' => 0,
'method' => 'adj',
'include_terms' => 0,
),
'key_vals' => array(),
'scheduler' => array(),
);

bleen’s picture

Title: Warnings & Notices Displayed When Editing Dart Tag » When dart_scheduler is enabled, warnings & notices displayed when editing tag
Status: Active » Needs review
StatusFileSize
new1.8 KB

I was not able to reproduce the very first error you listed but I did see the others... this should fix those (and hopefully that first one too)

To be blunt the dart_scheduler module is not that great and I would like to rewrite it/replace it with something better .. I wouldn't rely too heavily on it. That said though, it should work.

Please try this patch and report back if it fixes your issue.

bleen’s picture

Status: Needs review » Fixed

I committed #3 to 7.x as it definitely fixes several issues from the OP. If anyone can reproduce that first error reported by HalfChem, please reopen this issue.

Status: Fixed » Closed (fixed)

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