Accidentally Deleted header.inc.php Trying to Solve Edit Profiles Prob

Trying to solve this:

http://www.boonex.com/forums/#topic/Several-BUGS-in-EDIT-Profile--2011-09-19.htm

I accidentally deleted header.inc.php. How can I recover this file, please??

It gets better and better...!

Quote · 21 Sep 2011

if you do not have a backup, tsk tsk, then a method of recovery, would be to backup what you have there now, 

move the compressed files out of public_html, clear out public_html, or if you have knowledge and access to ssh

*NOTE* if you had Dolphin-v.7.0.7.zip in your public_html directory, you can move it  out of the public_html dir path

mv Dolphin-v.7.0.7.zip ../ (this will move into home path)

from /home/AccountName dir ( you should be able to see your public_html dir)

tar czvf cur_doi.tar.gz public_html (this will tar up public_html, file will be created in /home/accountName)

*NOTE* as a safety measure, you can also ftp this compressed file down to your local drive.

now to clear public_html

from /home/AccountName 

rm -rf public_html/*

that will forcibly remove all files in the public_html directory

now if you have moved Dolphin-v.7.0.7.zip you can now move it back into public_html dir

from /home/AccountName (presuming this is where Dolphin-v.7.0.7.zip is located) 

mv Dolphin-v.7.0.7.zip /home/AccountName/public_html

cd public_html

unzip Dolphin-v.7.0.7.zip

(this will extract the files again)

create a mysql database

now you can run the installer via your browser

header.inc.php has been created. now pull the header.inc.php file

copy it save it, put it in a safe deposit box

ok now all that headache, you get to delete it now. 

so back to ssh (if you wish to preserve Dolphin-v.7.0.7.zip you can mv  Dolphin-v.7.0.7.zip ../ )

/home/AccountName 

rm -rf public_html/*

this cleans out the public_html directory again

now we get our original dolphin files to move back into public_html

from /home/AccountName

mv cur_doi.tar.gz  /home/AccountName/public_html

this should move the tar file into public_html

now to unpack it

tar xzvf cur_dol.tar.gz

this should unpack public_html which is inside /home/AccountName/public_html

cd public_html

mv * ../

then you may need to mv .htaccess ../

ok now the header.inc.php file you saved, upload that to the inc dir of your current dolphin install

change the database connection string dump the cache

this should set you straight. 

and always make a backup before you do anything off the hook, like deleting the main controlling file. 

guess there should have been a javascript pop up asking if you sure you wanted to delete the primary file of the site. 

now why didnt boonex think about that. how come boonex didnt protect you from deleting that file? (pun @ somebody on here)

When a GIG is not enough --> Terabyte Dolphin Technical Support - Server Management and Support
Quote · 21 Sep 2011

Thank you very much for your response. Let me sort through the instructions and see if I accomplish this without another blunder.

Quote · 22 Sep 2011

I'm just wondering, how did you manage to delete /inc/header.inc.php in the first place?

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 22 Sep 2011

What would be the procedure for using the autoinstaller and then reuploading my css. I want to save the database..i have a local copy of the rest of the files.

Quote · 22 Sep 2011

 

What would be the procedure for using the autoinstaller and then reuploading my css. I want to save the database..i have a local copy of the rest of the files.

You should do what DosDawg recommended and back everything up into a different directory, and then perform a new installation. You should also backup the database.

 

You can apply any templates, mods, etc. after the installation is completed. You can also replace the new database with the previous one, which should have been backed up. If you used a different database for the new installation, you can just change the database information in /inc/header.inc.php to use the old one.

 

You can probably also just copy the new /inc/header.inc.php to the old installation and move that back into place (after deleting the new installation).

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 22 Sep 2011

That makes sense..i'll create a new directory, auto install into that and move the new file to the old directory. I deleted it on FTP. Thanks, guys, I really appreciate it.

Quote · 22 Sep 2011

 yeah of course i didnt even consider the auto-installer option on this one. 

That makes sense..i'll create a new directory, auto install into that and move the new file to the old directory. I deleted it on FTP. Thanks, guys, I really appreciate it.

 i think the auto-installer, where it is ok if you already have a working knowledge of how things are installed, but i also believe it handicaps those who have no experience, and experience is what you need to obtain. installing dolphin is a lesson, and a lesson needed to have a grasp on how it all works and comes together. using an auto-installer deprives you of that knowledge. 

When a GIG is not enough --> Terabyte Dolphin Technical Support - Server Management and Support
Quote · 22 Sep 2011

Ok, guys, so I successfully installed a fresh copy into a new directory, retrieved the file, dumped the cache, changed the database information and replaced it, yielding the following error:

Fatal error: Call to a member function getParam() on a non-object in /home/xxxxx/public_html/xxxxx//inc/db.inc.php on line 83

What am I missing, please?

 

 

Quote · 23 Sep 2011

There's one line in the header that is the absolute path to the script. I think maybe if you installed it in a sub directory you will have to edit that line.. look for a line that has something like:

/home/youraccount/public_html/subdir/

and change it to:

/home/youraccount/public_html/

 

See if that fixes it.

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 23 Sep 2011

Thanks, that's the $dir['root'] parameter, yeah? I already changed it to the correct subdirectory. 

I also changed:

$site['url']   

$db['user'] 

$db['db']

Quote · 23 Sep 2011

luca, is the site still not working? i didnt hear back from you after i sent the video, nor did i see where you accepted the invite to dropbox to pick up the video? 

When a GIG is not enough --> Terabyte Dolphin Technical Support - Server Management and Support
Quote · 23 Sep 2011

I would like to thank DosDawg for his time and effort in helping me resolve this problem. He's an immense resource to this community and I would recommend that that everyone check out the hosting services at:

http://www.terabyte-hosting.com


Thanks again to everyone else for the great advice.

Quote · 23 Sep 2011
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.