Call to undefined function ad_link_attributes() in /sites/all/modules/ad/text/ad_text.module on line 58
Upgraded to latest version of Drupal 6.26 and Ad-module 6.x-2.4 (even tried 6.x-3-dev), but after update I have some major problems with getting the Ads to work.
I try to enable Image Ads, I get this error. I cannot update.php or even flush the cache
Fatal error: Call to undefined function ad_link_attributes
I tried and uninstalled the module and did a full clean up with no luck. Is there a solution?
Thanks in advance for any hints or clues.
/ J
Comments
Comment #1
inforco commentedSame problem:
drupal 6.26
ad-6.x-2.4 / ad-6.x-3.x-dev
after update.php:
Fatal error: Call to undefined function ad_link_attributes() in /modules/ad/image/ad_image.module on line 31
on the ste:
• warning: Invalid argument supplied for foreach() in /modules/views/plugins/views_plugin_query_default.inc on line 924.
• warning: Invalid argument supplied for foreach() in /modules/views/plugins/views_plugin_query_default.inc on line 1000.
• warning: Invalid argument supplied for foreach() in /modules/views/plugins/views_plugin_query_default.inc on line 924.
• user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM node node WHERE (node.status = 1) AND (node.type in ('rotor_item')) ) ' at line 2 query: SELECT COUNT(*) FROM (SELECT FROM node node WHERE (node.status = 1) AND (node.type in ('rotor_item')) ) count_alias in /modules/views/plugins/views_plugin_pager.inc on line 141.
• user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM node node WHERE (node.status = 1) AND (node.type in ('rotor_item')) L' at line 2 query: SELECT FROM node node WHERE (node.status = 1) AND (node.type in ('rotor_item')) LIMIT 0, 10 in /modules/views/plugins/views_plugin_query_default.inc on line 1150.
Comment #2
green_eye55 commentedSubmit! Same problem.
drupal 6.27
ad-6.x-2.4
I tried to upgrade to ad-6.x-3.x-dev. Running update.php results in an error:
Fatal error: Call to undefined function ad_link_attributes() in /sites/all/modules/ad/image/ad_image.module on line 31
After that I tried to run cron.php and got the following error:
Fatal error: Call to undefined function ad_noindex_meta() in /sites/all/modules/ad/ad.module on line 920
Comment #3
fizk commentedThis patch should fix it. Remember to enable the ad_client module!
Comment #4
MrKippel commentedad_noindex_meta() should be changed to ad_client_noindex_meta() too.
It's at line 920 in ad.module.
Comment #4.0
MrKippel commentedClean up with code-tags
Comment #5
lrwebks commentedDrupal 6 is EOL and no longer supported. Closing this as outdated for that reason. Thanks for your contribution!