Title: Require main-google.php error
Last modified: March 26, 2022

---

# Require main-google.php error

 *  Resolved [freekbron](https://wordpress.org/support/users/freekbron/)
 * (@freekbron)
 * [4 years ago](https://wordpress.org/support/topic/require-main-google-php-error/)
 * Hi,
 * In the latest version `admin/class/main-google.php` is required in `admin/class/
   main-admin.php`. However this `main-google.php` file doesn’t exist anymore. This
   makes the plugin crash. I disabled the `require_once()` for now.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [aantonescuu](https://wordpress.org/support/users/aantonescuu/)
 * (@aantonescuu)
 * [4 years ago](https://wordpress.org/support/topic/require-main-google-php-error/#post-15507786)
 * I have the same problem.
 *  [aantonescuu](https://wordpress.org/support/users/aantonescuu/)
 * (@aantonescuu)
 * [4 years ago](https://wordpress.org/support/topic/require-main-google-php-error/#post-15511195)
 * I solved it! I found the main-google.php in one of the developers replies here,
   and I copied it in the class folder. here is the link [https://plugins.trac.wordpress.org/browser/wp-load-gallery/tags/2.1.2/admin/class/main-google.php?rev=2593196](https://plugins.trac.wordpress.org/browser/wp-load-gallery/tags/2.1.2/admin/class/main-google.php?rev=2593196)
 * Thank you
    -  This reply was modified 4 years ago by [aantonescuu](https://wordpress.org/support/users/aantonescuu/).
 *  Plugin Author [ngocuct0912](https://wordpress.org/support/users/ngocuct0912/)
 * (@ngocuct0912)
 * [4 years ago](https://wordpress.org/support/topic/require-main-google-php-error/#post-15534829)
 * Hi. I’m sorry for reply late. I fixed this problem in latest version.
    Regards!
 *  [dwubler](https://wordpress.org/support/users/dwubler/)
 * (@dwubler)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/require-main-google-php-error/#post-15564438)
 * Had the same issue, but even when replacing the main-google.php file, the gallery
   was still gone and would not render, even though the settings were still there.
   This was so annoying as there was a lot extra work to stylize this gallery externally.
   What I don’t get is why weren’t there any notifications as most contributors 
   would notify the WordPress public.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Require main-google.php error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-load-gallery_806f89.svg)
 * [WP Load Gallery](https://wordpress.org/plugins/wp-load-gallery/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-load-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-load-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-load-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-load-gallery/reviews/)

 * 4 replies
 * 4 participants
 * Last reply from: [dwubler](https://wordpress.org/support/users/dwubler/)
 * Last activity: [3 years, 11 months ago](https://wordpress.org/support/topic/require-main-google-php-error/#post-15564438)
 * Status: resolved