Installed czuserinfo_v5_universal and Lost My Website

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Installed czuserinfo_v5_universal and Lost My Website
Incognito
CZ Super Newbie
Incognito has been a member for over 18 year's 18 Year Member
Gender: Male
Status: Offline
Joined: Jun 09, 2005
0.00 posts per day
Posts: 34
Points: 1,092
   
All was going fine and then I decided to install czuserinfo_v5_universal. Acted upon all the instructions given in INSTALL.TXT file.

Ran czuser.php and it ask me to find this text in the mainfile.php:

function online() { global $user, $cookie, $prefix, $db; cookiedecode($user); $ip = $_SERVER["REMOTE_ADDR"]; $uname = $cookie[1]; if (!isset($uname)) { $uname = "$ip"; $guest = 1; } $past = time()-3600; $db->sql_query("DELETE FROM ".$prefix."_session WHERE time < '$past'"); $result = $db->sql_query("SELECT time FROM ".$prefix."_session WHERE uname='$uname'"); $ctime = time(); if ($row = $db->sql_fetchrow($result)) { $db->sql_query("UPDATE ".$prefix."_session SET uname='$uname', time='$ctime', host_addr='$ip', guest='$guest' WHERE uname='$uname'"); } else { $db->sql_query("INSERT INTO ".$prefix."_session (uname, time, host_addr, guest) VALUES ('$uname', '$ctime', '$ip', '$guest')"); } }

And replace it with this:

function online() { global $user, $cookie, $prefix, $db, $name; cookiedecode($user); $ip = $_SERVER['REMOTE_ADDR']; $url = $_SERVER['REQUEST_URI']; $uname = $cookie[1]; if (!isset($uname)) { $uname = "$ip"; $guest = 1; } $past = time()-1800; $db->sql_query("DELETE FROM ".$prefix."_session WHERE time < '$past'"); $result = $db->sql_query("SELECT time FROM ".$prefix."_session WHERE uname='$uname'"); $ctime = time(); $custom_title = addslashes($name); $url = ereg_replace("&", "&", $url); if ($uname!="") { $uname = substr("$uname", 0,25); if ($row = $db->sql_fetchrow($result)) { $db->sql_query("UPDATE ".$prefix."_session SET uname='$uname', time='$ctime', host_addr='$ip', guest='$guest', module='$custom_title', url='$url' WHERE uname='$uname'"); } else { $db->sql_query("INSERT INTO ".$prefix."_session (uname, time, host_addr, guest, module, url) VALUES ('$uname', '$ctime', '$ip', '$guest', '$custom_title', '$url')"); } } }

I did just that and then checked my website... it's gone.
[ Register or login to view links on this board. ]

I uploaded the old mainfile.php again, but even that didn't help.

What mistake did I make, chose a wrong block?

And what can I do now to get my site back?



Back to top Reply with quote
#2   re: Installed czuserinfo_v5_universal and Lost My Website
webshark
PayPal Donation
CZ Moderator
 Codezwiz Site Donator
webshark has been a member for over 20 year's 20 Year Member
turkey.gif
Age: 55
Gender: Male
Website:
Status: Offline
Joined: Mar 23, 2004
0.09 posts per day
Posts: 643
Points: 57,200
   
hello

what i would try to use czuser.php to destall block tables and check if site back if not i would upload my old files ( which i back up before go) and then install block again


if still not works check your config.php if has this line
$display_errors:false

if yes change false with true and go your site now you ll see the error lines on ure index.php and if you paste it here pplz may have an idea




_________________
[ Register or login to view links on this board.]
Back to top Reply with quote
#3   
Incognito
CZ Super Newbie
Incognito has been a member for over 18 year's 18 Year Member
Gender: Male
Status: Offline
Joined: Jun 09, 2005
0.00 posts per day
Posts: 34
Points: 1,092
   
Thanks a lot for your reply.

I have checked the index.php file and didn't find "$display_errors:false".

