LSC suddenly givews internal server error because of...

#1
In Prestashop 1.6.1.20 with LSC 1.2.4 running for some month we suddenly get following in the log:
Code:
02-Oct-2018 13:36:15 Europe/Copenhagen] PHP Warning:  include(rhared/LscEnv.php): failed to open stream: No such file or directory in /home/umaxdk/sites/fotoc.dk/modules/litespeedcache/thirdparty/lsc_include.php on line 30
[02-Oct-2018 13:36:15 Europe/Copenhagen] PHP Warning:  include(rhared/LscEnv.php): failed to open stream: No such file or directory in /home/umaxdk/sites/fotoc.dk/modules/litespeedcache/thirdparty/lsc_include.php on line 30
[02-Oct-2018 13:36:15 Europe/Copenhagen] PHP Warning:  include(): Failed opening 'rhared/LscEnv.php' for inclusion (include_path='.:/opt/cpanel/ea-php71/root/usr/share/pear') in /home/umaxdk/sites/fotoc.dk/modules/litespeedcache/thirdparty/lsc_include.php on line 30
We checked the php file. It says:
// base must be included first
include 'LscIntegration.php';
// share for all PS versions
include 'shared/LscToken.php';
include 'shared/LscEnv.php';
// third-party theme integration
if (version_compare(_PS_VERSION_, '1.7.0.0', '>=')) { // for PS 1.7 only
    // default built-in modules
    include '1.7/LscCustomerSignIn.php';
    include '1.7/LscShoppingcart.php';
    // integrated modules, feel free to comment out if you don't need
    include '1.7/iqit/loader.php';
    include '1.7/LscGdprPro.php';
} else { // for PS 1.6 only
    // default built-in modules
    include '1.6/LscBlockCart.php';
    include '1.6/LscBlockUserInfo.php';
    include '1.6/LscCompareProduct.php';
It looks like "shared" has been changed to "rhared" somewhere, but we can not see where, or why?

Any ideas how to solve this?
Regards
Bjarne
 
Last edited by a moderator:

Lauren

LiteSpeed Staff
Staff member
#2
you can check the timestamp on this file: /home/umaxdk/sites/fotoc.dk/modules/litespeedcache/thirdparty/lsc_include.php
maybe someone manually modified it and had a typo. simply change it to proper directory name "shared"
I checked my original package, it is correct.
 
#3
Timestamp says august 25´th
content of lsc_include.php is:
PHP:
<?php
/**
 * LiteSpeed Cache for Prestashop
 *
 * NOTICE OF LICENSE
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see https://opensource.org/licenses/GPL-3.0 .
 *
 * @author   LiteSpeed Technologies
 * @copyright  Copyright (c) 2017-2018 LiteSpeed Technologies, Inc. (https://www.litespeedtech.com)
 * @license     https://opensource.org/licenses/GPL-3.0
 */

// base must be included first
include 'LscIntegration.php';

// share for all PS versions
include 'shared/LscToken.php';
include 'shared/LscEnv.php';

// third-party theme integration
if (version_compare(_PS_VERSION_, '1.7.0.0', '>=')) { // for PS 1.7 only
   // default built-in modules
   include '1.7/LscCustomerSignIn.php';
   include '1.7/LscShoppingcart.php';

   // integrated modules, feel free to comment out if you don't need
   include '1.7/iqit/loader.php';
   include '1.7/LscGdprPro.php';
} else { // for PS 1.6 only
   // default built-in modules
   include '1.6/LscBlockCart.php';
   include '1.6/LscBlockUserInfo.php';
   include '1.6/LscCompareProduct.php';
}
Nobody made manual change here, and it says "shared"
So question is, where does rhared come from. (this was also the question in my first post)
 
Last edited by a moderator:
Top