MyBB Community Forums

Full Version: Errors after upgrade.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi,
Have just upgraded my forum fron 1.6.6 to 1.6.9 and am now getting error(s) when using the Search function. The search appears to work initially, but when you click on one of the threads you get the following:

Warning [2] preg_replace(): Compilation failed: unknown option bit(s) set at offset 0 - Line: 1119 - File: inc/class_parser.php PHP 5.4.6--pl0-gentoo (Linux)

Does anyone have any idea how to fix this please.
Do you have any custom BB Codes you added?
No, I don't think so. Huh
Did you upload the changed file package or the full package?
Full package.
Ah. If you use the full package you can get some errors if you were to use file verification you will see that it comes up with a long list of files coloured in red.
This is what I get when I run File Verificatiom.

File Verification: Found Problems
File Status
inc/languages/english/global.lang.php Changed
install/images/bullet.gif Missing
install/images/content_bg.gif Missing
install/images/error_bg.gif Missing
install/images/h2-admin.gif Missing
install/images/h2-config.gif Missing
install/images/h2-createtables.gif Missing
install/images/h2-dbconfig.gif Missing
install/images/h2-finish.gif Missing
install/images/h2-license.gif Missing
install/images/h2-requirements.gif Missing
install/images/h2-tablepopulate.gif Missing
install/images/h2-theme.gif Missing
install/images/h2-welcome.gif Missing
install/images/index.html Missing
install/images/submit_bg.gif Missing
install/images/tcat_bg.gif Missing
install/images/thead_bg.gif Missing
install/index.php Missing
install/resources/adminoptions.xml Missing
install/resources/adminviews.xml Missing
install/resources/index.html Missing
install/resources/language.lang.php Missing
install/resources/mybb_theme.xml Missing
install/resources/mysql_db_inserts.php Missing
install/resources/mysql_db_tables.php Missing
install/resources/output.php Missing
install/resources/pgsql_db_tables.php Missing
install/resources/settings.xml Missing
install/resources/sqlite_db_tables.php Missing
install/resources/tasks.xml Missing
install/resources/upgrade1.php Missing
install/resources/upgrade10.php Missing
install/resources/upgrade11.php Missing
install/resources/upgrade12.php Missing
install/resources/upgrade13.php Missing
install/resources/upgrade14.php Missing
install/resources/upgrade15.php Missing
install/resources/upgrade16.php Missing
install/resources/upgrade17.php Missing
install/resources/upgrade18.php Missing
install/resources/upgrade19.php Missing
install/resources/upgrade2.php Missing
install/resources/upgrade20.php Missing
install/resources/upgrade21.php Missing
install/resources/upgrade22.php Missing
install/resources/upgrade23.php Missing
install/resources/upgrade24.php Missing
install/resources/upgrade25.php Missing
install/resources/upgrade3.php Missing
install/resources/upgrade4.php Missing
install/resources/upgrade5.php Missing
install/resources/upgrade6.php Missing
install/resources/upgrade7.php Missing
install/resources/upgrade8.php Missing
install/resources/upgrade9.php Missing
install/resources/usergroups.xml Missing
install/stylesheet.css Missing
install/upgrade.php Missing

I know what the changes to Global.lang.php are and assume that the other files are only used for upgrade/installation as they are in the install directory (which I have deleted)
Ah that's fine i thought there would be a few more files. Yes as you say the ones beginning with install are pointless. I don't know why the devs don't make it so that they don't show up.
(2013-01-01, 10:50 AM)JordanMussi Wrote: [ -> ]Ah that's fine i thought there would be a few more files. Yes as you say the ones beginning with install are pointless. I don't know why the devs don't make it so that they don't show up.

They're still core files. The point of the verification is to tell you exactly what core files are missing or have been modified. It's also helpful for checking to make sure all the checksums are correct.

OP, can you open inc/class_parser.php and give the exact line of code where it's failing? That'll help track down where exactly we should be looking to fix it. Smile
The line of code in red is the line it fails on.

/**
* Highlights a string
*
* @param string The message to be highligted
* @param string The highlight keywords
* @return string The message with highlight bbcodes
*/
function highlight_message($message, $highlight)
{
if(empty($this->highlight_cache))
{
$this->highlight_cache = build_highlight_array($highlight);
}

if(is_array($this->highlight_cache) && !empty($this->highlight_cache))
{
$message = preg_replace(array_keys($this->highlight_cache), $this->highlight_cache, $message);
}

return $message;
}
Pages: 1 2