• Resolved mikepalmer

    (@mikepalmer)


    Hi,

    I have around 50 websites where I have defined Server IP in LiteSpeed -> General -> General Settings.

    I need to clear the field because my host provider intends to migrate all my sites to a new server. When I clear the field and save settings, I get the following error reported:

    “You need to set the Server IP first. Please use the command wp litespeed-option set server_ip __your_ip_value__ to set.”

    If I save the page a second time, the field seems to be clear and there is no error reported on the second save. Therefore the save seems to have been successful, but I am concerned about the error. I don’t want to mess up 50 websites! Can you advise please?

    All the best, Mike.

Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Support qtwrk

    (@qtwrk)

    were you changing at webpage ? or changing via WP CLI?

    Thread Starter mikepalmer

    (@mikepalmer)

    I was changing it on the website dashboard. The same error ocurrs on each website I try.

    Plugin Support qtwrk

    (@qtwrk)

    I can’t reproduce on my test site

    please create a ticket by mail to support at litespeedtech.com with reference link to this topic , we will investigate further.

    Thread Starter mikepalmer

    (@mikepalmer)

    Email sent.

    The error is readily reproducable with the following steps:

    • New WordPress installation (on a server with LiteSpeed web server in use)
    • Install and activate LiteSpeed Cache
    • In LiteSpeed Cache -> General -> General Settings set Servier IP to the IP Address of the server in use
    • Save Settings
    • Go back to LiteSpeed Cache -> General -> General Settings and delete the contents of the Server IP field
    • Save Settings

    The following error is displayed at the top of the page:

    You need to set the Server IP first. Please use the command wp litespeed-option set server_ip __your_ip_value__ to set.

    All the best, Mike.

    Plugin Support qtwrk

    (@qtwrk)

    Go back to LiteSpeed Cache -> General -> General Settings and delete the contents of the Server IP field

    oh this part, now I understand, it doesn’t allow it to be empty once is configured , unless you delete the database row for this option

    Thread Starter mikepalmer

    (@mikepalmer)

    Could you please specifiy exactly how you do that? I have 50 websites in which I want the Server IP cleared.

    • This reply was modified 3 months ago by mikepalmer.
    Plugin Support qtwrk

    (@qtwrk)

    DELETE FROM wp_options WHERE option_name = 'litespeed.conf.server_ip';

    you need to run this query in mysql client or phpmyadmin or something

    but why don’t you just update it to new IP ? instead of delete it?

    Thread Starter mikepalmer

    (@mikepalmer)

    Many thanks.

    My hosting provider is not telling me the new IP Address until the day of the migration. I do not want to edit 50 websites then. I want to edit them now to make them independent of what server is used.

    All the best, Mike.

    Plugin Support litetim

    (@litetim)

    @mikepalmer is QC connection established?

    Thread Starter mikepalmer

    (@mikepalmer)

    It is on the 50 websites in question; not on the website where I derived the steps to reproduce.

    Plugin Support litetim

    (@litetim)

    @mikepalmer I understnad you will have to update 50 sites. my question was:
    Does the error appear when connected to QC and you try to empty the Server IP?

    Thread Starter mikepalmer

    (@mikepalmer)

    Yes

    Plugin Support litetim

    (@litetim)

    @mikepalmer removing the SERVER IP and getting that error do not stops the update.
    We added some way to show user that SERVER IP is not filled ON CHANGE. That is why saving sevind time will not show the error message.
    I will talk to the develoeprs and see if we can improve the message

    Plugin Support litetim

    (@litetim)

    Is there something else I can help you with?

    Thread Starter mikepalmer

    (@mikepalmer)

    Yes, I did notice that the server IP was deleted successfully despite the error message. (I was just somewhat concerned by the error message.)

    Thank you for your help.

    • This reply was modified 3 months ago by mikepalmer.
    • This reply was modified 3 months ago by mikepalmer.
Viewing 15 replies - 1 through 15 (of 16 total)

You must be logged in to reply to this topic.