Title: Fatal Error when activating?
Last modified: June 26, 2017

---

# Fatal Error when activating?

 *  Resolved [Hampmir](https://wordpress.org/support/users/hampmir/)
 * (@hampmir)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-when-activating-46/)
 * Hi Guys
 * I have searched the forum for answers and found threads like this but havnt found
   a solution.
 * My site is slow so i contacted my host and they asked me to install this plugin,
   but when i try to do it i get a fatal error saying this:
 * ERROR 3540: Invalid Rewrite List. Empty or invalid rule. Rule: mobileview_rules,
   list: EMPTY
 * – Then i asked my host why this happens and then they said they think it has 
   something to do with the htaccess file but they cannot help me with that. And
   they won’t help me further until i have succesfully installed this plugin. I 
   do not think this plugin magically makes everything fast, but i need to install
   it to make them help me again -What a host i got :/
 * Can you guys please help me. This is my webshop, as you can see it loads really
   slow.
    [http://timetextest.timetex.dk/produkt-kategori/toej/t-shirts/](http://timetextest.timetex.dk/produkt-kategori/toej/t-shirts/)
    -  This topic was modified 8 years, 11 months ago by [Hampmir](https://wordpress.org/support/users/hampmir/).

Viewing 15 replies - 1 through 15 (of 20 total)

1 [2](https://wordpress.org/support/topic/fatal-error-when-activating-46/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/fatal-error-when-activating-46/page/2/?output_format=md)

 *  Plugin Author [LiteSpeed Technologies](https://wordpress.org/support/users/litespeedtech/)
 * (@litespeedtech)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-when-activating-46/#post-9261809)
 * Hi [@hampmir](https://wordpress.org/support/users/hampmir/)
 * Thanks for the quick reply, we’ll try to figure out what’s going on. I see the
   area that’s failing, but not sure why it’s failing there.
 * A couple questions:
 * 1. Is your WordPress a single site or a multisite?
 * 2. Did you ever have our plugin installed and activated?
 * If you are willing to help us debug the issue, could you modify the following
   file:
    `wp-content/plugins/litespeed-cache/admin/class-litespeed-cache-admin-
   rules.php`
 * At around line 517, there is a line:
 *     ```
       		if ( $input[LiteSpeed_Cache_Config::OPID_MOBILEVIEW_ENABLED] ) {
       ```
   
 * Could you add the following line above it:
 *     ```
       error_log('INPUT IS ' . print_r($input, true));
       ```
   
 * Then try to activate the plugin again.
 * This will either create an error log or append to your error log (this is commonly
   found in /home/youruser/public_html/error_log or /home/youruser/public_html/wp-
   admin/error_log
 * but it may vary depending on your setup.
 * Please let us know what you get!
 * Cheers,
    Kevin
 *  Thread Starter [Hampmir](https://wordpress.org/support/users/hampmir/)
 * (@hampmir)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-when-activating-46/#post-9261866)
 * 1. Its a single site, i am only using it on this subdomain although my server
   has two domains timetex.dk and timetextest.timetex.dk 🙂
 * 2.I don’t think i have ever had it activated no, it came with the package i bought
   from my host so i don’t know if it was activated at the start, i did now know
   it was installed before i had this issue. 🙂
 * – I have tried to change the code but i can’t seem to find the error-log you 
   mention, i have looked through the folders but i do not have a folder called 
   public_html.
 *  Plugin Author [LiteSpeed Technologies](https://wordpress.org/support/users/litespeedtech/)
 * (@litespeedtech)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-when-activating-46/#post-9261871)
 * The error_log file may be wherever your wordpress is installed, each host does
   things their own way, so if you look for close to where your wp-admin directory
   is, that may be where the file is.
 *  Plugin Support [Hai Zheng⚡](https://wordpress.org/support/users/hailite/)
 * (@hailite)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-when-activating-46/#post-9261953)
 * Hi [@hampmir](https://wordpress.org/support/users/hampmir/),
 * do you mind creating a ticket in our system and give the access to your server
   ssh and wp-admin? We can have a look at it.
 * Thanks,
    Hai
 *  Thread Starter [Hampmir](https://wordpress.org/support/users/hampmir/)
 * (@hampmir)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-when-activating-46/#post-9261963)
 * I have tryed to find the file but i cannot find it anywhere. I will make a ticket
   yes. Thank you 🙂
 *  Thread Starter [Hampmir](https://wordpress.org/support/users/hampmir/)
 * (@hampmir)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-when-activating-46/#post-9261995)
 * eehm, how do i create an account on your site so i can submit a ticket? the forum
   account on your site does not work for submitting tickets? 🙂
 * I just submitted a ticket on how to submit a ticket o.O
    -  This reply was modified 8 years, 11 months ago by [Hampmir](https://wordpress.org/support/users/hampmir/).
 *  Plugin Author [LiteSpeed Technologies](https://wordpress.org/support/users/litespeedtech/)
 * (@litespeedtech)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-when-activating-46/#post-9262036)
 * Hi Hampmir,
 * You can send us an email (It’s listed in the plugin’s main page under incompatible
   plugins, we’d rather not repeat it here.)
 * Just attach a link to this thread so we know the context.
 * Cheers,
    Kevin
 *  Plugin Support [Hai Zheng⚡](https://wordpress.org/support/users/hailite/)
 * (@hailite)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-when-activating-46/#post-9262101)
 * Hi [@hampmir](https://wordpress.org/support/users/hampmir/),
 * Saw your ticket. Will check and answer you there.
 *  Plugin Support [Hai Zheng⚡](https://wordpress.org/support/users/hailite/)
 * (@hailite)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-when-activating-46/#post-9262258)
 * Hi [@hampmir](https://wordpress.org/support/users/hampmir/),
 * Its fixed. It caused because you used to enable an old lscache version and the
   configuration has mobile view is true but rules are empty. That means your old
   config is messed up somehow.
 * I manually added `$options['mobileview_enabled'] = false;` in function `plugin_activation()`
   after line `$options = $this->get_options();` to disable mobile view switch when
   activation. After activated, I removed that line.
 * It works now. Enjoy your litespeed.
 * Cheers,
    Hai
 *  Thread Starter [Hampmir](https://wordpress.org/support/users/hampmir/)
 * (@hampmir)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-when-activating-46/#post-9264537)
 * Thank you so much, it’s an awesome service that you want to take the time to 
   log in on my site and help me solve my problem! The site isnt as fast as i hoped
   though, it is still pretty slow but it cut a very large amount of the loading
   time, at least 50% so thank you a lot!
 *  Plugin Support [Hai Zheng⚡](https://wordpress.org/support/users/hailite/)
 * (@hailite)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-when-activating-46/#post-9265758)
 * [@hampmir](https://wordpress.org/support/users/hampmir/) Well if you visit as
   a guest(non-login user), you will see the speed is different. Before its 3.5s,
   now its under 400ms.
 * In our next main release v1.2, we will have ESI, which can also cache logged 
   in user
 *  Thread Starter [Hampmir](https://wordpress.org/support/users/hampmir/)
 * (@hampmir)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-when-activating-46/#post-9265851)
 * Oh i see, i din’t know there was a difference between logged in users and guests.
   Its much faster when you are logged out that is correct.
 * I do still think its kinda slow when you visit a catagory for the first time,
   which most of my users will do when they find my site, but when they have been
   to a catagory once and it is cached then it goes super fast. Is there a way to
   shorten the time it takes to load a catagory the first time? It’s definatly moving
   in the right direction 🙂
    -  This reply was modified 8 years, 11 months ago by [Hampmir](https://wordpress.org/support/users/hampmir/).
    -  This reply was modified 8 years, 11 months ago by [Hampmir](https://wordpress.org/support/users/hampmir/).
    -  This reply was modified 8 years, 11 months ago by [Hampmir](https://wordpress.org/support/users/hampmir/).
 *  Plugin Support [Hai Zheng⚡](https://wordpress.org/support/users/hailite/)
 * (@hailite)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-when-activating-46/#post-9265860)
 * That is a good question. That is why we have crawler ^_^
 * Try it. It can automatically visit your “new” pages to cache them.
 *  Plugin Author [LiteSpeed Technologies](https://wordpress.org/support/users/litespeedtech/)
 * (@litespeedtech)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-when-activating-46/#post-9265919)
 * [@hampmir](https://wordpress.org/support/users/hampmir/)
 * To add to Hai’s response, our cache works like so:
    If there are no cache entries,
   go to WordPress. Process WordPress and create cache entry. return to client.
 * So the fast response times are when the page is served from cache. If the page
   is not in the cache, it will take some time to create the page.
 * If you do not update your site often, you can set an extremely long TTL time (
   e.g. a week or a month), and that way it’s almost guaranteed to be a cache hit
   until you update your site again. Our plugin will know whenever you update your
   site, so the cache should be cleared automatically.
 * As Hai mentioned, the crawler is available as well to make sure that your pages
   are cached.
 * Hope this helps,
    Kevin
 *  Thread Starter [Hampmir](https://wordpress.org/support/users/hampmir/)
 * (@hampmir)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-when-activating-46/#post-9265947)
 * Okay thanks for the explaination, i tryed activating the crawler but it seems
   that i cant do this without my host doing it, and im on a shared server so the
   documentation doesnt recommend it.
 * But just to be clear, if i visit one of the site manually and it gets cashed,
   will that also mean that if a random person comes to look at that page the next
   day, it will also be cashed for that person, or is it just me? 🙂

Viewing 15 replies - 1 through 15 (of 20 total)

1 [2](https://wordpress.org/support/topic/fatal-error-when-activating-46/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/fatal-error-when-activating-46/page/2/?output_format=md)

The topic ‘Fatal Error when activating?’ is closed to new replies.

 * ![](https://ps.w.org/litespeed-cache/assets/icon-256x256.png?rev=2554181)
 * [LiteSpeed Cache](https://wordpress.org/plugins/litespeed-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/litespeed-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/litespeed-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/litespeed-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/litespeed-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/litespeed-cache/reviews/)

## Tags

 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)

 * 20 replies
 * 3 participants
 * Last reply from: [Hampmir](https://wordpress.org/support/users/hampmir/)
 * Last activity: [8 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-when-activating-46/page/2/#post-9269564)
 * Status: resolved