Fatal error: Call to undefined function tablesort_sql()

12 replies [Last post]
iseethesun
Offline
Joined: 10/13/2011
Status: 
Answered

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

Leighton Whiting
Offline
Joined: 06/02/2009
Thanks for letting me know,

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

-Leighton

cristina
Offline
Joined: 10/27/2011
Fatal error: Call to undefined function tablesort_sql()

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

 

 

Leighton Whiting
Offline
Joined: 06/02/2009
Cristina,   Thanks for

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

cristina
Offline
Joined: 10/27/2011
almost there.. I uploaded the

almost there.. I uploaded the 4.1, updated, flushed, add an ad, saved then got this error:

 

 

  • Notice: Undefined property: stdClass::$filepath in ms_ads_get_ad_html() (line 171 of/................./sites/all/modules/ms_affiliates/ms_ads/ms_ads.module).
  • Recoverable fatal error: Argument 2 passed to token_replace() must be an array, string given, called in /home/......................sites/all/modules/ms_affiliates/ms_ads/ms_ads.module on line 206 and defined in token_replace() (line 79 of/home/..................../i/includes/token.inc).
  •  
Leighton Whiting
Offline
Joined: 06/02/2009
Thanks for reporting those as

Thanks for reporting those as well. Can you try the dev version released just now and see if it fixes those issues?

 

-Leighton

cristina
Offline
Joined: 10/27/2011
I believe it is fixed. Just

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.

 

Leighton Whiting
Offline
Joined: 06/02/2009
Hmmm, it was supposed to be

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

cristina
Offline
Joined: 10/27/2011
uploaded the new dev and

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 --> 

 

 

AttachmentSize
aff admin dash.PNG 20.02 KB
Leighton Whiting
Offline
Joined: 06/02/2009
Looking at the code it looks

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

cristina
Offline
Joined: 10/27/2011
I unistalled ms-affiliate,

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. 

AttachmentSize
affi-user dashboard.PNG 12.99 KB
aff admin dash.PNG 20.02 KB
Leighton Whiting
Offline
Joined: 06/02/2009
The Preview images were

The Preview images were working for me. I think this is an issue with caching. It looks like this problem is fixed.

 

-Leighton

cristina
Offline
Joined: 10/27/2011
This problem is fixed in IE9

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!

Twitter Feed