Fatal error: Call to undefined function tablesort_sql() in /home/tritiumd/public_html/ebookshop/sites/all/modules/ms_affiliates/ms_ads/ms_ads.module on line 305
when click on "affiliate ads" under "Moneyscript" tab
Fatal error: Call to undefined function tablesort_sql() in /home/tritiumd/public_html/ebookshop/sites/all/modules/ms_affiliates/ms_ads/ms_ads.module on line 305
when click on "affiliate ads" under "Moneyscript" tab
Hi there
Just installed MS core/affiliates and I am getting fatal errors. Please, could you help me?
Fatal error: Call to undefined function tablesort_sql() in /home/content/.........................sites/all/modules/ms_affiliates/ms_ads/ms_ads.module on line 305
drupal 7.9
MS.core 7.x-2.1
affiliates suite 7.x-4.0
then I installed the affiliates suite 7.x-4.x-dev version and I am able to see the affiliate ads tab, however when I try to add and ad I get the the notice errors:
Notice: Undefined variable: edit in ms_ads_ad_form() (line 387 of /home/content/........................./sites/all/modules/ms_affiliates/ms_ads/ms_ads.module).Notice: Undefined variable: edit in ms_ads_ad_form() (line 394 of /home/content/........................./sites/all/modules/ms_affiliates/ms_ads/ms_ads.module).Notice: Undefined variable: edit in ms_ads_ad_form() (line 400 of /home/content/........................./sites/all/modules/ms_affiliates/ms_ads/ms_ads.module).Notice: Undefined variable: edit in ms_ads_ad_form() (line 416 of /home/content/........................./sites/all/modules/ms_affiliates/ms_ads/ms_ads.module).Notice: Undefined variable: edit in ms_ads_ad_form() (line 428 of /home/content/........................./sites/all/modules/ms_affiliates/ms_ads/ms_ads.module).Notice: Undefined variable: edit in ms_ads_ad_form() (line 436 of /home/content/........................./sites/all/modules/ms_affiliates/ms_ads/ms_ads.module).Notice: Undefined variable: edit in ms_ads_ad_form() (line 444 of /home/content/........................./sites/all/modules/ms_affiliates/ms_ads/ms_ads.module).Notice: Undefined variable: edit in ms_ads_ad_form() (line 468 of /home/content/........................./sites/all/modules/ms_affiliates/ms_ads/ms_ads.module).Notice: Undefined variable: edit in ms_ads_ad_form() (line 476 of /home/content/........................./sites/all/modules/ms_affiliates/ms_ads/ms_ads.module).Notice: Undefined variable: edit in ms_ads_ad_form() (line 484 of /home/content/........................./sites/all/modules/ms_affiliates/ms_ads/ms_ads.module).Notice: Undefined variable: edit in ms_ads_ad_form() (line 507 of /home/content/........................./sites/all/modules/ms_affiliates/ms_ads/ms_ads.module).Notice: Undefined variable: edit in ms_ads_ad_form() (line 516 of /home/content/........................./sites/all/modules/ms_affiliates/ms_ads/ms_ads.module).Notice: Undefined variable: edit in ms_ads_ad_form() (line 543 of /home/content/........................./sites/all/modules/ms_affiliates/ms_ads/ms_ads.module).Notice: Undefined index: ad_id in ms_ads_ad_form_submit() (line 571 of /home/content/........................./sites/all/modules/ms_affiliates/ms_ads/ms_ads.module).
When I save the AD I get this fatal error:
Fatal error: Call to undefined function file_directory_path() in /home/content/...................sites/all/modules/ms_affiliates/ms_ads/ms_ads.module on line695
Cristina,
Thanks for reporting these. I just released a new version that should fix these issues. Let me know if it does.
Sincerely,
Leighton Whiting
almost there.. I uploaded the 4.1, updated, flushed, add an ad, saved then got this error:
Thanks for reporting those as well. Can you try the dev version released just now and see if it fixes those issues?
-Leighton
I believe it is fixed. Just need some cosmetic in the link code area (see screenshoot). Could you make the code link area bigger? Is there a way for a image preview too?
Thabks for this great module and customer support.
Hmmm, it was supposed to be showing an image if you uploaded an image file. Can you try the latest dev version again? Just added a new fix.
Also, could you post the source code of the preview area so I can see what it looks like in the html code?
-Leighton
uploaded the new dev and added one more banner image. see screenshot.
code:
<!-- Begin Ad Code --><div id='ms_ad_placeholder_1'><div class='ms_ad_container' style='font-size:12;position:relative;border:0;width:468px;min-height:60px;color:#000000;background-color:#ffffff;'><div class='ms_ad_file_container'><a href='http://mydomain.com/af/admin'><img src='http://mydomain.com/sites/default/files/ms_ads/affiliate-468x60.png' style='border:0;width:468px;' /></a></div><div style='position:absolute;z-index:999;cursor:pointer;top:0;left:0;height:60px;width:468px;border:0;' onclick="window.location = 'http://mydomain.com/af/admin';"></div></div></div><script type='text/javascript' src='http://mydomain.com/ms_ads/serve/1/1'></script><!-- End Ad Code -->
| Attachment | Size |
|---|---|
| aff admin dash.PNG | 20.02 KB |
Looking at the code it looks like it should be showing the image preview? Is this not the case? The screenshot just shows a white square...
-Leighton
I unistalled ms-affiliate, cleaned caches, runned cron, updated.... installed again the dev version and 3 images that I uploaded are not showing neither in affi dashboard nor in admin ads tab. What else can I do ? I really need this module to work.
| Attachment | Size |
|---|---|
| affi-user dashboard.PNG | 12.99 KB |
| aff admin dash.PNG | 20.02 KB |
The Preview images were working for me. I think this is an issue with caching. It looks like this problem is fixed.
-Leighton
This problem is fixed in IE9 and Firefox. I was using google chrome as my default browser and the images do not display there.
Thanks for your assistance!

Thanks for letting me know, this is now fixed and will be in the next release.
-Leighton