PDA

View Full Version : Stupid mistake, help needed


melaniejk
03-24-2006, 08:24 PM
Hi.
I did something stupid. I wanted to change a banner on the bottom of the home page. So, I viewd source and deleted the old banner code and put in the new. I saved it as index.php and uploaded it. Duh. I should have used footer.tpl , right?

Well, now my home page doesn't work. It looks fine, but when you click on the category links it doesn't change the page. The url in the address bar changes but you see the same homepage look.

Can someone tell me the easiest way to fix this?

Do I have to reinstall the whole script?

{broken url removed}


Thank you.
Melanie

bobby9101
03-24-2006, 08:59 PM
please post the index.php and the .htaccess codes

Optimit
03-24-2006, 11:43 PM
Restore from backup..lol

melaniejk
04-03-2006, 11:54 PM
I saved over the backup file on the pc and then uploaded it.
I know, I know.... stupid thing to do.

Now, if I purchase the new version of the Directory and upload it..
Will that fix the problem I'm having automatically? Will the links go to the category pages?

Thank you.

Optimit
04-04-2006, 12:00 AM
Whoa fella. Hold up!! LOL

As Bobby posted, you should post your code, and maybe someone here can help you. It is probably something really simple. As long as your database is intact, you are still good.

As far as phpLD, there is no reason you should have to purchase it again, just to re-upload it to the same site. Dont you have your original download?

Give us a chance to help, before you start from scratch.

melaniejk
04-04-2006, 12:48 AM
Hi. Ok, here are the codes..


index.php

{older unneeded code removed}
-----------------------------------------------------------------

Went to FTP program and click on .htaccess and clicked on View.
The following was in that file...

.htaccess

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* index.php [QSA,L]

------------------------------

Optimit
04-04-2006, 01:05 AM
OK, that index.php is actually supposed to be your header.

I recommend getting a new copy of index.php, and uploading it.

If you dont have it, let me know what version of phpLD, and PM me an email address, and I'll send you a new one.

melaniejk
04-04-2006, 01:10 AM
Hi.
Yes, I will need a copy of the index.php file then.
Thank you. I must have renamed the file wrong when I edited it or something.

Version 2.0



Thank you so much for your help.

Optimit
04-04-2006, 01:21 AM
OK, I will email you a new copy. Now delet your email address from the thread, or you will end up with lots of spam from it.

melaniejk
04-04-2006, 03:04 AM
I uploaded that new index.php file and I got the following error message.
So, then I put back the old one I had up.

Any suggestion about what could be causing the error?

Fatal error: Call to a member function on a non-object in /home/berkspa/public_html/dnagenealogyprojects/index.php on line 162


Thank you.

Best wishes,
Melanie

Optimit
04-04-2006, 03:06 AM
No idea what would cause that. Obviously there are more problems than just an altered index page.

version 2.0 is a free download. Just re-upload the entire script, and run the install again. You will lose any of your mods and designs, but as long as you leave you database intact, you wont lose any data.