Updates conflict with wp filebase
-
Update screws up file browser in wp filebase
-
@jgflores
Hi,
I found the line ob_end_clean(); in this file: wpfb-load.php at line 43.
Change the line
ob_end_clean();
in
//ob_end_clean();//
and it works fine.Should looks like this (Line 42 and 43)
if(SUPPRESS_LOADING_OUTPUT && ob_get_level() > 1)
//@ob_end_clean();//Greetings
Hello,
after some research in the NexGen plugin I figured out that it’s resource manager is causing the trouble. It can be disabled by adding
define('NGG_DISABLE_RESOURCE_MANAGER', true);
above
define('SUPPRESS_LOADING_OUTPUT', empty($_REQUEST['noob']));
in wpfb-load.php.Will add this in the next update.
You are right, Fabian. I stick with the old solution because I do not know what the resource manager of NGG does and disabling something that should be working could cause other problems I guess.
Thanks for updating this in the next update.
GreetingsHi Highlanderfornow,
It is only disabled during the AJAX request. This has no influence on NexGEN behavior. A nice spin-off is that disabling the resource manager also improves performance of the file browser.
The old solution can still cause issues because not all output buffers are flushed before PHP execution ends.Thanks Fabian. Now I understand.
Hello Fabian
I tried the define(‘NGG_DISABLE_RESOURCE_MANAGER’, true); fix above and I am still incurring the error at https://gvpcp.org.au/resources/
I dont have the next gen plug in
Please see my premium support request lodged a few days ago.
Hi Fabian,
Like yakaroo, we have tried the fixes above, and still unable to get the folders visible, am unable to post a link, as it is an internal site, but all folders have the same spinning logo and never load – same as site link shown by yakaroo.
have tried
define('SUPPRESS_LOADING_OUTPUT', empty($_REQUEST['noob']));
in wpfb-load.php.
and looked for line in wpfb-ajax.php (but no@ob_end_clean().
in file)
It has been working, but seemed to stop over the weekend?
thanks,Chris,
Take a backup of the WP Filebase.
Download a clean copy, edit the files above as discussed and upload as a fresh plugin.No need to deactivate/activate if you do it quick enough and the downtime is acceptable.
The above fixed the issues for me.
It seems there are various causes for the file browser not loading, but we did not find a solution that works in all cases yet.
To Debug things please open the following URL paths of your site in your browser and post what you see.
1)
/wp-content/plugins/wp-filebase-pro/wpfb-ajax.php
=>-1
2)
/wp-content/plugins/wp-filebase-pro/wpfb-ajax.php?noob=1
=>-1
3)
/wp-content/plugins/wp-filebase-pro/wpfb-ajax.php?action=tree
=>[{"id":"wpfb-cat-10", .... ]
4)
/wp-content/plugins/wp-filebase-pro/wpfb-ajax.php?action=tree&type=browser
=> the same as 3)5)
/wp-content/plugins/wp-filebase-pro/wpfb-ajax.php?action=tree&type=browser&noob=1
=> the same as 3)1)Not Found
The requested URL /wp-content/plugins/wp-filebase-pro/wpfb-ajax.php => -1 was not found on this server.
Apache/2.2.15 (CentOS) Server at intranet Port 80
2)-1
3)(Blank Screen)
4)[{“id”:”wpfb-file-11″,”text”:”<img src=\”http:\/\/intranet\/wp-includes\/images\/crystal\/document.png\” alt=\”Icon of 1 – Company Information\” style=\”vertical-align:middle;width:auto;height:24px;\” \/> 1 – Company Information<\/a> (February 25, 2014)”,”classes”:null},{“id”:”wpfb-file-12″,”text”:”<img src=\”http:\/\/intranet\/wp-includes\/images\/crystal\/document.png\” alt=\”Icon of 2 – Business Planning\” style=\”vertical-align:middle;width:auto;height:24px;\” \/> 2 – Business Planning<\/a> (February 25, 2014)”,”classes”:null},{“id”:”wpfb-file-13″,”text”:”<img src=\”http:\/\/intranet\/wp-includes\/images\/crystal\/document.png\” alt=\”Icon of 4 – Organisational Chart\” style=\”vertical-align:middle;width:auto;height:24px;\” \/> 4 – Organisational Chart<\/a> (February 25, 2014)”,”classes”:null},{“id”:”wpfb-file-344″,”text”:”<img src=\”http:\/\/intranet\/wp-includes\/images\/crystal\/document.png\” alt=\”Icon of Employee Handbook Feb 2014\” style=\”vertical-align:middle;width:auto;height:24px;\” \/> Employee Handbook Feb 2014<\/a> (March 10, 2014)”,”classes”:null},{“id”:”wpfb-file-346″,”text”:”<img src=\”http:\/\/intranet\/wp-includes\/images\/crystal\/document.png\” alt=\”Icon of Unsecured – Repayment & Collecitons Policy 120214 Version 1.7\” style=\”vertical-align:middle;width:auto;height:24px;\” \/> Unsecured – Repayment & Collecitons Policy 120214 Version 1.7<\/a> (March 12, 2014)”,”classes”:null},{“id”:”wpfb-cat-5″,”text”:”<img src=\”http:\/\/intranet\/wp-content\/plugins\/wp-filebase\/images\/folder-icons\/orange_folder.png\” alt=\”Icon of CPM\” style=\”width:auto;height:24px;vertical-align:middle;\” \/> CPM<\/a>”,”hasChildren”:true,”classes”:null},{“id”:”wpfb-cat-22″,”text”:”<img src=\”http:\/\/intranet\/wp-content\/plugins\/wp-filebase\/images\/folder-icons\/orange_folder.png\” alt=\”Icon of HR\” style=\”width:auto;height:24px;vertical-align:middle;\” \/> HR<\/a>”,”hasChildren”:true,”classes”:null},{“id”:”wpfb-cat-1″,”text”:”<img src=\”http:\/\/intranet\/wp-content\/plugins\/wp-filebase\/images\/folder-icons\/orange_folder.png\” alt=\”Icon of IT\” style=\”width:auto;height:24px;vertical-align:middle;\” \/> IT<\/a>”,”hasChildren”:true,”classes”:null},{“id”:”wpfb-cat-47″,”text”:”<img src=\”http:\/\/intranet\/wp-content\/plugins\/wp-filebase\/images\/folder-icons\/orange_folder.png\” alt=\”Icon of JC\” style=\”width:auto;height:24px;vertical-align:middle;\” \/> JC<\/a>”,”hasChildren”:true,”classes”:null},{“id”:”wpfb-cat-48″,”text”:”<img src=\”http:\/\/intranet\/wp-content\/plugins\/wp-filebase\/images\/folder-icons\/orange_folder.png\” alt=\”Icon of LC\” style=\”width:auto;height:24px;vertical-align:middle;\” \/> LC<\/a>”,”hasChildren”:true,”classes”:null},{“id”:”wpfb-cat-20″,”text”:”<img src=\”http:\/\/intranet\/wp-content\/plugins\/wp-filebase\/images\/folder-icons\/orange_folder.png\” alt=\”Icon of Marketing\” style=\”width:auto;height:24px;vertical-align:middle;\” \/> Marketing<\/a>”,”hasChildren”:true,”classes”:null},{“id”:”wpfb-cat-10″,”text”:”<img src=\”http:\/\/intranet\/wp-content\/plugins\/wp-filebase\/images\/folder-icons\/orange_folder.png\” alt=\”Icon of Operations\” style=\”width:auto;height:24px;vertical-align:middle;\” \/> Operations<\/a>”,”hasChildren”:true,”classes”:null},{“id”:”wpfb-cat-46″,”text”:”<img src=\”http:\/\/intranet\/wp-content\/plugins\/wp-filebase\/images\/folder-icons\/orange_folder.png\” alt=\”Icon of Telephones\” style=\”width:auto;height:24px;vertical-align:middle;\” \/> Telephones<\/a>”,”hasChildren”:true,”classes”:null},{“id”:”wpfb-cat-31″,”text”:”<img src=\”http:\/\/intranet\/wp-content\/plugins\/wp-filebase\/images\/folder-icons\/orange_folder.png\” alt=\”Icon of Training\” style=\”width:auto;height:24px;vertical-align:middle;\” \/> Training<\/a>”,”hasChildren”:true,”classes”:null},{“id”:”wpfb-cat-45″,”text”:”<img src=\”http:\/\/intranet\/wp-content\/plugins\/wp-filebase\/images\/folder-icons\/orange_folder.png\” alt=\”Icon of Useful Links\” style=\”width:auto;height:24px;vertical-align:middle;\” \/> Useful Links<\/a>”,”hasChildren”:true,”classes”:null}]
5)
[{“id”:”wpfb-file-11″,”text”:”<img src=\”http:\/\/intranet\/wp-includes\/images\/crystal\/document.png\” alt=\”Icon of 1 – Company Information\” style=\”vertical-align:middle;width:auto;height:24px;\” \/> 1 – Company Information<\/a> (February 25, 2014)”,”classes”:null},{“id”:”wpfb-file-12″,”text”:”<img src=\”http:\/\/intranet\/wp-includes\/images\/crystal\/document.png\” alt=\”Icon of 2 – Business Planning\” style=\”vertical-align:middle;width:auto;height:24px;\” \/> 2 – Business Planning<\/a> (February 25, 2014)”,”classes”:null},{“id”:”wpfb-file-13″,”text”:”<img src=\”http:\/\/intranet\/wp-includes\/images\/crystal\/document.png\” alt=\”Icon of 4 – Organisational Chart\” style=\”vertical-align:middle;width:auto;height:24px;\” \/> 4 – Organisational Chart<\/a> (February 25, 2014)”,”classes”:null},{“id”:”wpfb-file-344″,”text”:”<img src=\”http:\/\/intranet\/wp-includes\/images\/crystal\/document.png\” alt=\”Icon of Employee Handbook Feb 2014\” style=\”vertical-align:middle;width:auto;height:24px;\” \/> Employee Handbook Feb 2014<\/a> (March 10, 2014)”,”classes”:null},{“id”:”wpfb-file-346″,”text”:”<img src=\”http:\/\/intranet\/wp-includes\/images\/crystal\/document.png\” alt=\”Icon of Unsecured – Repayment & Collecitons Policy 120214 Version 1.7\” style=\”vertical-align:middle;width:auto;height:24px;\” \/> Unsecured – Repayment & Collecitons Policy 120214 Version 1.7<\/a> (March 12, 2014)”,”classes”:null},{“id”:”wpfb-cat-5″,”text”:”<img src=\”http:\/\/intranet\/wp-content\/plugins\/wp-filebase\/images\/folder-icons\/orange_folder.png\” alt=\”Icon of CPM\” style=\”width:auto;height:24px;vertical-align:middle;\” \/> CPM<\/a>”,”hasChildren”:true,”classes”:null},{“id”:”wpfb-cat-22″,”text”:”<img src=\”http:\/\/intranet\/wp-content\/plugins\/wp-filebase\/images\/folder-icons\/orange_folder.png\” alt=\”Icon of HR\” style=\”width:auto;height:24px;vertical-align:middle;\” \/> HR<\/a>”,”hasChildren”:true,”classes”:null},{“id”:”wpfb-cat-1″,”text”:”<img src=\”http:\/\/intranet\/wp-content\/plugins\/wp-filebase\/images\/folder-icons\/orange_folder.png\” alt=\”Icon of IT\” style=\”width:auto;height:24px;vertical-align:middle;\” \/> IT<\/a>”,”hasChildren”:true,”classes”:null},{“id”:”wpfb-cat-47″,”text”:”<img src=\”http:\/\/intranet\/wp-content\/plugins\/wp-filebase\/images\/folder-icons\/orange_folder.png\” alt=\”Icon of JC\” style=\”width:auto;height:24px;vertical-align:middle;\” \/> JC<\/a>”,”hasChildren”:true,”classes”:null},{“id”:”wpfb-cat-48″,”text”:”<img src=\”http:\/\/intranet\/wp-content\/plugins\/wp-filebase\/images\/folder-icons\/orange_folder.png\” alt=\”Icon of LC\” style=\”width:auto;height:24px;vertical-align:middle;\” \/> LC<\/a>”,”hasChildren”:true,”classes”:null},{“id”:”wpfb-cat-20″,”text”:”<img src=\”http:\/\/intranet\/wp-content\/plugins\/wp-filebase\/images\/folder-icons\/orange_folder.png\” alt=\”Icon of Marketing\” style=\”width:auto;height:24px;vertical-align:middle;\” \/> Marketing<\/a>”,”hasChildren”:true,”classes”:null},{“id”:”wpfb-cat-10″,”text”:”<img src=\”http:\/\/intranet\/wp-content\/plugins\/wp-filebase\/images\/folder-icons\/orange_folder.png\” alt=\”Icon of Operations\” style=\”width:auto;height:24px;vertical-align:middle;\” \/> Operations<\/a>”,”hasChildren”:true,”classes”:null},{“id”:”wpfb-cat-46″,”text”:”<img src=\”http:\/\/intranet\/wp-content\/plugins\/wp-filebase\/images\/folder-icons\/orange_folder.png\” alt=\”Icon of Telephones\” style=\”width:auto;height:24px;vertical-align:middle;\” \/> Telephones<\/a>”,”hasChildren”:true,”classes”:null},{“id”:”wpfb-cat-31″,”text”:”<img src=\”http:\/\/intranet\/wp-content\/plugins\/wp-filebase\/images\/folder-icons\/orange_folder.png\” alt=\”Icon of Training\” style=\”width:auto;height:24px;vertical-align:middle;\” \/> Training<\/a>”,”hasChildren”:true,”classes”:null},{“id”:”wpfb-cat-45″,”text”:”<img src=\”http:\/\/intranet\/wp-content\/plugins\/wp-filebase\/images\/folder-icons\/orange_folder.png\” alt=\”Icon of Useful Links\” style=\”width:auto;height:24px;vertical-align:middle;\” \/> Useful Links<\/a>”,”hasChildren”:true,”classes”:null}]Fabian, this worked out for me. I pulled up /wp-content/plugins/wp-filebase-pro/wpfb-ajax.php and saw an error indicating a conflict with the “PS Disable Auto Formatting” plugin I have installed. The error was:
“{“type”:8192,”message”:”Assigning the return value of new by reference is deprecated”,”file”:”\/wp-content\/plugins\/ps-disable-auto-formatting\/ps_disable_auto_formatting.php”,”line”:310}”
Disabling that plugin fixed the solution for now.Chrisp70, the steps Fabian listed should be used as:
To Debug things please open the following URL paths of your site in your browser and post what you see.
1) https://www.yourwebsiteurl.com/wp-content/plugins/wp-filebase-pro/wpfb-ajax.php
The result you seen on screen should be “-1”, don’t inlude the “=> -1” in the URL
More on this. That particular plugin “PS Disable Auto Formatting” was using deprecated code. I changed line 310 in ps_disable_auto_formatting.php from:
$ps_disable_auto_formatting = &new ps_disable_auto_formatting();
to:
$ps_disable_auto_formatting = new ps_disable_auto_formatting();
Removing the ampersand fixed the issue for me.
1) /wp-content/plugins/wp-filebase-pro/wpfb-ajax.php => -1
Error 404 – page not found
2) /wp-content/plugins/wp-filebase-pro/wpfb-ajax.php?noob=1 => -1
-1
{“type”:32,”message”:”PHP Startup: Unable to load dynamic library ‘\/usr\/local\/lib\/php\/extensions\/no-debug-non-zts-20090626\/pdo_mysql.so’ – \/usr\/local\/lib\/php\/extensions\/no-debug-non-zts-20090626\/pdo_mysql.so: cannot open shared object file: No such file or directory”,”file”:”Unknown”,”line”:0}3) /wp-content/plugins/wp-filebase-pro/wpfb-ajax.php?action=tree => [{“id”:”wpfb-cat-10″, …. ]
{“type”:32,”message”:”PHP Startup: Unable to load dynamic library ‘\/usr\/local\/lib\/php\/extensions\/no-debug-non-zts-20090626\/pdo_mysql.so’ – \/usr\/local\/lib\/php\/extensions\/no-debug-non-zts-20090626\/pdo_mysql.so: cannot open shared object file: No such file or directory”,”file”:”Unknown”,”line”:0}
4) /wp-content/plugins/wp-filebase-pro/wpfb-ajax.php?action=tree&type=browser => [{“id”:”wpfb-cat-10″, …. ]
Nothing
5) /wp-content/plugins/wp-filebase-pro/wpfb-ajax.php?action=tree&type=browser&noob=1 => [{“id”:”wpfb-cat-10″, …. ]
[{“id”:”wpfb-cat-1″,”text”:”<img src=\”http:\/\/gvpcp.org.au\/wp-content\/plugins\/wp-filebase-pro\/images\/folder-icons\/25_folder.png\” style=\”width:auto;height:25px;vertical-align:middle;\” \/> Aboriginal Health<\/a>”,”hasChildren”:true,”classes”:null},{“id”:”wpfb-cat-2″,”text”:”<img src=\”http:\/\/gvpcp.org.au\/wp-content\/plugins\/wp-filebase-pro\/images\/folder-icons\/25_folder.png\” style=\”width:auto;height:25px;vertical-align:middle;\” \/> Aged Care<\/a>”,”hasChildren”:true,”classes”:null},{“id”:”wpfb-cat-3″,”text”:”<img src=\”http:\/\/gvpcp.org.au\/wp-content\/plugins\/wp-filebase-pro\/images\/folder-icons\/25_folder.png\” style=\”width:auto;height:25px;vertical-align:middle;\” \/> Chronic Care<\/a>”,”hasChildren”:true,”classes”:null},{“id”:”wpfb-cat-5″,”text”:”<img src=\”http:\/\/gvpcp.org.au\/wp-content\/plugins\/wp-filebase-pro\/images\/folder-icons\/25_folder.png\” style=\”width:auto;height:25px;vertical-align:middle;\” \/> Diversity<\/a>”,”hasChildren”:true,”classes”:null},{“id”:”wpfb-cat-32″,”text”:”<img src=\”http:\/\/gvpcp.org.au\/wp-content\/plugins\/wp-filebase-pro\/images\/folder-icons\/25_folder.png\” style=\”width:auto;height:25px;vertical-align:middle;\” \/> GV Multi-Agency Network<\/a>”,”hasChildren”:true,”classes”:null},{“id”:”wpfb-cat-6″,”text”:”<img src=\”http:\/\/gvpcp.org.au\/wp-content\/plugins\/wp-filebase-pro\/images\/folder-icons\/25_folder.png\” style=\”width:auto;height:25px;vertical-align:middle;\” \/> Health Literacy<\/a>”,”hasChildren”:true,”classes”:null},{“id”:”wpfb-cat-7″,”text”:”<img src=\”http:\/\/gvpcp.org.au\/wp-content\/plugins\/wp-filebase-pro\/images\/folder-icons\/25_folder.png\” style=\”width:auto;height:25px;vertical-align:middle;\” \/> Health Planning<\/a>”,”hasChildren”:true,”classes”:null},{“id”:”wpfb-cat-4″,”text”:”<img src=\”http:\/\/gvpcp.org.au\/wp-content\/plugins\/wp-filebase-pro\/images\/folder-icons\/25_folder.png\” style=\”width:auto;height:25px;vertical-align:middle;\” \/> Health Promotion<\/a>”,”hasChildren”:true,”classes”:null},{“id”:”wpfb-cat-8″,”text”:”<img src=\”http:\/\/gvpcp.org.au\/wp-content\/plugins\/wp-filebase-pro\/images\/folder-icons\/25_folder.png\” style=\”width:auto;height:25px;vertical-align:middle;\” \/> Information Technology<\/a>”,”hasChildren”:true,”classes”:null},{“id”:”wpfb-cat-31″,”text”:”<img src=\”http:\/\/gvpcp.org.au\/wp-content\/plugins\/wp-filebase-pro\/images\/folder-icons\/25_folder.png\” style=\”width:auto;height:25px;vertical-align:middle;\” \/> Key Documents<\/a>”,”hasChildren”:true,”classes”:null},{“id”:”wpfb-cat-10″,”text”:”<img src=\”http:\/\/gvpcp.org.au\/wp-content\/plugins\/wp-filebase-pro\/images\/folder-icons\/25_folder.png\” style=\”width:auto;height:25px;vertical-align:middle;\” \/> Newsletter<\/a>”,”hasChildren”:true,”classes”:null},{“id”:”wpfb-cat-9″,”text”:”<img src=\”http:\/\/gvpcp.org.au\/wp-content\/plugins\/wp-filebase-pro\/images\/folder-icons\/25_folder.png\” style=\”width:auto;height:25px;vertical-align:middle;\” \/> Service System Navigation<\/a>”,”hasChildren”:true,”classes”:null},{“id”:”wpfb-cat-22″,”text”:”<img src=\”http:\/\/gvpcp.org.au\/wp-content\/plugins\/wp-filebase-pro\/images\/folder-icons\/25_folder.png\” style=\”width:auto;height:25px;vertical-align:middle;\” \/> Strategic Plans<\/a>”,”hasChildren”:true,”classes”:null}]
thanks michaelfrans,
re-ran 1) and got back -1also – sorry Fabian – but maybe just copying and pasting without thinking…
Can you please clarify:
3) /wp-content/plugins/wp-filebase-pro/wpfb-ajax.php?action=tree
=> [{“id”:”wpfb-cat-10″, …. ]the part in parenthesis – does this need to be altered?
if so can you please give me a pointer? – (i’m not only new to this – but fixing an issue where the site builder is away.)
- The topic ‘Updates conflict with wp filebase’ is closed to new replies.