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

Viewing settings page causes an error #9

Closed
edent opened this issue Jun 19, 2023 · 5 comments
Closed

Viewing settings page causes an error #9

edent opened this issue Jun 19, 2023 · 5 comments
Labels
bug Something isn't working

Comments

@edent
Copy link
Contributor

edent commented Jun 19, 2023

Screenshot 2023-06-19 at 20-02-28 Settings for the Fediverse Embeds plugin ‹ Terence Eden’s Blog — WordPress

An error of type E_ERROR was caused in line 46 of the file /home/shkspr.mobi/blog/wp-content/plugins/fediverse-embeds-wordpress-plugin-main/includes/Helpers.php. Error message: Uncaught UnexpectedValueException: RecursiveDirectoryIterator::__construct(/home/shkspr.mobi/blog/wp-content/plugins/fediverse-embeds-wordpress-plugin-main/includes/../media): Failed to open directory: No such file or directory in /home/shkspr.mobi/blog/wp-content/plugins/fediverse-embeds-wordpress-plugin-main/includes/Helpers.php:46
Stack trace:
#0 /home/shkspr.mobi/blog/wp-content/plugins/fediverse-embeds-wordpress-plugin-main/includes/Helpers.php(46): RecursiveDirectoryIterator->__construct()
#1 /home/shkspr.mobi/blog/wp-content/plugins/fediverse-embeds-wordpress-plugin-main/includes/Settings.php(184): FTF_Fediverse_Embeds\Helpers::get_directory_size()
#2 /home/shkspr.mobi/blog/wp-admin/includes/template.php(1773): FTF_Fediverse_Embeds\Settings->render_settings_form()
#3 /home/shkspr.mobi/blog/wp-content/plugins/fediverse-embeds-wordpress-plugin-main/includes/Settings.php(50): do_settings_sections()
#4 /home/shkspr.mobi/blog/wp-includes/class-wp-hook.php(308): FTF_Fediverse_Embeds\Settings->render_settings_page()
#5 /home/shkspr.mobi/blog/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#6 /home/shkspr.mobi/blog/wp-includes/plugin.php(517): WP_Hook->do_action()
#7 /home/shkspr.mobi/blog/wp-admin/admin.php(259): do_action()
#8 /home/shkspr.mobi/blog/wp-admin/options-general.php(10): require_once('/home/...')
#9 {main}
  thrown
@stefanbohacek
Copy link
Owner

@edent Thank you for catching this! Fixed with 3b371d9.

@stefanbohacek stefanbohacek added the bug Something isn't working label Jun 19, 2023
@edent
Copy link
Contributor Author

edent commented Jun 19, 2023

Seems to work. Although it now says:

Number of saved posts: 7
Size of downloaded media files: NAN

@stefanbohacek
Copy link
Owner

Right, this is now fixed. bfd66e7

@edent
Copy link
Contributor Author

edent commented Jun 19, 2023

That seems to be a regression. It's now throwing an error again.

@stefanbohacek
Copy link
Owner

Ah, sorry, I was rushing too much.

44462c0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants