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

Too many photos causes app to crash #2679

Open
rhogro opened this issue May 30, 2024 · 1 comment
Open

Too many photos causes app to crash #2679

rhogro opened this issue May 30, 2024 · 1 comment

Comments

@rhogro
Copy link

rhogro commented May 30, 2024

I have a big folder with more than 1700 photos. After scrolling and loading a bunch of them (1000), I get the following error (sorry for not being too detailed):
`The Image and video gallery from Google Drive plugin has encountered an error. Error message:

An internal error happened in the gallery.

Stack trace:

#0 /home3/urmepplayr/public_html/wp-content/plugins/skaut-google-drive-gallery/class-api-client.php(239): Sgdg\API_Client::Sgdg{closure}('~!!~AI9FV7Qlai0...', Object(Sgdg\Vendor\GuzzleHttp\Promise\Promise), Array)
#1 [internal function]: Sgdg\API_Client::Sgdg{closure}(Object(Sgdg\Vendor\Google\Service\Drive\FileList))
#2 /home3/urmepplayr/public_html/wp-content/plugins/skaut-google-drive-gallery/class-api-client.php(331): call_user_func(Object(Closure), Object(Sgdg\Vendor\Google\Service\Drive\FileList))
#3 /home3/urmepplayr/public_html/wp-content/plugins/skaut-google-drive-gallery/class-api-client.php(260): Sgdg\API_Client::execute_current_batch()
#4 /home3/urmepplayr/public_html/wp-content/plugins/skaut-google-drive-gallery/class-api-client.php(264): Sgdg\API_Client::execute()
#5 /home3/urmepplayr/public_html/wp-content/plugins/skaut-google-drive-gallery/frontend/class-page.php(65): Sgdg\API_Client::execute(Array)
#6 /home3/urmepplayr/public_html/wp-content/plugins/skaut-google-drive-gallery/helpers/class-helpers.php(42): Sgdg\Frontend\Page::ajax_handler_body()
#7 /home3/urmepplayr/public_html/wp-content/plugins/skaut-google-drive-gallery/frontend/class-page.php(46): Sgdg\Helpers::ajax_wrapper(Array)
#8 /home3/urmepplayr/public_html/wp-includes/class-wp-hook.php(324): Sgdg\Frontend\Page::handle_ajax('')
#9 /home3/urmepplayr/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#10 /home3/urmepplayr/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#11 /home3/urmepplayr/public_html/wp-admin/admin-ajax.php(188): do_action('wp_ajax_page')
#12 {main}`

@marekdedic
Copy link
Contributor

Hi,
thanks for the report, I have a few questions which should help me to better pinpoint the issue:

  1. Do I understand it correctly that the issue happens after loading a lot of, but not all images in the folder?
  2. Do you have automatic loading of new pages enabled?
  3. What is your configured page size?
  4. Could you please try to change the page size (incerease it) and see if it has any effect?
  5. Could you please try disabling auto-loading of next page and see if it has any effect?

Thanks!

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

2 participants