Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cann`t use/ Help me #31

Open
ghost opened this issue Feb 8, 2022 · 4 comments
Open

Cann`t use/ Help me #31

ghost opened this issue Feb 8, 2022 · 4 comments

Comments

@ghost
Copy link

ghost commented Feb 8, 2022

#5 {main}
thrown in D:\Test\plugins\advanced_search\advanced_search.php on line 561
[08-Feb-2022 01:00:26 Europe/Minsk] PHP Fatal error: Uncaught Error: Call to undefined method rcmail::build_folder_tree() in D:\Test\plugins\advanced_search\advanced_search.php:561
Stack trace:
#0 D:\Test\plugins\advanced_search\advanced_search.php(445): advanced_search->folder_selector(Array)
#1 D:\Test\plugins\advanced_search\advanced_search.php(422): advanced_search->generate_searchbox()
#2 D:\Test\program\lib\Roundcube\rcube_plugin_api.php(570): advanced_search->display_advanced_search()
#3 D:\Test\program\include\rcmail.php(248): rcube_plugin_api->exec_action('plugin.display_...')
#4 D:\Test\index.php(283): rcmail->action_handler()
#5 {main}
thrown in D:\Test\plugins\advanced_search\advanced_search.php on line 561
how Fix it? Thanks.
Roundcube Version 1.5.2

@jab4
Copy link

jab4 commented Feb 21, 2022

Hi,
Without further knowing much details of the roundcube inner workings, this looks like a namespace issue.

Call to undefined method rcmail::build_folder_tree

...is a static function call to the class named rcmail, which does exist in #4: rcmail->action_handler, otherwise the steps before that could have never taken place. (EDIT: PHP stack traces are actually backwards, because #5 is the entry point and #0 is the last point run that triggered the error.)

In other words: advanced_search apparently has a namespace _whatever_ line somewhere, which breaks structural reworking that were introduced in Roundcube 1.5 (or even earlier).

Is this a built-in plugin? I doubt that, others would have this issue and you wouldn't wait here for an answer. Where did you get the plugin? When was it last updated? Could you post a link?

@jab4
Copy link

jab4 commented Feb 21, 2022

Oh my. Please forget my previous request for the link. Captain Obvious just said hello. How did I end up here? 🤔

@Dmitry422
Copy link

I have the same error with Roundcube 1.6
I hope plugin author read this thread and help us )

Thank you!

@c---
Copy link

c--- commented Feb 22, 2024

@Dmitry422 Try this fork of a fork: https://github.com/mxroute/advanced_search

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants