Jump to content

Was Hacked, reinstall problem


SeanShepardWI

Recommended Posts

errors:

 

Warning: adminheader(/home/ethos/public_html/whmcs/libs/Smarty.class.php) [function.adminheader]: failed to open stream: No such file or directory in /home/ethos/public_html/whmcs/includes/adminfunctions.php on line 0

 

Warning: adminheader() [function.include]: Failed opening '/home/ethos/public_html/whmcs/libs/Smarty.class.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/ethos/public_html/whmcs/includes/adminfunctions.php on line 0

 

Fatal error: Class 'Smarty' not found in /home/ethos/public_html/whmcs/includes/adminfunctions.php on line 0

 

when i try to view admin page

 

client page doesnt work either

 

 

my reinstall consisted of me re uploading all whmcs files, creating new mysql database, and running install.php

Link to comment
Share on other sites

[19-Apr-2009 05:47:16] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/ethos/public_html/whmcs/configuration.php:1) in /home/ethos/public_html/whmcs/dbconnect.php on line 0 [19-Apr-2009 05:47:16] PHP Warning: initialiseclientarea(/home/ethos/public_html/whmcs/libs/Smarty.class.php) [function.initialiseclientarea]: failed to open stream: No such file or directory in /home/ethos/public_html/whmcs/includes/clientareafunctions.php on line 0 [19-Apr-2009 05:47:16] PHP Warning: initialiseclientarea() [function.include]: Failed opening '/home/ethos/public_html/whmcs/libs/Smarty.class.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/ethos/public_html/whmcs/includes/clientareafunctions.php on line 0 [19-Apr-2009 05:47:16] PHP Fatal error: Class 'Smarty' not found in /home/ethos/public_html/whmcs/includes/clientareafunctions.php on line 0 [19-Apr-2009 05:56:24] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/ethos/public_html/whmcs/configuration.php:1) in /home/ethos/public_html/whmcs/dbconnect.php on line 0 [19-Apr-2009 05:56:24] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/ethos/public_html/whmcs/configuration.php:1) in /home/ethos/public_html/whmcs/link.php on line 0 [19-Apr-2009 05:56:24] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/ethos/public_html/whmcs/configuration.php:1) in /home/ethos/public_html/whmcs/link.php on line 0 [19-Apr-2009 06:01:10] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/ethos/public_html/whmcs/configuration.php:1) in /home/ethos/public_html/whmcs/dbconnect.php on line 0 [19-Apr-2009 06:01:10] PHP Warning: initialiseclientarea(/home/ethos/public_html/whmcs/libs/Smarty.class.php) [function.initialiseclientarea]: failed to open stream: No such file or directory in /home/ethos/public_html/whmcs/includes/clientareafunctions.php on line 0 [19-Apr-2009 06:01:10] PHP Warning: initialiseclientarea() [function.include]: Failed opening '/home/ethos/public_html/whmcs/libs/Smarty.class.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/ethos/public_html/whmcs/includes/clientareafunctions.php on line 0 [19-Apr-2009 06:01:10] PHP Fatal error: Class 'Smarty' not found in /home/ethos/public_html/whmcs/includes/clientareafunctions.php on line 0 [19-Apr-2009 06:14:32] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/ethos/public_html/whmcs/configuration.php:1) in /home/ethos/public_html/whmcs/dbconnect.php on line 0 [19-Apr-2009 06:14:32] PHP Warning: initialiseclientarea(/home/ethos/public_html/whmcs/libs/Smarty.class.php) [function.initialiseclientarea]: failed to open stream: No such file or directory in /home/ethos/public_html/whmcs/includes/clientareafunctions.php on line 0 [19-Apr-2009 06:14:32] PHP Warning: initialiseclientarea() [function.include]: Failed opening '/home/ethos/public_html/whmcs/libs/Smarty.class.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/ethos/public_html/whmcs/includes/clientareafunctions.php on line 0 [19-Apr-2009 06:14:32] PHP Fatal error: Class 'Smarty' not found in /home/ethos/public_html/whmcs/includes/clientareafunctions.php on line 0

 

 

^^^errorlog post

 

The filenames and directory definitely exist.

Link to comment
Share on other sites

Through fiddling, those errors are now gone. I'm left with:

 

Warning: Cannot modify header information - headers already sent by (output started at /home/ethos/public_html/whmcs/configuration.php:1) in /home/ethos/public_html/whmcs/dbconnect.php on lin

 

Fatal error: Smarty error: the $compile_dir 'templates/ethos/' does not exist, or is not a directory. in /home/ethos/public_html/whmcs/libs/Smarty.class.php on line 1095

 

templates/ethos does exist, btw

Link to comment
Share on other sites

Warning: Cannot modify header information - headers already sent by (output started at /home/ethos/public_html/whmcs/configuration.php:1) in /home/ethos/public_html/whmcs/dbconnect.php on line 0

 

Warning: Cannot modify header information - headers already sent by (output started at /home/ethos/public_html/whmcs/configuration.php:1) in /home/ethos/public_html/whmcs/admin/configgeneral.php on line 0

 

are my main problem now

Link to comment
Share on other sites

Check what happens when you switch to the Default and Portal templates. If there are no errors, try overwriting your ethos theme with replacement files.

 

As you have been hacked, also run a virus scan in cPanel as a precautionary measure.

 

And, the obvious one, address how you got hacked in the first place! Weak password? That's most likely. Use a minimum of 24 digit random for everything.

 

Open and examine /dbconnect.php and /configgeneral.php Check what is in your database relative to these errors and correct any anomalies.

Edited by redrat
Link to comment
Share on other sites

After doing the standard re-install, have you edited any files?

 

Yes, to fix these errors. I didn't go around fooling with too much, though.

 

Warning: Cannot modify header information - headers already sent by (output started at /home/ethos/public_html/whmcs/configuration.php:1) in /home/ethos/public_html/whmcs/dbconnect.php on line 0

 

Cache cleared, and 2 browsers

Link to comment
Share on other sites

Ain't that always the case! Murphy's Law. Which ever direction you approach the telephone box from the door's always on the other side.

 

Well, hopefully, support will help you overcome this quickly and in time to get some benefit from your campaign. Best wishes.

Link to comment
Share on other sites

Check the file its complaining about for any extra space after the end of the last line. I've seen that error caused by that. What are you using to edit these?
You probably know about this anyway but Notepad++ is awesome and almost makes the tea for you as well. Otherwise, just Notepad is best.
Link to comment
Share on other sites

Were you providing me that information (you quoted me)? I have a number of editors here, including that one (and UEstudio, NoteTab, Editplus and more). ;)

 

BTW, regular MS Notepad is not "the best". I have had occasions where it introduced line break errors, corrupted files and it can't handle large files at all. Your experience may vary, but I don't trust it at all any longer.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated