Title: Error When Activating Lightstart
Last modified: August 13, 2024

---

# Error When Activating Lightstart

 *  Resolved [simonjonharding](https://wordpress.org/support/users/simonjonharding/)
 * (@simonjonharding)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/error-when-activating-lightstart/)
 * I have been getting an error message every time I activate the lightstart plugin.
   
   This has been going on for some time but I have ignored it as the error does 
   not crash the site and disappears from the screen upon refreshing WP Admin.However,
   having enabled debugging for another issue I thought it was about time to try
   and resolve it!
 * When activating Lightstart, the following error is displayed:
   _Fatal error: Uncaught
   Error: Call to a member function get\_page\_permastruct() on null in /home/customer/
   www/syndishows.com/public\_html/wp-includes/link-template.php:435 Stack trace:#
   0 /home/customer/www/syndishows.com/public\_html/wp-includes/link-template.php(
   397): \_get\_page\_link(Object(WP\_Post), false, false) #1 /home/customer/www/
   syndishows.com/public\_html/wp-includes/link-template.php(197): get\_page\_link(
   Object(WP\_Post), false, false) #2 /home/customer/www/syndishows.com/public\_html/
   wp-content/plugins/google-sitemap-generator/sitemap.php(538): get\_permalink(
   Object(WP\_Post)) #3 /home/customer/www/syndishows.com/public\_html/wp-includes/
   class-wp-hook.php(324): indexnow\_after\_post\_save(‘publish’, ‘private’, Object(
   WP\_Post)) #4 /home/customer/www/syndishows.com/public\_html/wp-includes/class-
   wp-hook.php(348): WP\_Hook->apply\_filters(NULL, Array) #5 /home/customer/www/
   syndishows.com/public\_html/wp-includes/plugin.php(517): WP\_Hook->do\_action(
   Array) #6 /home/customer/www/syndishows.com/public\_html/wp-includes/post.php(
   5521): do\_action(‘transition\_post…’, ‘publish’, ‘private’, Object(WP\_Post))#
   7 /home/customer/www/syndishows.com/public\_html/wp-includes/post.php(5053): 
   wp\_transition\_post\_status(‘publish’, ‘private’, Object(WP\_Post)) #8 /home/
   customer/www/syndishows.com/public\_html/wp-content/plugins/wp-maintenance-mode/
   includes/classes/wp-maintenance-mode.php(105): wp\_publish\_post(Object(WP\_Post))#
   9 /home/customer/www/syndishows.com/public\_html/wp-content/plugins/wp-maintenance-
   mode/includes/classes/wp-maintenance-mode.php(171): WP\_Maintenance\_Mode->\_\
   _construct() #10 /home/customer/www/syndishows.com/public\_html/wp-includes/class-
   wp-hook.php(324): WP\_Maintenance\_Mode::get\_instance(”) #11 /home/customer/
   www/syndishows.com/public\_html/wp-includes/class-wp-hook.php(348): WP\_Hook-
   >apply\_filters(NULL, Array) #12 /home/customer/www/syndishows.com/public\_html/
   wp-includes/plugin.php(517): WP\_Hook->do\_action(Array) #13 /home/customer/www/
   syndishows.com/public\_html/wp-settings.php(555): do\_action(‘plugins\_loaded’)#
   14 /home/customer/www/syndishows.com/public\_html/wp-config.php(107): require\
   _once(‘/home/customer/…’) #15 /home/customer/www/syndishows.com/public\_html/
   wp-load.php(50): require\_once(‘/home/customer/…’) #16 /home/customer/www/syndishows.
   com/public\_html/wp-admin/admin.php(34): require\_once(‘/home/customer/…’) #17{
   main} thrown in /home/customer/www/syndishows.com/public\_html/wp-includes/link-
   template.php on line 435_
 * For users accessing the site with Lightstart enabled, they see the Maintenance
   Mode page as intended but with the following error at the top:
   _Notice: Function
   wp\_enqueue\_style was called incorrectly. Scripts and styles should not be registered
   or enqueued until the wp\_enqueue\_scripts, admin\_enqueue\_scripts, or login\
   _enqueue\_scripts hooks. This notice was triggered by the otter-google-fonts-
   628 handle. Please see Debugging in WordPress for more information. (This message
   was added in version 3.3.0.) in /home/customer/www/syndishows.com/public\_html/
   wp-includes/functions.php on line 6085_
 * Any suggestions? Or is it a case of just creating a new template for the plugin
   to use when enabled?

Viewing 1 replies (of 1 total)

 *  [mara3](https://wordpress.org/support/users/mara3/)
 * (@mara3)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/error-when-activating-lightstart/#post-17950150)
 * Hi [@simonjonharding](https://wordpress.org/support/users/simonjonharding/),
 * Thank you for using LightStart!
 * I have tried to replicate this issue on a fresh instance, but everything worked
   well. I installed the plugin, activate it and didn’t encounter any error. Can
   you please check if this is not a plugin conflict or a caching problem so we 
   can better assist you?
    1. Checking for a plugin conflict – you can use [this doc](https://docs.themeisle.com/article/1112-theme-doesnt-work-as-expected-troubleshooting-guide)
       for troubleshooting;
    2. Checking for a caching problem – use [this article](https://docs.themeisle.com/article/1526-how-to-clear-the-cache-in-wordpress)
       to guide you through the steps;
 * Please let us know how it goes!
 * Kind regards,
 * Mara

Viewing 1 replies (of 1 total)

The topic ‘Error When Activating Lightstart’ is closed to new replies.

 * ![](https://ps.w.org/wp-maintenance-mode/assets/icon-256x256.gif?rev=3027645)
 * [LightStart - Maintenance Mode, Coming Soon and Landing Page Builder](https://wordpress.org/plugins/wp-maintenance-mode/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-maintenance-mode/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-maintenance-mode/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-maintenance-mode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-maintenance-mode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-maintenance-mode/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [mara3](https://wordpress.org/support/users/mara3/)
 * Last activity: [1 year, 9 months ago](https://wordpress.org/support/topic/error-when-activating-lightstart/#post-17950150)
 * Status: resolved