I unclick the previous release-date of 5.x-1.x-dev advertisment module, then I go to "uninstall" to completely uninstall it, then I get this:

"Fatal error: Call to undefined function: variable_delete() in /home/normann/public_html/community/sites/all/modules/ad/ad.install on line 247"

Then I just install the latest version advertisement module that came out today, then I get these errors as soon as I enable all the advertisement modules (Ad, file cache, embed, image, notify, remote, report, tax, weight percentage) :

* user warning: Unknown table 'ad_clicks' query: DROP TABLE ad_clicks in /home/normann/public_html/community/includes/database.mysql.inc on line 172.
* user warning: Unknown table 'ad_hosts' query: DROP TABLE ad_hosts in /home/normann/public_html/community/includes/database.mysql.inc on line 172.
* user warning: Unknown table 'ad_owners' query: DROP TABLE ad_owners in /home/normann/public_html/community/includes/database.mysql.inc on line 172.
* user warning: Unknown table 'ad_permissions' query: DROP TABLE ad_permissions in /home/normann/public_html/community/includes/database.mysql.inc on line 172.
* user warning: Unknown table 'ad_statistics' query: DROP TABLE ad_statistics in /home/normann/public_html/community/includes/database.mysql.inc on line 172.
* user warning: Unknown table 'ads' query: DROP TABLE ads in /home/normann/public_html/community/includes/database.mysql.inc on line 172.

I have no clue what's going on. How to fix this?

Comments

jeremy’s picture

Assigned: Unassigned » jeremy
Status: Active » Fixed

I was calling variable_delete() which doesn't exist. Fixed by calling the actual function, variable_del().

I thought there was another issue reporting this bug too, but I can't seem to find it now.

(BTW: It looks like you should be able to install the module now without problems, if that's what you wish to do. If you're just trying to clean up, you'll need the latest version of ad.install, install then uninstall the module.)

kilimanjaro’s picture

I just activated the latest module and these error pops up:

* user warning: Table 'normann_communitydrupal.ads' doesn't exist query: SELECT * FROM ads WHERE aid = 2 in /home/normann/public_html/community/includes/database.mysql.inc on line 172.
* user warning: Table 'normann_communitydrupal.ads' doesn't exist query: SELECT * FROM ads WHERE aid = 105 in /home/normann/public_html/community/includes/database.mysql.inc on line 172.
* user warning: Table 'normann_communitydrupal.ads' doesn't exist query: SELECT * FROM ads WHERE aid = 102 in /home/normann/public_html/community/includes/database.mysql.inc on line 172.

I haven't even touched the "update.php" yet. They are there as soon as I activate it.

BTW, do I just copy and paste "call variable_del(), not variable_delete()" line into ad.install, specifically at the bottom line of the file? Sorry, I'm a newbie when it comes to cvs and patching...

jeremy’s picture

Status: Fixed » Postponed (maintainer needs more info)

As you've been having troubles, try now doing a complete uninstall then install the module again. After doing that, do you still see the errors?

kilimanjaro’s picture

Actually, the error starts from the complete uninstall process. When I choose the complete "uninstall" on Ad module, it gives out the error:

""Fatal error: Call to undefined function: variable_delete() in /home/normann/public_html/community/sites/all/modules/ad/ad.install on line 247""

The rest of the problems seems to start from that error.

jeremy’s picture

I thought you manually fixed the call to variable_delete?

Your best bet is to download the latest development version of the module and try again.

kilimanjaro’s picture

Oops, i didn't realize the latest version is out. :P

Now it works!! I just enabled the new version, then disable them, then completely uninstall them all and it works!!! :D

Thanks !!!! I really appreciate it! :D

jeremy’s picture

Status: Postponed (maintainer needs more info) » Fixed

I'm glad it's working for you. Updating issue status.

Anonymous’s picture

Status: Fixed » Closed (fixed)