Googlebot & Spiders

Started by Omar Bazavilvazo, June 06, 2005, 06:17:35 PM

Previous topic - Next topic

Zorac

Quote from: keith021773 on January 24, 2006, 01:23:34 AM
Hello all..  Please,  please, please help me.   I installed googlebot and after it installed with no errors, I clicked on Features and Options in my admin panel and this is what I get:

Fatal error: Cannot redeclare modifygooglebotsettings() (previously declared in /home/daddypla/public_html/forums/Sources/ModSettings.php:390) in /home/daddypla/public_html/forums/Sources/ModSettings.php on line 441


I am running SMF 1.1 RC2 and I tried to install googlebot_v105_smfrc2_standard.      Thanks in advance..

it sounds like you installed it twice?

Zorac

Quote from: Polymath on January 24, 2006, 03:37:38 AM
Yep. Someone may post the other 2 parts of the file that needs to be inserted into modsettings.php.

edit: sorry, I have no idea and am waiting too. ???

open up the xml file in a text editor, even if you have a very basic grasp of html or some similar language you should be able to put yoru way threw it...

just remember in xml the search strings are kinda backwards, when you see search position="before" it means that the search string is before, and add your text immediatly after...

keep in mind, the search strings wont be the same as are what in your file, otherwise it would of installed in the first place...  :P

keith021773

Quote from: Zorac on January 24, 2006, 02:38:15 PM

it sounds like you installed it twice?

Actually, I installed.  It didn't work, then I uninstalled.  and installed again and that is where I am at now..   Hopefully I will get an answer here because I would love to get this working.

Keith

Zorac

Quote from: keith021773 on January 24, 2006, 04:34:38 PM
Quote from: Zorac on January 24, 2006, 02:38:15 PM

it sounds like you installed it twice?

Actually, I installed.  It didn't work, then I uninstalled.  and installed again and that is where I am at now..   Hopefully I will get an answer here because I would love to get this working.

Keith