What should I do now?



Back to top Reply with quote
#4   re: Installed czuserinfo_v5_universal and Lost My Website
webshark
PayPal Donation
CZ Moderator
 Codezwiz Site Donator
webshark has been a member for over 20 year's 20 Year Member
turkey.gif
Age: 55
Gender: Male
Website:
Status: Offline
Joined: Mar 23, 2004
0.09 posts per day
Posts: 643
Points: 57,200
   
plz read careful icon_smile.gif i said check config.php not index.php

that will say where is the error instead showing blank page




_________________
[ Register or login to view links on this board.]
Back to top Reply with quote
#5   
Incognito
CZ Super Newbie
Incognito has been a member for over 18 year's 18 Year Member
Gender: Male
Status: Offline
Joined: Jun 09, 2005
0.00 posts per day
Posts: 34
Points: 1,092
   
Oops!!! Sorry, I did check config.php, but typed index.html (I think the problem is taking its toll on my mind now) icon_smile.gif

Again I checked the config.php file and the text is not there.

I uploaded the mainfile.php again and this time it gives me the following message:

Fatal error: Call to a member function on a non-object in /home/apni/public_html/music/index.php on line 20



Back to top Reply with quote
#6   
WeigelRich
CZ Active Member
WeigelRich has been a member for over 18 year's 18 Year Member
usa.gif pennsylvania.gif
Occupation: Safety Specialist
Age: 44
Gender: Male
Website:
Status: Offline
Joined: Jul 06, 2005
0.02 posts per day
Posts: 123
Points: 4,498
 Yahoo Messenger MSN Messenger 
Line 20 should be your global $prefix, $db, $admin_file; for your index file. Hopefully you have a back up. Replace you index.php file and see if that brings it back.

Also on what some1 was saying. If you put in your text editor depending on what you use. You should be able to open config.php and put in "$display_errors:false" and find it. Change it to true will give you the complete error report. It should.

Hope this helps.




_________________
Back to top Reply with quote
#7   
Incognito
CZ Super Newbie
Incognito has been a member for over 18 year's 18 Year Member
Gender: Male
Status: Offline
Joined: Jun 09, 2005
0.00 posts per day
Posts: 34
Points: 1,092
   
Unfortunately I didn't backup any file but mainfile.php icon_sad.gif

Acted upon your advice, but result is the same.

Now I am creating the site once again icon_sad.gif

Thanks a lot for your help. Really appreciate (Hug)



Back to top Reply with quote
#8   
WeigelRich
CZ Active Member
WeigelRich has been a member for over 18 year's 18 Year Member
usa.gif pennsylvania.gif
Occupation: Safety Specialist
Age: 44
Gender: Male
Website:
Status: Offline
Joined: Jul 06, 2005
0.02 posts per day
Posts: 123
Points: 4,498
 Yahoo Messenger MSN Messenger 
OK.... Just Remember this. At anytime that you are moding, adding something it is always wise to back those files up that have to be edited.. At the since that something goes wrong you have the back up files to restore you site with. YW and have a great day.




_________________
Back to top Reply with quote
#9   re: Installed czuserinfo_v5_universal and Lost My Website
Kabilos
CZ Newbie
Kabilos has been a member for over 18 year's 18 Year Member
Gender: Male
Status: Offline
Joined: Jan 06, 2006
0.00 posts per day
Posts: 4
Points: 358
   
It took me a few minutes but I figured out what was wrong with mine. I hope this helps also


I kept recieving an error

Cannot Parse something .. error on line 518 or 519 It seems when I removed the block from the mainfile.php it did not remove a } bracket. There was an extra and caused the whole thing to stop responding. Opened up Dreamweaver 8 looked at the code and saw the bracket, removed it and the site came back up. Had it not been for this post here stating look in the mainfile.php and whatnot .. im not sure I could have saved my website.

Thank you so much.

- Daniel



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum