| 0.8.1 warning: unmatched closing parenthesis [message #7905] |
Sat, 28 February 2026 09:02  |
 |
ocv
Messages: 2 Registered: February 2026 Location: Säter, Sweden
|
|
|
|
I get a few errors/warnings with the latest version of bbclone.
This is one: Quote:Warning: preg_match(): Compilation failed: unmatched closing parenthesis at offset 23 in /../bbclone/lib/new_connect.php on line 78
I found that there are a ")" that may be out of place in /lib/os.php
In this block starting on line 172:
"digital" => array(
"icon" => "digital",
"title" => "Digital",
"rule" => array(
"OSF[0-9][ ]?V(4[0-9.]{1,10})" => "\\1",
"OSF[0-9][ ][a-z]{1,10})" => "",
"OSF1" => ""
),
"uri" => ""
),
This line: "OSF[0-9][ ][a-z]{1,10})" => "", I highlighted the parantheses in red.
THen I have all these warnings on the configuration page. Why do I get those? The values are set to the standard values in the config file.
Warning: Undefined array key "config_BBC_MAXBROWSER" in /.../bbclone/lib/html.php on line 144
Warning: Undefined array key "config_BBC_MAXEXTENSION" in /.../bbclone/lib/html.php on line 144
Warning: Undefined array key "config_BBC_MAXOS" in /.../bbclone/lib/html.php on line 144
Warning: Undefined array key "config_BBC_MAXROBOT" in /.../bbclone/lib/html.php on line 144
Warning: Undefined array key "config_BBC_MAXHOST" in /.../bbclone/lib/html.php on line 144
Warning: Undefined array key "config_BBC_MAXKEY" in /.../bbclone/lib/html.php on line 144
Warning: Undefined array key "config_BBC_MAXORIGIN" in /.../bbclone/lib/html.php on line 144
Warning: Undefined array key "config_BBC_MAXPAGE" in /.../bbclone/lib/html.php on line 144
Warning: Undefined array key "config_BBC_GZ" in /.../bbclone/lib/html.php on line 144
Warning: Undefined array key "config_BBC_WHOIS" in /.../bbclone/lib/html.php on line 144
|
|
|
|
| Re: 0.8.1 warning: unmatched closing parenthesis [message #7906 is a reply to message #7905] |
Sat, 28 February 2026 11:20   |
|
|
Thanks for the information
<?php "digital" => array(
"icon" => "digital",
"title" => "Digital",
"rule" => array(
"OSF[0-9][ ]?V(4[0-9.]{1,10})" => "\\1",
// "OSF[0-9][ ][a-z]{1,10})" => "", // bug, missing (
"OSF[0-9][ ]([a-z]{1,10})" => "",
"OSF1" => ""
),
"uri" => ""
), ?>
|
|
|
|
|
|
| Re: 0.8.1 warning: unmatched closing parenthesis [message #7908 is a reply to message #7905] |
Sat, 28 February 2026 12:38   |
|
|
Warning: Undefined array key "config_" html.php on line 144
Problem in html.php
<?php function show_config($varname, $booleanflag = 0) {
global $translation, $$varname;
// Ensure variable exists in $translation array
$explanation = isset($translation["config_$varname"]) ? $translation["config_$varname"] : 'No explanation available';
// Get the value of the variable or default to 'No'
$value = !empty($$varname) ? ($booleanflag == 1 ? $translation['global_yes'] : $$varname) : $translation['global_no'];
return "<tr class=\"morethan_row hover_white\">\n"
. "<td align=\"left\" class=\"config-cell\">\n"
. "<b>" . htmlspecialchars($varname) . "</b>\n"
. "</td>\n"
. "<td align=\"left\" class=\"config-cell text-wrap\">\n"
. htmlspecialchars($explanation) . "\n"
. "</td>\n"
. "<td align=\"left\" class=\"config-cell\">\n"
. "<b>" . htmlspecialchars($value) . "</b>\n"
. "</td></tr>\n";
} ?>
We will test it.
Thanks
|
|
|
|
Re: 0.8.1 warning: unmatched closing parenthesis [message #7909 is a reply to message #7907] |
Sat, 28 February 2026 20:55  |
 |
ocv
Messages: 2 Registered: February 2026 Location: Säter, Sweden
|
|
|
|
Jo wrote on Sat, 28 February 2026 11:49Warning: Undefined array key "config_" html.php on line 144
Is the language file sv.php the problem?
Yes it is the swedish language file.
The code in the previous post seems to work.
|
|
|
|