Since some time, my picture galleries failed. I use NextGEN gallery since a long time and relly love it.
After searching a bit deeper, I found that all data in the dB was OK as well as the picture files in the folders.
So I wrote to the plugin creator in this forum: https://wordpress.org/support/topic/all ... ?replies=2
He suggested to disactivate all plugins and reactivate one by one. And that is how I found out that the 'WordPress w3all phpBB integration' plugin gives this problem.
It makes the NextGEN gallery show no galleries, albums or pictures.
Can you please get in touch with NextGEN and have a look at this problem?
Resolved -> Conflict with NextGEN gallery plugin
-
- User w
- Posts: 19
- Joined: Fri Apr 01, 2016 1:47 pm
- axew3
- w3all User
- Posts: 2883
- Joined: Fri Jan 22, 2016 5:15 pm
- Location: Italy
- Contact:
Re: Conflict with NextGEN gallery plugin
So the problem to check is that plugin NextGEN show no galleries, albums or pictures.
Curious to see what it can be ... strange because only login should be affected ...
Curious to see what it can be ... strange because only login should be affected ...
- axew3
- w3all User
- Posts: 2883
- Joined: Fri Jan 22, 2016 5:15 pm
- Location: Italy
- Contact:
Solved -> Conflict with NextGEN gallery plugin
The problem is, that when on file wp_w3all.php, this instruction (repeated 2 times on wp_w3all.php file) is used to include the phpBB config file, than the plugin nextgen fail to execute something. On wp_W3all the code is this:
To solve and get work wp_w3all with nextgen plugin, you should replace the above code in wp_w3all.php file, repeated two times, so you need to replace two time on file, with this code, and setup manually correct values for your db, pass etc (substitute phrase copy value from phpbb config.php file with correct related value you found in phpBB config.php file:
So will not be more a file inclusion. It is absolutely strange. I've try to unset globals or single vars after assignment, but seem that if something is included nextgen go in conflict.
At moment i've get work it in this way. If any problem just let know.
On next version as option, we can provide to add values manually (but with comfortable easy way) of phpBB config.php to be available on WP in a way that will not conflict Nextgen. No problem is easy. But really strange behavior of nextgen.
I had already think to add this feature in true, due to problems on subdomains installations where maybe instead to change server configuration for correct phpBB file config.php inclusion, we can prefer to add manually phpBB config values. It will be added so as option, and we will solve once more problems in one time.
Code: Select all
ob_start();
include( $config_file );
ob_end_clean();
if ( defined('PHPBB_INSTALLED') ){
$w3all_config = array(
'dbms' => $dbms,
'dbhost' => $dbhost,
'dbport' => $dbport,
'dbname' => $dbname,
'dbuser' => $dbuser,
'dbpasswd' => $dbpasswd,
'table_prefix' => $table_prefix,
'acm_type' => $acm_type
);
}
Code: Select all
@define('PHPBB_INSTALLED', true);
if ( defined('PHPBB_INSTALLED') ){
$w3all_config = array(
'dbms' => 'copy value from phpbb config.php file',
'dbhost' => 'copy value from phpbb config.php file',
'dbport' => 'copy value from phpbb config.php file',
'dbname' => 'copy value from phpbb config.php file',
'dbuser' => 'copy value from phpbb config.php file',
'dbpasswd' => 'copy value from phpbb config.php file',
'table_prefix' => 'copy value from phpbb config.php file',
'acm_type' => 'copy value from phpbb config.php file'
);
}
At moment i've get work it in this way. If any problem just let know.
On next version as option, we can provide to add values manually (but with comfortable easy way) of phpBB config.php to be available on WP in a way that will not conflict Nextgen. No problem is easy. But really strange behavior of nextgen.
I had already think to add this feature in true, due to problems on subdomains installations where maybe instead to change server configuration for correct phpBB file config.php inclusion, we can prefer to add manually phpBB config values. It will be added so as option, and we will solve once more problems in one time.
- axew3
- w3all User
- Posts: 2883
- Joined: Fri Jan 22, 2016 5:15 pm
- Location: Italy
- Contact:
Re: Solved -> Conflict with NextGEN gallery plugin
[solved] but if any problem with explanation above, and to apply modifications until next wp_w3all 1.4.7, just let know.
-
- User w
- Posts: 19
- Joined: Fri Apr 01, 2016 1:47 pm
Re: Solved -> Conflict with NextGEN gallery plugin
Unfortunately, when applying this code, the login link between WP and phpBB seems to be broken again.
I can login via phpBB but not via WP.
Could this have anything to do with Photocrati's remark on the NextGen support forum?:
I can login via phpBB but not via WP.
Could this have anything to do with Photocrati's remark on the NextGen support forum?:
@vasch - I'm not familiar with that plugin but it is a good idea to developer. As a quick thought, the author might look into anything they are doing with user roles and capabilities, NextGEN Gallery does require (currently) the user in the WordPress Dashboard be set to the default WordPress roles ... if they are aliasing them or copying them then it may create a problem with viewing NextGEN Gallery related items.
Thanks for the update ... and good luck sorting this out. If there is anything we can help with let us know.
- axew3
- w3all User
- Posts: 2883
- Joined: Fri Jan 22, 2016 5:15 pm
- Location: Italy
- Contact:
Re: Solved -> Conflict with NextGEN gallery plugin
the problem with nextgen is just this reported above: when a file is included (in this case config.php of phpBB) nextgen fail to load galleries and images, that aren't appearing but that are existing. File images upload also was failing.
This is so true, that if you rename on phpBB config.php vars in some other name (like $dbms renamed into $dbms_1), and so in the related wp_w3all array, all work ok! Nice eh!?
So nextgen conflict with some var of phpBB config.php i've think.
Than i've try to unset all these vars, even globals, after include/assignment ... but nothing! Also this is very nice eh?
I've think to a problem about some var in nextgen, named in the same name of someone in the config.php file of phpBB.
Or a problem on include, in the way nextgen is coded, about searching for folders and images.
This is the problem of wp_w3all and nextgen compatibility. It will be solved on 1.4.7, where config values (as option) can be added without file inclusion (due to subdomain config reason above explained, and this will solve in the same time also this issue with nextgen). I 've just solve the problem looking where it was coming out on wp_w3all. The rest is a problem of nextgen authors, if any suggestion needed or to give, here we are.
Now, with above modification, that just set phpBB config values without including phpBB config.php file, all work, this i've test out reversing until where the problem is, and how to solve it (this was easy).
I've setup (sorry this is a 2 seconds tempo vers, but working) a ready wp_w3all.php file that solve the problem as need to be, but you need to fulfill with your own values on two different places, search for this code, repeated 2 times (on 1.4.7 all will be adjusted, this is just a fly fix to demonstrate how the joke is):
change values in these two instructions, in accord with your phpBB config.php file.
This is so true, that if you rename on phpBB config.php vars in some other name (like $dbms renamed into $dbms_1), and so in the related wp_w3all array, all work ok! Nice eh!?
So nextgen conflict with some var of phpBB config.php i've think.
Than i've try to unset all these vars, even globals, after include/assignment ... but nothing! Also this is very nice eh?
I've think to a problem about some var in nextgen, named in the same name of someone in the config.php file of phpBB.
Or a problem on include, in the way nextgen is coded, about searching for folders and images.
This is the problem of wp_w3all and nextgen compatibility. It will be solved on 1.4.7, where config values (as option) can be added without file inclusion (due to subdomain config reason above explained, and this will solve in the same time also this issue with nextgen). I 've just solve the problem looking where it was coming out on wp_w3all. The rest is a problem of nextgen authors, if any suggestion needed or to give, here we are.
Now, with above modification, that just set phpBB config values without including phpBB config.php file, all work, this i've test out reversing until where the problem is, and how to solve it (this was easy).
I've setup (sorry this is a 2 seconds tempo vers, but working) a ready wp_w3all.php file that solve the problem as need to be, but you need to fulfill with your own values on two different places, search for this code, repeated 2 times (on 1.4.7 all will be adjusted, this is just a fly fix to demonstrate how the joke is):
Code: Select all
$w3all_config = array(
'dbms' => 'phpbb\\db\\driver\\mysqli',
'dbhost' => 'localhost',
'dbport' => '',
'dbname' => 'phpbb-subdomain',
'dbuser' => 'root',
'dbpasswd' => 'aallee',
'table_prefix' => 'phpbb_',
'phpbb_adm_relative_path' => 'adm/',
'acm_type' => 'phpbb\\cache\\driver\\file'
);