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

PHP Notice: Undefined index in Backtrace.php & php_errors.php #494

Closed
Tracked by #539 ...
slaFFik opened this issue Feb 5, 2020 · 2 comments
Closed
Tracked by #539 ...

PHP Notice: Undefined index in Backtrace.php & php_errors.php #494

slaFFik opened this issue Feb 5, 2020 · 2 comments

Comments

@slaFFik
Copy link

slaFFik commented Feb 5, 2020

I have a plugin that includes via composer the Action Scheduler v3 library.
I tried to use that lib as_enqueue_async_action() function, but got the error:

PHP Fatal error: Uncaught exception 'RuntimeException'
PHP Fatal error:  Uncaught exception 'RuntimeException' with message 'Error saving action: ActionScheduler_Action::$args too long. To ensure the args column can be indexed, action args should not be more than 191 characters when encoded as JSON.' in \my_plugin_dir\vendor\woocommerce\action-scheduler\classes\data-stores\ActionScheduler_DBStore.php:61
Stack trace:
#0 \my_plugin_dir\vendor\woocommerce\action-scheduler\classes\ActionScheduler_ActionFactory.php(177): ActionScheduler_DBStore->save_action(Object(ActionScheduler_Action))
#1 \my_plugin_dir\vendor\woocommerce\action-scheduler\classes\ActionScheduler_ActionFactory.php(69): ActionScheduler_ActionFactory->store(Object(ActionScheduler_Action))
#2 \my_plugin_dir\vendor\woocommerce\action-scheduler\functions.php(16): ActionScheduler_ActionFactory->async('my_plugin_dir_action in \query-monitor\collectors\php_errors.php on line 82

So the page of my plugin was white-screened with uncaught exception and fatal error (rightfully), but above those errors I also found this from the QM v3.5.2 plugin:

PHP Notice: Undefined index: file in \query-monitor\classes\Backtrace.php on line 194
PHP Notice: Undefined index: file in \query-monitor\classes\Backtrace.php on line 195
PHP Notice: Undefined index: line in \query-monitor\classes\Backtrace.php on line 196
PHP Notice: Undefined index: file in \query-monitor\collectors\php_errors.php on line 72
@slaFFik slaFFik changed the title PHP Notice: Undefined index in several files PHP Notice: Undefined index in Backtrace.php & php_errors.php Feb 5, 2020
@johnbillion
Copy link
Owner

Thanks for the report

@johnbillion
Copy link
Owner

I've made many improvements to the backtrace collection since this report. I'll close this off but if you can still reproduce it do please let me know. Thanks.

@johnbillion johnbillion closed this as not planned Won't fix, can't repro, duplicate, stale Sep 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants