When i add a new ad type, i obtain the following errors:

arning: in_array() expects parameter 2 to be array, null given in drupal_write_record() (line 6815 of /MY_FOLDER/includes/common.inc).
Warning: in_array() expects parameter 2 to be array, null given in drupal_write_record() (line 6815 of /MY_FOLDER/includes/common.inc).
Warning: in_array() expects parameter 2 to be array, null given in drupal_write_record() (line 6815 of /MY_FOLDER/includes/common.inc).
Warning: in_array() expects parameter 2 to be array, null given in drupal_write_record() (line 6815 of /MY_FOLDER/includes/common.inc).
Warning: class_implements(): Class AdvertisementEntityController does not exist and could not be loaded in entity_crud_get_info() (line 494 of /MY_FOLDER/sites/all/modules/entity/entity.module).
Warning: in_array() expects parameter 2 to be array, boolean given in entity_crud_get_info() (line 494 of /MY_FOLDER/sites/all/modules/entity/entity.module).
Notice: Undefined index: label in entity_views_table_definition() (line 123 of /MY_FOLDER/sites/all/modules/entity/views/entity.views.inc).
Warning: class_implements(): Class AdvertisementEntityController does not exist and could not be loaded in entity_type_supports() (line 72 of /MY_FOLDER/sites/all/modules/entity/entity.module).
Warning: in_array() expects parameter 2 to be array, boolean given in entity_type_supports() (line 72 of /MY_FOLDER/sites/all/modules/entity/entity.module).
Warning: class_implements(): Class AdvertisementEntityController does not exist and could not be loaded in entity_crud_get_info() (line 494 of /MY_FOLDER/sites/all/modules/entity/entity.module).
Warning: in_array() expects parameter 2 to be array, boolean given in entity_crud_get_info() (line 494 of /MY_FOLDER/sites/all/modules/entity/entity.module).
Warning: class_implements(): Class AdvertisementEntityController does not exist and could not be loaded in entity_crud_get_info() (line 494 of /MY_FOLDER/sites/all/modules/entity/entity.module).
Warning: in_array() expects parameter 2 to be array, boolean given in entity_crud_get_info() (line 494 of /MY_FOLDER/sites/all/modules/entity/entity.module).
Notice: Undefined index: label in entity_views_table_definition() (line 123 of /MY_FOLDER/sites/all/modules/entity/views/entity.views.inc).
Warning: class_implements(): Class AdvertisementEntityController does not exist and could not be loaded in entity_type_supports() (line 72 of /MY_FOLDER/sites/all/modules/entity/entity.module).
Warning: in_array() expects parameter 2 to be array, boolean given in entity_type_supports() (line 72 of /MY_FOLDER/sites/all/modules/entity/entity.module).
Notice: Trying to get property of non-object in ad_type_title() (line 251 of /MY_FOLDER/sites/all/modules/ad/ad.module).
Notice: Trying to get property of non-object in ad_type_title() (line 251 of /MY_FOLDER/sites/all/modules/ad/ad.module).
Notice: Trying to get property of non-object in ad_type_title() (line 251 of /MY_FOLDER/sites/all/modules/ad/ad.module).

Then it's impossible to edit or delete the ad type.

Comments

eric-alexander schaefer’s picture

Subscribe

DrupalDan’s picture

When i add a new ad type, i get the following errors:

Warning: in_array() expects parameter 2 to be array, null given in drupal_write_record() (line 6906 of C:\wamp\www\mysite\includes\common.inc).
Warning: in_array() expects parameter 2 to be array, null given in drupal_write_record() (line 6906 of C:\wamp\www\mysite\includes\common.inc).
Warning: in_array() expects parameter 2 to be array, null given in drupal_write_record() (line 6906 of C:\wamp\www\mysite\includes\common.inc).
Warning: in_array() expects parameter 2 to be array, null given in drupal_write_record() (line 6906 of C:\wamp\www\mysite\includes\common.inc).

erfunath’s picture

Similar problem; also getting:

Notice: Undefined index: base table in calendar_views_templates()

Apparently, a conflict with Views Calendar.

jim_at_miramontes’s picture

I'm getting this, too (Drupal 7.12, Ad 7.x-2.x-dev; Ad and Ad UI both enabled). I can create a new ad type (with the above errors occurring along the way), but neither it nor the basic Advertisement type is found when I try to create a new ad. If I try to delete the ad type, I get a stream of errors and a report that the type has been deleted, but it's still there.

I'm also getting frequent errors of the form:

Notice: Trying to get property of non-object in ad_type_title() (line 251 of /var/www/html/sitename/sites/all/modules/ad/ad.module).

I tried to poke around in the code to see what's going off, but I end up in the bowels of system code pretty quickly, and am hopelessly lost.

I'm not using Views, so, while I'm not surprised that there are problems with Views, that doesn't seem to be at the heart of the problem.

Any insights out there? This is a clean install of Ad into a pretty clean D7 installation, and it just doesn't work. Dead in the water...

DrupalDan’s picture

While waiting for improvements in the ad module, I use some alternative modules to do the job. There are several options available. Hope this helps.

pepemty’s picture

Alternatives such as...?

DrupalDan’s picture

Currently I'm using two modules for ads: rotating banner and dynamic banner.

pepemty’s picture

Thanks!

anybody’s picture

Status: Active » Closed (outdated)