Guest Posted October 1, 2008 Posted October 1, 2008 I sincerely hope someone can help me, in the process of trying to install a contribution that would tweak my attributes, I have killed my website. I followed the instructions step by step and now i can not access my site and i have the following message:- Warning: require(includes/classes/navigation_history.php) [function.require]: failed to open stream: No such file or directory in /home/mysakab1/public_html/mysakab/admin/includes/application_top.php on line 127 Warning: require(includes/classes/navigation_history.php) [function.require]: failed to open stream: No such file or directory in /home/mysakab1/public_html/mysakab/admin/includes/application_top.php on line 127 Fatal error: require() [function.require]: Failed opening required 'includes/classes/navigation_history.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mysakab1/public_html/mysakab/admin/includes/application_top.php on line 127 I backed up my website prior to attempting this but now i don't know how to restore my site from the backup. I am at my wits end because i don't know how to fix this. Please someone must know what i have done and how to fix it. hopefully thank you in asvance.
FIMBLE Posted October 1, 2008 Posted October 1, 2008 Hello Look at the files you changed then upload from your back up one at a time, this will tell you where you went wrong, it might be that this contribution is an old one and not usable on your version Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
Guest Posted October 1, 2008 Posted October 1, 2008 Ok i have gotten rid of the first lot of error messages now i i have the following one Fatal error: Cannot redeclare do_magic_quotes_gpc() (previously declared in /home/mysakab1/public_html/mysakab/admin/includes/functions/compatibility.php:18) in /home/mysakab1/public_html/mysakab/admin/includes/functions/compatibility.php on line 30 I have tried fixing it the same as before but that hasn't worked. any suggestions please.
louquito Posted October 1, 2008 Posted October 1, 2008 i got the solution for that one just go on file compability.php and comment like this //// // Recursively handle magic_quotes_gpc turned off. // This is due to the possibility of have an array in // $HTTP_xxx_VARS // Ie, products attributes //function do_magic_quotes_gpc(&$ar) { // if (!is_array($ar)) return false; //reset($ar); // while (list($key, $value) = each($ar)) { // if (is_array($ar[$key])) { // do_magic_quotes_gpc($ar[$key]); // } else { // $ar[$key] = addslashes($value); // } // } // reset($ar); // } it will work
Guest Posted October 1, 2008 Posted October 1, 2008 what does 'comment like this' mean. I tried finding the section and copying and pasteing in the section you gave me but that didn't work. any other suggestions thanks
FIMBLE Posted October 1, 2008 Posted October 1, 2008 Comment means putting // at the begining Though before commenting it all out Check the reset($ar); is actually there, if not try adding it first. It depends which version you use. Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
Guest Posted October 1, 2008 Posted October 1, 2008 Now i have this error... Parse error: syntax error, unexpected T_STRING in /home/mysakab1/public_html/mysakab/includes/application_top.php on line 76 // initialize the logger class require(DIR_WS_CLASSES . 'logger.php'includes/classes/logger.php(include_path=.:/usr/lib/php:/usr/local/lib/php' (include_path='.:/usr/lib/php:/usr/local/lib/php'); This is the lines that i think are the problem. thanks
Guest Posted October 1, 2008 Posted October 1, 2008 Now i have this error... Parse error: syntax error, unexpected T_STRING in /home/mysakab1/public_html/mysakab/includes/application_top.php on line 76 // initialize the logger class require(DIR_WS_CLASSES . 'logger.php'includes/classes/logger.php (include_path=.:/usr/lib/php:/usr/local/lib/php' (include_path='.:/usr/lib/php:/usr/local/lib/php'); This is the lines that i think are the problem. thanks
FIMBLE Posted October 1, 2008 Posted October 1, 2008 I dont recognise that line. Which version are you running? Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
♥Vger Posted October 1, 2008 Posted October 1, 2008 I backed up my website prior to attempting this but now i don't know how to restore my site from the backup If by 'backup' you mean that you created a backup of the database under Tools --> Backups in osC Admin then that only covers the database and not files. If you downloaded a backup of the files by FTP before you started this then all you have to do is to upload them back to the correct location to resolve the problem. Vger
FIMBLE Posted October 1, 2008 Posted October 1, 2008 That call should be in ADMIN / includes / application_top.php You error says it is in CATALOG / includes / application_top.php You sure you have the correct file in place? Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
Guest Posted October 2, 2008 Posted October 2, 2008 Thankyou all very much I have fixed the problem, and i am learn more and more everyday in repect to backing up and ftp. all i can say is thank godness for smart people in these forms. Cheers Christine
Recommended Posts
Archived
This topic is now archived and is closed to further replies.