Loading...
 
Development

Development


Removing a bad module

posts: 1

Hello all. While trying to implement a Google Adsense module (http://tikiwiki.org/tiki-index.php?page=Module%20Adsense), I noticed it wasn't working and ended up hosing my entire tikiwiki. Here's how I did it - I'm looking for advice as to how to fix.

I created the mod-adsense.php and mod-adsense.tpl files and put them in the right place. I noticed on the instructions that they refer to this code:


Instead of using the drop-down, I created a custom user module and made it appear on the left side of all pages. I then stupidly pasted that code in to the area of this custom user module where it accepts code. Guess what happens now? Tikiwiki goes BOOM and you can't access ANY pages - admin or not. Every single page is shown as blank and when you view/source you just see this:

<div id="Google Ads" style="display:block;">


I can't find anything telling me how to manually delete a buggy module at the command line or via direct DB query. Since this is the dev forum, I thought one of you might know. How do I delete this module if all web access to the wiki has been disabled? Also, perhaps logic should be added to the module processing routines to prevent other people from similarly hosing their tikiwiki.

Thanks in advance!

-Robert

posts: 2881 United Kingdom

Enter your phpMyAdmin or whatever you use to look and tweak your Database with.

Goto the tiki_modules table and zap the adsense one.

Then goto the Tiki site, and Admin menu -> Modules and remove it from there.

Enjoy!

Damian
http://tikihost.net