I'dont know if this is Ad related or Ad_flash related problem. But after install and enabled both ad and ad_flash modul, i'cant see the flash format anywhere. When I try to enable the image or HTML ads, they normaly apear and I can select them. I've done everthing mentioned by both readme files, dovnloaded the sample scipts etc.
Its this problem related to the fact that ad_flash modul is not wel maintained at this time (last dev from April 2009), and there were some big changes in the ad modul, co they ar no more compatible?

Thanks for answer.

Comments

bushman’s picture

Same problem here. I can select all types, but Flash isNOT selectable by pull down menu. GIFs, TExts and HTML works fine, but can't upload flash adver.

Alex Andrascu’s picture

You're probably missing something in the installation process. Check the modules installation (readme and dependecies) and try again. ad_flash is well maintained now and as a maintainer i can't replicate this issue. Also i can confirm that ad_flash and Advertisment are fully working.

bushman’s picture

I have chacked instalation many times on 2 computers. There is warning like this:

warning: Parameter 2 to ad_flash_adapi() expected to be a reference, value given in /srv/www/htdocs/includes/module.inc on line 483.

It is this code in my modules.inc

  foreach (module_implements($hook) as $module) {
    $function = $module .'_'. $hook;
    $result = call_user_func_array($function, $args);
    if (isset($result) && is_array($result)) {
      $return = array_merge_recursive($return, $result);
    }

Exactly: $result DO problem for ad_flash().

In my Drupal instalation 6.16 i have an ad_flash 6.x-2.4, Advertisement 6.x-2.2 modules versions. All modules activated, but still same problem.

When trying to create new Advertisement, menu Add flash desn't appear. :( Probably, because, bad function call...
Any hint?

bushman’s picture

The problem IS version of PHP. 5.2 is fine with absolutely no problem, 5.3 is the problem.
ad_flash is running now.

Thanks

rafinskipg’s picture

Hi,

Is there any way to make it work in php 5.3??

I can't select ad_flash too.

zbombicz’s picture

subscribing

Molot’s picture

Kinda solution:
Change $result = call_user_func_array($function, $args); to $result = call_user_func_array($function, &$args);
In PHP 5\.[0-2] parameters was passed by reference by default. It seems they changed it in 5.3, to the way it worked in 4 -dunno why.
I mean, they are still passed by reference if hte function definition says it's reference, but that works only when calling function directly.

Anyway, one with great patience might sit and read comments on http://php.net/manual/en/language.references.pass.php - they seems to provide a handful of solutions.

span’s picture

john franklin’s picture

Status: Active » Closed (duplicate)