Posted on: 01/18/15 08:52am
By: gtgillis
I administer three different sites all running GL 2.1.0. When I installed Bad-Behavior 2.2.16 on the first one all worked as expected. When I tried installing it on the other two sites I get a blank screen as soon as I add the line to Bad-Behavior lib-common.php.
Any ideas?
Re: Bad-Behavior 2.2.16 Blank Screen
Posted on: 02/01/15 09:38am
By: Anonymous (matrox66)
I have the same Probleme, i think there are some Problems with the Directorys.
Re: Bad-Behavior 2.2.16 Blank Screen
Posted on: 02/01/15 11:41am
By: Laugh
Weird....
Is there anything in the error log? If not it sounds like you are being blocked by the BB plugin.
Re: Bad-Behavior 2.2.16 Blank Screen
Posted on: 02/01/15 02:23pm
By: gtgillis
There is nothing in the error.log
I tracked it down to the bb2_install function in bad-behavior-geeklog.php. The function checks to see if bb2_installed with a value of 1 is in the gl_vars table. If not it calls bb2_db_query to presumably create the gl_bad_behavior2 table then insert bb2_installed with a value of 1 in gl_vars. The only problem is that there is no function named bb2_table_structure in the install package so it hangs. It looks like this function used to be in core.inc.php but it not in 2.2.16
If I manually create the gl_bad_behavior2 table and insert bb2_installed in the vars table it appears to run fine.I am letting it run now to see if it catches anything.
Text Formatted Code
function bb2_install() {
$settings = bb2_read_settings();
if( $settings['is_installed'] == false ) {
bb2_db_query(bb2_table_structure($settings['log_table']));
$settings['is_installed'] = true;
bb2_write_settings( $settings );
}
}
Re: Bad-Behavior 2.2.16 Blank Screen
Posted on: 02/02/15 06:56am
By: remy
The function bb2_table_structure moved to bad-behavior-mysql.php. This file is missing (and not included) in the bb2 plugin.
As long as you are upgrading, you're fine, since the table did not change, though there is a second function that creates log file entries (and probably missing too?):
Text Formatted Code
note: cannot show the code since a server error pops up persistently
function bb2_table_structure($name)
// Insert a new record
function bb2_insert($settings, $package, $key)
Re: Bad-Behavior 2.2.16 Blank Screen
Posted on: 02/02/15 07:42am
By: gtgillis
I am getting log entries on both sites where I manually created the table so everything appears to work now.
Function bb2_insert is located in bad-behavior-geeklog.php.
Re: Bad-Behavior 2.2.16 Blank Screen
Posted on: 02/02/15 10:44am
By: Laugh
If someone has the time can we get it fixed and repackaged and uploaded to Geeklog.net. Once that is done I will remove the other version.
Tom