Loading...
 
Skip to main content

Features / Usability


Help! I just broke my website!

posts: 37

I can't access my website anymore. Neither can any of my users. Please help me!

Let me tell you what I did to screw up my site. I was making a new module for my site. I did this by copying and pasting some javascript that I found on the internet (at http://www.google.com/relatedlinks/ to be exact) into the "Create New Module" text box on the "Admin Modules" page. There must have been some bad programming in that javascript, because now whenever I try to access my website I get a blank page.

So I guess what I am asking is how, using ftp, can I delete or unassign the new module I have created?

Thanks a lot in advance. This is really important to me.

posts: 27
If you have an offline version of your tiki just copy - depending on the kind of changes you made - either the scripts that have been changed or the MySQL dump of your local database to your online version.

posts: 4672 Japan

> So I guess what I am asking is how, using ftp, can I delete or unassign the new module I have created?

Method 1: The bad module can be turned off if you can access your Tiki's database with phpMyAdmin. Go to the tiki_modules table and find the row that's the one with the javascript that you added, and delete it.

Or

Method 2: Download these two files: tiki_p.tpl and tiki-admin_modules_p.php. Upload tiki_p.tpl to your templates/ directory, and upload tiki-admin_modules_p.php to your root directory (in other words, the .php file goes with your other Tiki .php files, and the .tpl file goes with your other .tpl files). Then go the the address www.yourdomain/tiki-admin_modules_p.php. That will load your Admin Modules page without the side columns, so the bad module won't prevent the page from loading. You can then delete the module from the list of active modules. (There's no login form on tiki-admin_modules_p.php, though, so if you aren't logged into your site, you can try to log in at tiki-login.php — but this page also might not load due to the killer module. If that's the case, I hope Method 1 will work for you. Otherwise post again and I'll make a side-columns-free login page.

-- Gary - zukakakina.com

posts: 37

> Otherwise post again and I'll make a side-columns-free login page.
> — Gary - zukakakina.com

Gary, I am really sorry to have to bother you again. You have already been extremely helpful to me. Unfortunately, I tried very hard to understand Method 1 (but I couldn't), so Method 2 was my only option. I tried logging in at tiki-login.php, but that didn't work either.

Could you please make a side-columns-free login page for me?

Thank you so much Gary! You are very kind.

posts: 4672 Japan

> ... Unfortunately, I tried very hard to understand Method 1 (but I couldn't),

phpMyAdmin is a separate script/program that might already be installed at your server. If it isn't, it should be (can be uploaded and installed much like Tikiwiki is). It is for accessing your MySQL databases directly with your web browser. phpMyAdmin is definitely something to get familiar with for operations such as this.

> so Method 2 was my only option. I tried logging in at tiki-login.php, but that didn't work either.
>
> Could you please make a side-columns-free login page for me?

OK, get tiki_p.tpl again as it now also has a couple of links to make things easier, and get tiki-login_p.php. Upload (ftp) tiki_p.tpl to the templates directory again (over-write the previous one), and upload tiki-login_p.php to the root directory. Go to tiki-login_p.php with your browser to log in; when the page refreshes after the log-in, click the Modules Admin (no side columns) link to go to the columnless Admin Modules page where you can delete the bad module from the active list. There's a Home link at the page top to get you back to your normal Tiki display.

Well, this happens to people from time to time, so it's good to have these files on hand.

-- Gary - themes.tw.o

posts: 37
Gary, you have been so helpful. My website is now up and running. I can never thank you enough!
posts: 8 United States

> phpMyAdmin is a separate script/program that might already be installed at your server. If it isn't, it should be (can be uploaded and installed much like Tikiwiki is). It is for accessing your MySQL databases directly with your web browser. phpMyAdmin is definitely something to get familiar with for operations such as this.



I had a similar problem. I had created a User Module and set it to display for all users in the right column. It contained bad code that resulted in "Fatal error: Smarty error: in evaluated template line 1: syntax error: unrecognized tag: tiki-admin_modules.php (Smarty_Compiler.class.php, line 436) in /home/closingp/public_html/tiki/lib/smarty/libs/Smarty.class.php on line 1088".

I couldn't log in, I couldn't view a page raw, or anything.

I am new to PHP and pretty new to Tikiwiki, but I had no problem finding phpmyadmin in my webhost control panel under the SQL tab. A few screens later and I was looking at the "tiki_modules" table. The last record in the table was the new module.

I was a little worried because my problem code did not show up in the table. After a little reflection and a little encouragement at the IRC channel, I pressed the delete button for that line.

It instantly solved the problem. There was no need to flush the cache or anything.

Bill White

posts: 6

> Method 2: Download these two files: tiki_p.tpl

The link to tiki_p.tpl is just returning a blank file.

posts: 4672 Japan

> > Method 2: Download these two files: tiki_p.tpl
>
> The link to tiki_p.tpl is just returning a blank file.

Yeah, that's weird; seems to me it used to work OK. But you can go to the gallery and "right-click/save as" on the file's link, and it'll download and can be saved as .tpl file.

-- Gary


posts: 17

I have the same problem and the method listed here did not work.

I can't login because the page is blank and the source code reads,



Where can I find that module (or the homepage's "call" of it) in the tiki file tree?

Thank you.


> I can't access my website anymore. Neither can any of my users. Please help me!
>
> Let me tell you what I did to screw up my site. I was making a new module for my site. I did this by copying and pasting some javascript that I found on the internet (at http://www.google.com/relatedlinks/ to be exact) into the "Create New Module" text box on the "Admin Modules" page. There must have been some bad programming in that javascript, because now whenever I try to access my website I get a blank page.
>
> So I guess what I am asking is how, using ftp, can I delete or unassign the new module I have created?
>
> Thanks a lot in advance. This is really important to me.
>
>

posts: 17

The source code reads,

div id="ModuleName" style="display:block;"





> I have the same problem and the method listed here did not work.
>
> I can't login because the page is blank and the source code reads,
>
>
>
> Where can I find that module (or the homepage's "call" of it) in the tiki file tree?
>
> Thank you.
>
>
> > I can't access my website anymore. Neither can any of my users. Please help me!
> >
> > Let me tell you what I did to screw up my site. I was making a new module for my site. I did this by copying and pasting some javascript that I found on the internet (at http://www.google.com/relatedlinks/ to be exact) into the "Create New Module" text box on the "Admin Modules" page. There must have been some bad programming in that javascript, because now whenever I try to access my website I get a blank page.
> >
> > So I guess what I am asking is how, using ftp, can I delete or unassign the new module I have created?
> >
> > Thanks a lot in advance. This is really important to me.
> >
> >

posts: 4672 Japan

> I have the same problem and the method listed here did not work.

Do you mean you tried to use phpMyAdmin to delete the module in the tiki modules table? Or did you upload the side-columns-free Admin Modules page files? What exactly didn't work?

> I can't login because the page is blank and the source code reads,
>
>
>
> Where can I find that module (or the homepage's "call" of it) in the tiki file tree?

Modules made by users on the Admin Modules page aren't in the file tree; they're in the database, so no file deletion will help. The index page loads whatever is listed in the modules table.

-- Gary - zukakakina.com

posts: 17

Gary,

I tried your later version of Method 2 (column-free) and it did not work. However, I've since had more time and tried your Method 1 (phpMyAdmin) and it worked fine.

Thank you.

> > I have the same problem and the method listed here did not work.
>
> Do you mean you tried to use phpMyAdmin to delete the module in the tiki modules table? Or did you upload the side-columns-free Admin Modules page files? What exactly didn't work?
>
> > I can't login because the page is blank and the source code reads,
> >
> >
> >
> > Where can I find that module (or the homepage's "call" of it) in the tiki file tree?
>
> Modules made by users on the Admin Modules page aren't in the file tree; they're in the database, so no file deletion will help. The index page loads whatever is listed in the modules table.
>
> — Gary - zukakakina.com

posts: 4672 Japan

> Gary,
>
> I tried your later version of Method 2 (column-free) and it did not work. However, I've since had more time and tried your Method 1 (phpMyAdmin) and it worked fine.

I'm glad it worked but wonder what went wrong with the first method, which I figured was fairly bulletproof.

-- Gary - Tiki mooShow

posts: 17

FYI:

I loaded

domain/tiki-login_p.php

and

domain/templates/tiki_p.tpl

The webpage was still blank and the source code still read ONLY,

div id="ModuleName" style="display:block;"

and NOTHING else.







> > Gary,
> >
> > I tried your later version of Method 2 (column-free) and it did not work. However, I've since had more time and tried your Method 1 (phpMyAdmin) and it worked fine.
>
> I'm glad it worked but wonder what went wrong with the first method, which I figured was fairly bulletproof.
>
> — Gary - Tiki mooShow