BBCustomAttributes icon indicating copy to clipboard operation
BBCustomAttributes copied to clipboard

Fatal error in GithubUpdater.php

Open htrex opened this issue 1 year ago • 1 comments

Hello, I had to comment the init_updater() command on the main plugin file as it was causing a fatal error when opening the WP Plugin admin screen.

Let me know if you need further info.

Fatal error: Uncaught TypeError: Cannot access offset of type string on string in [...]/wp-content/plugins/BBCustomAttributes-master/includes/GithubUpdater.php:127 Stack Trace

  1. JasonTheAdams\BBCustomAttributes\GithubUpdater->get_repository_info()[...]/wp-content/plugins/BBCustomAttributes-master/includes/GithubUpdater.php:166
  2. JasonTheAdams\BBCustomAttributes\GithubUpdater->modify_transient(Object(stdClass))[...]/wp-includes/class-wp-hook.php:326
  3. WP_Hook->apply_filters(Object(stdClass), Array)[...]/wp-includes/plugin.php:205
  4. apply_filters('pre_set_site_tr...', Object(stdClass), 'update_plugins')[...]/wp-includes/option.php:2610
  5. set_site_transient('update_plugins', Object(stdClass))[...]/wp-includes/update.php:393
  6. wp_update_plugins('')[...]/wp-includes/class-wp-hook.php:324
  7. WP_Hook->apply_filters(NULL, Array)[...]/wp-includes/class-wp-hook.php:348
  8. WP_Hook->do_action(Array)[...]/wp-includes/plugin.php:517
  9. do_action('load-plugins.ph...')[...]/wp-admin/admin.php:385
  10. require_once('/home/gransab/s...')[...]/wp-admin/plugins.php:10
  11. {main} thrown in [...]/wp-content/plugins/BBCustomAttributes-master/includes/GithubUpdater.php on line 127

htrex avatar Dec 02 '24 08:12 htrex

What version of WordPress and what version of PHP are you on? I've identified the likely cause and will work on a fix, but having your environment details will help ensure the solution works for everyone.

Thanks!

zackpyle avatar Dec 02 '24 12:12 zackpyle