— coRpSE wroteOkay, try this, make a backup of what you have now and download the attached file and give this a try. I just modified the one you sent with a pretty original function.
— coRpSE wroteOkay, can you open up your mainfile.php file and send me 5 lines before and after that line that was throwing out that error.
— lasermail wrote— coRpSE wroteOkay, can you open up your mainfile.php file and send me 5 lines before and after that line that was throwing out that error.// Include the required files@require_once(NUKE_DB_DIR.'db.php');//$db->debug = true;// Include Error Logger and identify class@require_once(NUKE_CLASSES_DIR.'class.identify.php');global $agent;$agent = identify::identify_agent();@require_once(NUKE_INCLUDE_DIR.'log.php');if (ini_get('output_buffering') && !isset($agent['bot'])) { ob_end_clean(); header('Content-Encoding: none');}
PHP: [ Select all ]
global $agent;$agent = identify::identify_agent();
global $agent;$identify = new identify();$agent = $identify->identify_agent();
global $prefix, $db, $name, $board_config, $userinfo;
global $prefix, $db, $name, $board_config, $userinfo, $identify;
— lasermail wroteI tried that next step edit you suggested and not unexpected HTTP 500 this time with ....PHP Warning: preg_replace_callback(): Requires argument 2, 'Array', to be a valid callback in /home/xxxxx/public_html/includes/classes/class.identify.php on line 182PHP Parse error: syntax error, unexpected '->' (T_OBJECT_OPERATOR) in /home/c426886/public_html/header.php on line 147So I think it best we halt the piecemeal edits. I could be one more edit away, or dozens? I will do a series of backups and then install again using the version you provide. I have created some blocks, modules and numerous forum icons and images, it should be simple enough to backup, install again and recover where needed at least I assume that is the best way to use proven files over corrupt? Thanks for giving this some of your time.
— coRpSE wroteBut overall, Only things you need to upload is the folder includes, and maybe admin. Then the files you would want to upload from your root is the header.php, footer.php, mainfile.php, admin.php and index.php. So, ot make it more simple, just make a backup of your site, replace those files/folder(s).Your files aren't corrupt, just, they coding is either old, or poorly updated.
output generated using printer-friendly topic mod. All times are GMT - 7 Hours