gdarko / wp-vimeo-videos

📺 WordPress plugin that integrates with Vimeo and allows uploading videos through WordPress Admin interface. Also includes shortcode for embedding the videos.
12 stars 2 forks source link

PHP Fatal error: Allowed memory #86

Open etechnologie-pl opened 1 year ago

etechnologie-pl commented 1 year ago

Hi @gdarko

Here are the errors that we get in the Pro version:

PHP Fatal error: Uncaught Error: Class "WP_DGV_API_Base" not found in wp-content/plugins/wp-vimeo-videos-pro/includes/class-wp-dgv-api-helper.php:30 WordPress database error Deadlock found when trying to get lock; try restarting transaction for query DELETE FROMwp_optionsWHEREoption_name= '_transient_timeout_wvv_account_data' made by require('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/wp-vimeo-videos-pro/wp-vimeo-videos-pro.php'), run_wp_vimeo_videos, WP_DGV->__construct, WP_DGV->define_shared_hooks, WP_DGV_Shared->__construct, WP_DGV_API_Base->__construct, WP_DGV_API_Base->connect, get_transient, delete_option PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 536870920 bytes) in wp-content/plugins/wp-vimeo-videos-pro/includes/class-wp-dgv-api-base.php on line 656

I think this may be something related to the server configuration and get_uploaded_videos_safe params $this->api->request( '/me/videos', $query, 'GET' ); especially 'per_page' => 100,.