— coRpSE wroteOkay, did you modify this file or did you download this from somewhere?
— coRpSE wroteWell, it looks like that was edited for PHP7, but not correctly. What version of PHP are you using on your site? If your running PHP 5.6, then I would grab a new class.identify.php from the download and add that to your site. If your on PHP7, then I will get you a working file.
— 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.
— coRpSE wroteokay.
— coRpSE wroteOkay, here is an update. His site has been solved. I don't know if previously he was running a older version of the CMS, or added some bad files from a "update" patch, but they were wrong. He installed fresh files from a new download and it worked, except for his admin which turned out to be some bad links placed into the "Modules Block EDIT", (for the navigation he was using). I removed those links and everything worked fine. I did suggest to him to use Sommaire which is what is used on this site instead, and it is preinstalled with the CMS so it's worth using. Link to the tutorial is here:Please login to see this linkGet registered or Log in
output generated using printer-friendly topic mod. All times are GMT - 7 Hours