by Dennnie » Fri Aug 05, 2016 3:27 am
axew3 wrote:Hello, it can be fixed in very easy way, np.
To get working your site without problems, you could just delete the plugin from wp-content/plugins folder.
This is not the answer, please follow read, it is just to mention, like the follow right here below:
Or, on 1.4.8, if you have set path to custom phpBB
config.php file, comment out the very last line of the file
wp-content/plugins/wp-w3all-phpbb-integration/phpbb/config.php
comment (disable) the last line, prefixing with // chars in this way:
Code: Select all
//@define('PHPBB_INSTALLED', true);
while to solve the error you report, that is just given by the wrong assignment to the correct file name config.php
Filename cannot be empty
the path to the config.php (the one on phpBB root OR if you have choose manual config the one on
wp-content/plugins/wp-w3all-phpbb-integration/phpbb/config.php as above mentioned, is assigned in this way on
wp_w3all.php file lines of code (there are 2 lines on wp_w3all.php file of this):
Code: Select all
$config_file = $_POST["w3all_conf"]["w3all_path_to_cms"] . '/config.php';
You could set manually the path, to the config.php, replacing the include lines on wp_w3all.php, as more below explained,
BUT try out before this:
Code: Select all
$config_file = $_POST["w3all_conf"]["w3all_path_to_cms"] . /config.php';
change/substitute with (maybe as you are on windows, and after you have try out this solution, please let me know):
change last slash on these two lines of code on wp_w3all.php file, as windows maybe like:
Code: Select all
$config_file = get_option( 'w3all_path_to_cms' ) . '\config.php';
this other, is instead another way, but isn't comfortable and not ok due to maintain reasons (you should change it manually any time we go to update wp_w3all) so before, please let me know about the first solution above that should for sure work, so we can patch the wp_w3all code about, for win servers, if it is the problem solution. I work often on win and lnx, so i'm sorry, but i have not get the error, as i use apache on both, while you seem are using a php on win server if i'm not wrong.
Another (not good one) solution:
Code: Select all
$config_file = 'your_absolute_path_to_config\config.php';
Thank you for your promptly reply.
Yes, my website is on a windows server.
Here is what I did:
I found 3 lines start with '$config_file':
line 60
Code: Select all
$config_file = $_POST["w3all_conf"]["w3all_path_to_cms"] . '/config.php';
line 66
Code: Select all
$config_file = get_option( 'w3all_path_to_cms' ) . '/config.php';
line 170
Code: Select all
$config_file = get_option( 'w3all_path_to_cms' ) . '/config.php';
I've tried to change the '/config.php' of these three lines to '\config.php', and I got the same error.
Then I found my server's '_SERVER["DOCUMENT_ROOT"]' is 'C:\inetpub\wwwroot', and I changed the '\config.php' of these three lines to 'C:\inetpub\wwwroot\forums\config.php' (forums is the name of my phpbb folder), still got the same error.
Denny
[quote="axew3"]Hello, it can be fixed in very easy way, np.
To get working your site without problems, you could just delete the plugin from wp-content/plugins folder.
[b]This is not the answer, please follow read, it is just to mention, like the follow right here below:[/b]
Or, on 1.4.8, if you have set path to custom phpBB [i]config.php[/i] file, comment out the very last line of the file
[i]wp-content/plugins/wp-w3all-phpbb-integration/phpbb/config.php[/i]
comment (disable) the last line, prefixing with // chars in this way:
[code] //@define('PHPBB_INSTALLED', true);[/code]
[size=120][b]while to solve the error you report, that is just given by the wrong assignment to the correct file name [i]config.php[/i][/b][/size]
[quote] Filename cannot be empty[/quote]
the path to the config.php (the one on phpBB root OR if you have choose manual config the one on
[i]wp-content/plugins/wp-w3all-phpbb-integration/phpbb/config.php[/i] as above mentioned, is assigned in this way on [b]wp_w3all.php[/b] file lines of code (there are 2 lines on wp_w3all.php file of this):
[code]$config_file = $_POST["w3all_conf"]["w3all_path_to_cms"] . '/config.php';[/code]
You could set manually the path, to the config.php, replacing the include lines on wp_w3all.php, as more below explained, [b]BUT try out before this[/b]:
[code]$config_file = $_POST["w3all_conf"]["w3all_path_to_cms"] . /config.php';[/code]
change/substitute with (maybe as you are on windows, and after you have try out this solution, please let me know):
change last slash on these two lines of code on wp_w3all.php file, as windows maybe like:
[code] $config_file = get_option( 'w3all_path_to_cms' ) . '\config.php';
[/code]
this other, is instead another way, but isn't comfortable and not ok due to maintain reasons (you should change it manually any time we go to update wp_w3all) so before, please let me know about the first solution above that should for sure work, so we can patch the wp_w3all code about, for win servers, if it is the problem solution. I work often on win and lnx, so i'm sorry, but i have not get the error, as i use apache on both, while you seem are using a php on win server if i'm not wrong.
Another (not good one) solution:
[code]$config_file = 'your_absolute_path_to_config\config.php';[/code][/quote]
Thank you for your promptly reply.
Yes, my website is on a windows server.
Here is what I did:
I found 3 lines start with '$config_file':
line 60 [code]$config_file = $_POST["w3all_conf"]["w3all_path_to_cms"] . '/config.php';[/code]
line 66 [code]$config_file = get_option( 'w3all_path_to_cms' ) . '/config.php';[/code]
line 170 [code]$config_file = get_option( 'w3all_path_to_cms' ) . '/config.php';[/code]
I've tried to change the '/config.php' of these three lines to '\config.php', and I got the same error.
Then I found my server's '_SERVER["DOCUMENT_ROOT"]' is 'C:\inetpub\wwwroot', and I changed the '\config.php' of these three lines to 'C:\inetpub\wwwroot\forums\config.php' (forums is the name of my phpbb folder), still got the same error.
Denny