• Resolved itspetrus

    (@itspetrus)


    Hi,

    Whenever I activate the maintenance mode I get an error: “Error thrown
    Call to a member function get_page_permastruct() on null”.

    After pressing the F5 key everything is okay. Just upgraded WordPress to version 6.2 while using version 2.6.7 of the “LightStart – Maintenance Mode, Coming Soon and Landing Page Builder” but the error is still there.

    Even with all other plugins deactivated, I still get this error. Is there anything I can do about it?

    Best regards,
    Peter.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hi @itspetrus,

    Thanks for choosing LightStart!

    What PHP version do you use?

    Thanks!

    Thread Starter itspetrus

    (@itspetrus)

    That would be version 7.4.33. It should be updated right? So, I did. I selected version 8.1.18 in my hostpanel. Waited some while, refreshed, but I do still get the error …

    Hi @itspetrus!

    Could you please install the WP Debugging plugin to see the entire error text and then paste it here?

    Thank you!

    Thread Starter itspetrus

    (@itspetrus)

    Hi,

    Right after activating the WP Debugging plugin I got some errors. Those errors contain full paths. Doesn’t seem to be smart to dump it al here, right? Is there another way?

    Excerpt:
    Warning: file_exists(): open_basedir restriction in effect. (one)
    Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in (many)

    Besides that, with WP Debugging active, I cannot use the “save settings button” of LMM anymore.

    Best regards,
    Peter.

    Hi @itspetrus!

    To make sure no details about your site are disclosed on the forum, you can use a self-destroy tool like?pastebin?(or some other tools) to share the information with us.

    You can select the “burn after read” option so that all the info will be automatically erased after it is read.

    Thank you!

    Thread Starter itspetrus

    (@itspetrus)

    Hi,

    Okay, hopefully I did it the right way. You could check out https://pastebin.com/twH3JVkg.

    It’s the error output on my (not public available) testsite. The same output I get on the real site as well.

    Best regards,
    Peter.

    • This reply was modified 1 year, 5 months ago by itspetrus. Reason: Textual correction

    Hi @itspetrus!

    Thanks for providing the error!

    It doesn’t seem to be related to LightStart, but rather to WordPress itself and the WP Super Cache plugin. Please try to deactivate that plugin, then activate LightStart and check if the issue persists.

    Thank you!

    Thread Starter itspetrus

    (@itspetrus)

    Hi,

    I guess you are right. Strange, because I tried to disable all plugins and the error was still there. Now that I disable the WP Super Cache plugin only, the error indeed disappears. I suppose that’s not something you can do anything about? Thanks anyway for your help!

    Best regards,
    Peter.

    Hi @itspetrus!

    Unfortunately, there is nothing we can do about this from our end, since the error that you get is not related to LightStart.

    Thanks for understanding and have a nice day!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Error about get_page_permastruct when activating maintenance mode’ is closed to new replies.