do you have any other mods installed? youll have to manually edit the ModSettings.php file to manually remove the duplicate entries, sound like its just the one...  go to the bottom and youll fine a function called modifygooglebotsettings(), and if you look up a bit, youll probably see it again, remove one of the two functions in its entirety (include all the code between the { and } that follows it, both function should be delinated from the other code with // begin googlebot code (which is right above the first line of the function) and a // end googlebot code (right after the last line of the function)

do this and hten hope nothing else is duplicated...

Polymath

There is still 3 bits of code that needs to be put into the modsettings.php file.  When you apply it, it 'test fails' for the modsettings.

Thats what I understand anyhow. But I have know idea what code to put in but one piece. And thats using googlebot_v105_smfrc2_standard in smf RC 2.
* I don't suffer from insanity; I enjoy every minute of it. *
F.I.G.J.A.M

keith021773

Quote from: Zorac on January 24, 2006, 08:58:28 PM
Quote from: keith021773 on January 24, 2006, 04:34:38 PM
Quote from: Zorac on January 24, 2006, 02:38:15 PM

it sounds like you installed it twice?

Actually, I installed.  It didn't work, then I uninstalled.  and installed again and that is where I am at now..   Hopefully I will get an answer here because I would love to get this working.

Keith

do you have any other mods installed? youll have to manually edit the ModSettings.php file to manually remove the duplicate entries, sound like its just the one...  go to the bottom and youll fine a function called modifygooglebotsettings(), and if you look up a bit, youll probably see it again, remove one of the two functions in its entirety (include all the code between the { and } that follows it, both function should be delinated from the other code with // begin googlebot code (which is right above the first line of the function) and a // end googlebot code (right after the last line of the function)

do this and hten hope nothing else is duplicated...

Ok..   Did exactly as you said.   It was in there 3 times.  deleted 2 of them..   Now when I go to Features and Options I get this error.

Fatal error: Cannot redeclare modifygooglebotsettings() (previously declared in /home/daddypla/public_html/forums/Sources/ModSettings.php:387) in /home/daddypla/public_html/forums/Sources/ModSettings.php on line 438

Thank you for your help.  I do appreciate it.

Polymath

You could uninstall all packages, reupload the modsettings.php file for your forum program, and then reinstall your packages.

Maybe ???  Sounds like something I would do. But my sites just begun. Fix once and for all... any comments on if that is an option for  keith021773?
* I don't suffer from insanity; I enjoy every minute of it. *
F.I.G.J.A.M

keith021773

#427
Quote from: Polymath on January 24, 2006, 11:56:07 PM
You could uninstall all packages, reupload the modsettings.php file for your forum program, and then reinstall your packages.

Maybe ???  Sounds like something I would do. But my sites just begun. Fix once and for all... any comments on if that is an option for  keith021773?

Well.  I got the features and option list working again by deleting all the double posts about googlebots in the modsettings.php file.   I'm gonna try and install it again then if I have to reedit the file again to see if I can get it to work.    I'll post back what happens.

*EDIT*   ok..   That worked.   Polymath.   What I did was I installed Googlebot and it messed up the Features and Option list, so I editted the file modsettings.php and I did a search for every instance of googlebot and there were at least 3 different places where it was in there twice.  So, I looked at the entire part of each instance.   Each instance of it will start with //Insert Googlebot (or something like that).  Delete them but leave one instance of each part in there..  Does that make sense?   I'm not a very good teacher..   Then save and go back to your admin and try to go back into Features and Option List..      Hope this helps.   :)


Polymath

 ;D Yeah I know what you mean. It helps.  3-2=1 :P
* I don't suffer from insanity; I enjoy every minute of it. *
F.I.G.J.A.M

keith021773

Tell me if it works for you.

Polymath

Nope don't work for me. I have no instances of googlebot code in it. Thats my problem its not installing at all. I need to know what 3 parts I need it put into my modsettings.php.  Can you post them?
* I don't suffer from insanity; I enjoy every minute of it. *
F.I.G.J.A.M

Charles LePage

Quote from: Tech o.O; on January 28, 2006, 07:11:47 AM
Awesome!

Would we lose our current installed mods when we upgrade?

My Googlebot mod uninstalled when I upgraded to 1.06, and when I tried to reinstall it, it said:

Install Actions for archive Googlebot_v104_smf1.0.x-1.1b2.zip:
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

desistyle

even i am having same problem can someone fix this please :((

Polymath

I've had it since I got 1.1rc. But Then I havn't had it installed before.

* I don't suffer from insanity; I enjoy every minute of it. *
F.I.G.J.A.M

Daniel15

Quote from: Charles LePage on January 28, 2006, 08:45:57 PM
Quote from: Tech o.O; on January 28, 2006, 07:11:47 AM
Awesome!

Would we lose our current installed mods when we upgrade?

My Googlebot mod uninstalled when I upgraded to 1.06, and when I tried to reinstall it, it said:

Install Actions for archive Googlebot_v104_smf1.0.x-1.1b2.zip:
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.


Here's a fixed ZIP file: http://users.tpg.com.au/dan15/smfmods/Googlebot_v104_smf1.0.6.zip
NOTE: I didn't make this MOD, I'm just hosting this fixed version of it.
Could someone please host this elsewhere. Or, could a moderator or someone attach the file to the first post?
Daniel15, former Customisation team member, resigned due to lack of time. I still love everyone here :D.
Go to smfshop.com for SMFshop support, do NOT email or PM me!

Charles LePage

Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    ./Sources/BoardIndex.php    Success
2.    Execute Modification    ./Sources/ManagePermissions.php    Success
3.    Execute Modification    ./Sources/ModSettings.php    Success
4.    Execute Modification    ./Sources/Subs.php    Success
5.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Success
6.    Execute Modification    ./Themes/default/BoardIndex.template.php    Success
7.    Execute Modification    SSI.php    Failure
8.    Execute Code    install.php

Zorac

it will work fine with an ssi install failure (as long as the others are all good as youve shown), you just loose the ssi functionallity aspect of it, but if your not calling ssi anywhere in the rest of your site to show the users online, that doesnt matter...

Zorac

as a recap:

http://miniunit.com/media/uploads/googlebot_v104_smf1.0.6.zip
googlebot for smf 1.0.6, original code modified by daniel15


and

http://miniunit.com/media/uploads/googlebot_v105_smfrc2_standard.zip
googlebot for smf 1.1rc2, original code modifed by Zorac
added functionality includes insertion to all 3 themes that come with rc2 as well as english and greek languages

and of course, remember that all orginal code was done by Omar Bazavilvazo

desistyle

hi it shows this when i try to install on smf 1.06


Install Actions for archive googlebot_v104_smf1.0.6.zip:
Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    ./Sources/BoardIndex.php    Success
2.    Execute Modification    ./Sources/ManagePermissions.php    Success
3.    Execute Modification    ./Sources/ModSettings.php    Success
4.    Execute Modification    ./Sources/Subs.php    Success
5.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Success
6.    Execute Modification    ./Themes/default/BoardIndex.template.php    Success
7.    Execute Modification    SSI.php    Failure           <<<<<<<<<<<<<<<<<<<<<<<<<<<<<
8.    Execute Code    install.php    

unExpected

Quotehttp://miniunit.com/media/uploads/googlebot_v105_smfrc2_standard.zip
googlebot for smf 1.1rc2, original code modifed by Zorac
Error in SMF 1.1 RC 2

Quote1. Execute Modification ./Sources/BoardIndex.php Test successful
2. Execute Modification ./Sources/ManagePermissions.php Test successful
3. Execute Modification ./Sources/ModSettings.php Test failed
4. Execute Modification ./Sources/Subs.php Test failed
5. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
6. Execute Modification ./Themes/default/BoardIndex.template.php Test successful
7. Execute Modification ./SSI.php Test successful
8. Execute Modification ./Themes/classic/BoardIndex.template.php Test successful
9. Execute Modification ./Themes/babylon/BoardIndex.template.php Test successful
10. Execute Code install.php
Newbie :)

Advertisement: