Closed (duplicate)
Project:
Advertisement
Version:
6.x-2.2
Component:
ad module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Dec 2009 at 16:18 UTC
Updated:
23 Mar 2011 at 22:56 UTC
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
Comment #1
bushman commentedSame 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.
Comment #2
Alex Andrascu commentedYou'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.
Comment #3
bushman commentedI 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
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?
Comment #4
bushman commentedThe problem IS version of PHP. 5.2 is fine with absolutely no problem, 5.3 is the problem.
ad_flash is running now.
Thanks
Comment #5
rafinskipg commentedHi,
Is there any way to make it work in php 5.3??
I can't select ad_flash too.
Comment #6
zbombicz commentedsubscribing
Comment #7
Molot commentedKinda 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.
Comment #8
span commentedHere is the issue in ad_flash queue:
#821270: warning: Parameter 2 to ad_flash_adapi() expected to be a reference (php 5.3 compatibility)
Comment #9
john franklin commented