Blank Index/admin Pages After Install

Hi All,



I installed the latest 4.2.4 version of CS Cart but the domain/index.php and domain/admin.php return blank white pages. The install seemed to go ok until it completed and tried to redirect to http:///admin.php?welcome= and then nothing.



For the install, I set all the file and folder permissions for /design, /images, /var and /install to 755 (the host doesn't allow 777 for the folders and automatically switches them back to 755) and the config.local.php to 666 as recommended but no luck with two attempts. After the install, I left the folders at 755 and set all the files back to 644 to resecure the site which didn't change the result. The current PHP version is 5.3.



I tried some fixes from what little info I could find in the forums and docs but nothing helped. I work in IT support and I've installed a few other carts before so I know my way around (FTP'ing, creating databases/users, CMS backend configuring, editing stylesheets, simple coding, etc.) but I'm not a pro web dev so I could use some help with this.



Below is my config.local.php code if that helps. I've replaced the actual domain, database name/user/pass and key code with for public posting. The only production changes made were setting the @ini_set memory limit to 128M and default permissions to 644/755. I'll change the admin.php file name after I know I can get into the backend.


```php
/***************************************************************************

  •   																  *
  • (c) 2004 Vladimir V. Kalynyak, Alexey V. Vinokurov, Ilya M. Shalnev *
  •   																  *
  • This is commercial software, only users who have purchased a valid *
  • license and accept to the terms of the License Agreement can install *
  • and use this program. *
  •   																  *

****************************************************************************

  • PLEASE READ THE FULL TEXT OF THE SOFTWARE LICENSE AGREEMENT IN THE *
  • “copyright.txt” FILE PROVIDED WITH THIS DISTRIBUTION PACKAGE. *

    ***************************************************************************/



    if (!defined('BOOTSTRAP')) { die('Access denied'); }



    /

  • PHP options

    /



    // Log everything, but do not display

    error_reporting(E_ALL);

    ini_set('display_errors', 0);



    // Set maximum memory limit

    if (PHP_INT_SIZE == 4 && (substr(ini_get('memory_limit'), 0, -1) < “64”)) {

    // 32bit PHP

    @ini_set('memory_limit', '128M');

    } elseif (PHP_INT_SIZE == 8 && (substr(ini_get('memory_limit'), 0, -1) < “256”)) {

    // 64bit PHP

    @ini_set('memory_limit', '256M');

    }



    if (!defined('CONSOLE')) {

    // Set maximum time limit for script execution.

    @set_time_limit(3600);

    }



    /

  • Database connection options

    /

    $config['db_host'] = 'localhost';

    $config['db_name'] = '';

    $config['db_user'] = '';

    $config['db_password'] = '';



    $config['database_backend'] = 'mysqli';



    // Database tables prefix

    $config['table_prefix'] = 'cscart_';



    /

  • Script location options

    *
  • Example:
  • Your url is http://www.yourcompany.com/store/cart
  • $config['http_host'] = 'www.yourcompany.com';
  • $config['http_path'] = '/store/cart';

    *
  • Your secure url is https://secure.yourcompany.com/secure_dir/cart
  • $config['https_host'] = 'secure.yourcompany.com';
  • $config['https_path'] = '/secure_dir/cart';

    *

    /



    // Host and directory where software is installed on no-secure server

    $config['http_host'] = '';

    $config['http_path'] = '';



    // Host and directory where software is installed on secure server

    $config['https_host'] = '';

    $config['https_path'] = '';



    /

  • Misc options

    */

    // Names of index files for the frontend and backend

    $config['customer_index'] = 'index.php';

    $config['admin_index'] = 'admin.php';





    // DEMO mode

    $config['demo_mode'] = false;



    // Tweaks

    $config['tweaks'] = array (

    'anti_csrf' => false, // protect forms from CSRF attacks

    'disable_block_cache' => false, // used to disable block cache

    'disable_localizations' => true, // Disable Localizations functionality

    'disable_dhtml' => false, // Disable Ajax-based pagination and Ajax-based “Add to cart” button

    'gzip_css_js' => false, // gzip compiled css/js files

    'dev_js' => false, // set to true to disable js files compilation

    'redirect_to_cart' => false, // Redirect customer to the cart contents page. Used with the “disable_dhtml” setting.

    'api_https_only' => false, // Allows the use the API functionality only by the HTTPS protocol

    'api_allow_customer' => false, // Allow open API for unauthorized customers

    'lazy_thumbnails' => false, // generate image thumbnails on the fly

    );



    // Key for sensitive data encryption

    $config['crypt_key'] = '';



    // Cache backend

    // Available backends: file, sqlite, database, redis

    // To use sqlite cache the “sqlite3” PHP module should be installed

    $config['cache_backend'] = 'file';

    $config['cache_redis_server'] = 'localhost';

    $config['cache_redis_global_ttl'] = 0; // set this if your cache size reaches Redis server memory size



    // Storage backend for sessions. Available backends: database, redis

    $config['session_backend'] = 'database';

    $config['session_redis_server'] = 'localhost';



    // CDN server backend

    $config['cdn_backend'] = 'cloudfront';



    // Storage options

    $config['storage'] = array(

    'images' => array(

    'prefix' => 'images',

    'dir' => $config['dir']['root'],

    'cdn' => true

    ),

    'downloads' => array(

    'prefix' => 'downloads',

    'secured' => true,

    'dir' => $config['dir']['var']

    ),

    'statics' => array(

    'dir' => & $config['dir']['cache_misc'],

    'prefix' => 'statics',

    'cdn' => true

    ),

    'custom_files' => array(

    'dir' => & $config['dir']['var'],

    'prefix' => 'custom_files'

    )

    );



    // Default permissions for newly created files and directories

    define('DEFAULT_FILE_PERMISSIONS', 0644);

    define('DEFAULT_DIR_PERMISSIONS', 0755);



    // Maximum number of files, stored in directory. You may change this parameter straight after a store was installed. And you must not change it when the store has been populated with products already.

    define('MAX_FILES_IN_DIR', 1000);



    // Developer configuration file

    if (file_exists(DIR_ROOT . '/local_conf.php')) {

    include_once(DIR_ROOT . '/local_conf.php');

    } ```

Ok so I tried a shotgun approach to this by editing the config.local.php default file permissions prior to install and chmod'ing all the files and folders in the /public_html directory to 755 but domain/admin.php and domain/index.php are still returning blank white pages.



Anyone have the same problem? What was the fix?

Possible issue using 755 to install,not 777. how quick do they change them back to 755, they should be 777 just for install then change back to 755

try another install if you can @ 777



or whats the .htaccess in root like

John

Try to replace:



error_reporting(E_ALL);
ini_set('display_errors', 0);




with



error_reporting(E_ALL);
ini_set('display_errors', 1);
define('DEVELOPMENT', true);




Then reload the page and check if any error message is displayed

[quote name='johnbol1' timestamp='1420662476' post='201891']

Possible issue using 755 to install,not 777. how quick do they change them back to 755, they should be 777 just for install then change back to 755

try another install if you can @ 777



or whats the .htaccess in root like

John

[/quote]



Thanks for your response. The host does not allow 777 and immediately changes permission to 755. The server can also automatically delete folders/files set to 777 for security purposes. I think this is a trend by hosts to reduce security issues and support time.



I also renamed the .htaccess file to remove it from the equation and no change.

[quote name='eComLabs' timestamp='1420714001' post='201939']

Try to replace:



error_reporting(E_ALL);
ini_set('display_errors', 0);




with



error_reporting(E_ALL);
ini_set('display_errors', 1);
define('DEVELOPMENT', true);




Then reload the page and check if any error message is displayed

[/quote]



Thanks for your reply. I did as you recommended and the index page still loads blank. I'm beginning to think the site is not installing properly. Here's the error log.



PHP Warning: Cannot open 'extra/browscap.ini' for reading in Unknown on line 0
[07-Jan-2015 23:43:10 Europe/Moscow] PHP Warning: preg_replace() has been disabled for security reasons in /home//public_html/app/lib/other/smarty/sysplugins/smarty_resource.php on line 170
[07-Jan-2015 23:43:10 Europe/Moscow] PHP Warning: getcwd() has been disabled for security reasons in /home//public_html/app/functions/fn.fs.php on line 85
[07-Jan-2015 13:43:20 America/Chicago] PHP Warning: Cannot open 'extra/browscap.ini' for reading in Unknown on line 0
[07-Jan-2015 23:43:24 Europe/Moscow] PHP Warning: getcwd() has been disabled for security reasons in /home//public_html/app/functions/fn.fs.php on line 85
[07-Jan-2015 23:43:24 Europe/Moscow] PHP Warning: getcwd() has been disabled for security reasons in /home//public_html/app/functions/fn.fs.php on line 85
[07-Jan-2015 13:43:36 America/Chicago] PHP Warning: Cannot open 'extra/browscap.ini' for reading in Unknown on line 0
[07-Jan-2015 23:43:38 Europe/Moscow] PHP Warning: getcwd() has been disabled for security reasons in /home//public_html/app/functions/fn.fs.php on line 85
[07-Jan-2015 23:43:38 Europe/Moscow] PHP Warning: getcwd() has been disabled for security reasons in /home//public_html/app/functions/fn.fs.php on line 85
[07-Jan-2015 13:45:40 America/Chicago] PHP Warning: Cannot open 'extra/browscap.ini' for reading in Unknown on line 0
[07-Jan-2015 23:45:42 Europe/Moscow] PHP Warning: getcwd() has been disabled for security reasons in /home//public_html/app/functions/fn.fs.php on line 85
[07-Jan-2015 23:45:42 Europe/Moscow] PHP Warning: getcwd() has been disabled for security reasons in /home//public_html/app/functions/fn.fs.php on line 85
[07-Jan-2015 13:45:48 America/Chicago] PHP Warning: Cannot open 'extra/browscap.ini' for reading in Unknown on line 0
[07-Jan-2015 23:45:51 Europe/Moscow] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 64 bytes) in /home//public_html/app/lib/other/lessphp/lessc.inc.php on line 3404
[07-Jan-2015 13:45:53 America/Chicago] PHP Warning: Cannot open 'extra/browscap.ini' for reading in Unknown on line 0
[07-Jan-2015 23:45:56 Europe/Moscow] PHP Warning: getcwd() has been disabled for security reasons in /home//public_html/app/functions/fn.fs.php on line 85
[07-Jan-2015 23:45:56 Europe/Moscow] PHP Warning: getcwd() has been disabled for security reasons in /home//public_html/app/functions/fn.fs.php on line 85
[07-Jan-2015 14:15:39 America/Chicago] PHP Warning: Cannot open 'extra/browscap.ini' for reading in Unknown on line 0
[08-Jan-2015 00:15:42 Europe/Moscow] PHP Warning: getcwd() has been disabled for security reasons in /home//public_html/app/functions/fn.fs.php on line 85
[08-Jan-2015 00:15:42 Europe/Moscow] PHP Warning: getcwd() has been disabled for security reasons in /home//public_html/app/functions/fn.fs.php on line 85
[07-Jan-2015 15:30:12 America/Chicago] PHP Warning: Cannot open 'extra/browscap.ini' for reading in Unknown on line 0
[08-Jan-2015 03:38:34 America/Chicago] PHP Warning: Cannot open 'extra/browscap.ini' for reading in Unknown on line 0
[08-Jan-2015 03:38:40 America/Chicago] PHP Warning: Cannot open 'extra/browscap.ini' for reading in Unknown on line 0
[08-Jan-2015 13:38:46 Europe/Moscow] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 122880 bytes) in /home//public_html/app/lib/other/lessphp/lessc.inc.php on line 2586
[08-Jan-2015 09:55:48 America/Chicago] PHP Warning: Cannot open 'extra/browscap.ini' for reading in Unknown on line 0
[08-Jan-2015 09:55:53 America/Chicago] PHP Warning: Cannot open 'extra/browscap.ini' for reading in Unknown on line 0
[08-Jan-2015 19:55:58 Europe/Moscow] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 71 bytes) in /home//public_html/app/lib/other/lessphp/lessc.inc.php on line 2678
[08-Jan-2015 09:55:59 America/Chicago] PHP Warning: Cannot open 'extra/browscap.ini' for reading in Unknown on line 0
[08-Jan-2015 15:56:00 UTC] PHP Notice: Undefined offset: 1 in /home//public_html/app/Tygh/Session.php on line 182
[08-Jan-2015 15:56:00 UTC] PHP Notice: Undefined offset: 1 in /home//public_html/app/Tygh/Session.php on line 182
[08-Jan-2015 15:56:00 UTC] PHP Notice: Undefined offset: 1 in /home//public_html/app/Tygh/Session.php on line 182
[08-Jan-2015 15:56:00 UTC] PHP Notice: Undefined offset: 1 in /home//public_html/app/Tygh/Session.php on line 182
[08-Jan-2015 19:56:03 Europe/Moscow] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 71 bytes) in /home//public_html/app/lib/other/lessphp/lessc.inc.php on line 2690
[08-Jan-2015 09:56:04 America/Chicago] PHP Warning: Cannot open 'extra/browscap.ini' for reading in Unknown on line 0
[08-Jan-2015 19:56:07 Europe/Moscow] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 32 bytes) in /home//public_html/app/lib/other/lessphp/lessc.inc.php on line 3656
[08-Jan-2015 09:56:15 America/Chicago] PHP Warning: Cannot open 'extra/browscap.ini' for reading in Unknown on line 0
[08-Jan-2015 19:56:17 Europe/Moscow] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 72 bytes) in /home//public_html/app/lib/other/lessphp/lessc.inc.php on line 3115
[08-Jan-2015 10:01:45 America/Chicago] PHP Warning: Cannot open 'extra/browscap.ini' for reading in Unknown on line 0
[08-Jan-2015 20:01:48 Europe/Moscow] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 71 bytes) in /home//public_html/app/lib/other/lessphp/lessc.inc.php on line 2690
[08-Jan-2015 10:01:51 America/Chicago] PHP Warning: Cannot open 'extra/browscap.ini' for reading in Unknown on line 0
[08-Jan-2015 20:01:53 Europe/Moscow] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 72 bytes) in /home//public_html/app/lib/other/lessphp/lessc.inc.php on line 3115
[08-Jan-2015 10:02:02 America/Chicago] PHP Warning: Cannot open 'extra/browscap.ini' for reading in Unknown on line 0
[08-Jan-2015 10:02:04 America/Chicago] PHP Warning: Cannot open 'extra/browscap.ini' for reading in Unknown on line 0
[08-Jan-2015 20:02:08 Europe/Moscow] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 71 bytes) in /home//public_html/app/lib/other/lessphp/lessc.inc.php on line 2690
[08-Jan-2015 10:02:42 America/Chicago] PHP Warning: Cannot open 'extra/browscap.ini' for reading in Unknown on line 0
[08-Jan-2015 20:02:45 Europe/Moscow] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 71 bytes) in /home//public_html/app/lib/other/lessphp/lessc.inc.php on line 3656
[08-Jan-2015 10:02:48 America/Chicago] PHP Warning: Cannot open 'extra/browscap.ini' for reading in Unknown on line 0
[08-Jan-2015 20:02:51 Europe/Moscow] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 72 bytes) in /home//public_html/app/lib/other/lessphp/lessc.inc.php on line 3115
[08-Jan-2015 10:02:56 America/Chicago] PHP Warning: Cannot open 'extra/browscap.ini' for reading in Unknown on line 0
[08-Jan-2015 20:02:59 Europe/Moscow] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 32 bytes) in /home//public_html/app/lib/other/lessphp/lessc.inc.php on line 3655
[08-Jan-2015 10:20:25 America/Chicago] PHP Warning: Cannot open 'extra/browscap.ini' for reading in Unknown on line 0
[08-Jan-2015 10:20:34 America/Chicago] PHP Warning: Cannot open 'extra/browscap.ini' for reading in Unknown on line 0
[08-Jan-2015 20:20:38 Europe/Moscow] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 71 bytes) in /home//public_html/app/lib/other/lessphp/lessc.inc.php on line 3115
[08-Jan-2015 10:20:39 America/Chicago] PHP Warning: Cannot open 'extra/browscap.ini' for reading in Unknown on line 0
[08-Jan-2015 20:20:42 Europe/Moscow] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 71 bytes) in /home//public_html/app/lib/other/lessphp/lessc.inc.php on line 2678
[08-Jan-2015 10:22:50 America/Chicago] PHP Warning: Cannot open 'extra/browscap.ini' for reading in Unknown on line 0
[08-Jan-2015 20:22:53 Europe/Moscow] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 32 bytes) in /home//public_html/app/lib/other/lessphp/lessc.inc.php on line 3656
[08-Jan-2015 10:23:18 America/Chicago] PHP Warning: Cannot open 'extra/browscap.ini' for reading in Unknown on line 0
[08-Jan-2015 20:23:21 Europe/Moscow] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 32 bytes) in /home//public_html/app/lib/other/lessphp/lessc.inc.php on line 3656
[08-Jan-2015 10:25:07 America/Chicago] PHP Warning: Cannot open 'extra/browscap.ini' for reading in Unknown on line 0
[08-Jan-2015 20:25:09 Europe/Moscow] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 32 bytes) in /home//public_html/app/lib/other/lessphp/lessc.inc.php on line 3656
[08-Jan-2015 10:26:01 America/Chicago] PHP Warning: Cannot open 'extra/browscap.ini' for reading in Unknown on line 0
[08-Jan-2015 20:26:04 Europe/Moscow] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 72 bytes) in /home//public_html/app/lib/other/lessphp/lessc.inc.php on line 3115
[08-Jan-2015 10:26:09 America/Chicago] PHP Warning: Cannot open 'extra/browscap.ini' for reading in Unknown on line 0
[08-Jan-2015 20:26:12 Europe/Moscow] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 32 bytes) in /home//public_html/app/lib/other/lessphp/lessc.inc.php on line 3656
[08-Jan-2015 10:41:05 America/Chicago] PHP Warning: Cannot open 'extra/browscap.ini' for reading in Unknown on line 0
[08-Jan-2015 20:41:08 Europe/Moscow] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 32 bytes) in /home//public_html/app/lib/other/lessphp/lessc.inc.php on line 3656
[08-Jan-2015 10:42:04 America/Chicago] PHP Warning: Cannot open 'extra/browscap.ini' for reading in Unknown on line 0
[08-Jan-2015 10:42:06 America/Chicago] PHP Warning: Cannot open 'extra/browscap.ini' for reading in Unknown on line 0
[08-Jan-2015 20:42:09 Europe/Moscow] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 32 bytes) in /home//public_html/app/lib/other/lessphp/lessc.inc.php on line 3656
[08-Jan-2015 10:42:53 America/Chicago] PHP Warning: Cannot open 'extra/browscap.ini' for reading in Unknown on line 0
[08-Jan-2015 20:42:55 Europe/Moscow] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 64 bytes) in /home//public_html/app/lib/other/lessphp/lessc.inc.php on line 2678
[08-Jan-2015 10:43:00 America/Chicago] PHP Warning: Cannot open 'extra/browscap.ini' for reading in Unknown on line 0
[08-Jan-2015 20:43:03 Europe/Moscow] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 64 bytes) in /home//public_html/app/lib/other/lessphp/lessc.inc.php on line 2678
[08-Jan-2015 10:43:28 America/Chicago] PHP Warning: Cannot open 'extra/browscap.ini' for reading in Unknown on line 0
[08-Jan-2015 20:43:31 Europe/Moscow] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 64 bytes) in /home//public_html/app/lib/other/lessphp/lessc.inc.php on line 2678
[08-Jan-2015 10:43:45 America/Chicago] PHP Warning: Cannot open 'extra/browscap.ini' for reading in Unknown on line 0
[08-Jan-2015 20:43:48 Europe/Moscow] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 64 bytes) in /home//public_html/app/lib/other/lessphp/lessc.inc.php on line 3115
[08-Jan-2015 10:43:49 America/Chicago] PHP Warning: Cannot open 'extra/browscap.ini' for reading in Unknown on line 0
[08-Jan-2015 20:43:52 Europe/Moscow] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 32 bytes) in /home//public_html/app/lib/other/lessphp/lessc.inc.php on line 3656
[08-Jan-2015 10:44:29 America/Chicago] PHP Warning: Cannot open 'extra/browscap.ini' for reading in Unknown on line 0
[08-Jan-2015 20:44:31 Europe/Moscow] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 32 bytes) in /home//public_html/app/lib/other/lessphp/lessc.inc.php on line 3656
[08-Jan-2015 10:44:32 America/Chicago] PHP Warning: Cannot open 'extra/browscap.ini' for reading in Unknown on line 0
[08-Jan-2015 20:44:34 Europe/Moscow] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 71 bytes) in /home//public_html/app/lib/other/lessphp/lessc.inc.php on line 2678
[08-Jan-2015 10:45:07 America/Chicago] PHP Warning: Cannot open 'extra/browscap.ini' for reading in Unknown on line 0
[08-Jan-2015 20:45:10 Europe/Moscow] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 64 bytes) in /home//public_html/app/lib/other/lessphp/lessc.inc.php on line 2678
[08-Jan-2015 10:45:44 America/Chicago] PHP Warning: Cannot open 'extra/browscap.ini' for reading in Unknown on line 0
[08-Jan-2015 20:45:47 Europe/Moscow] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 64 bytes) in /home//public_html/app/lib/other/lessphp/lessc.inc.php on line 2678
[08-Jan-2015 10:47:19 America/Chicago] PHP Warning: Cannot open 'extra/browscap.ini' for reading in Unknown on line 0
[08-Jan-2015 20:47:21 Europe/Moscow] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 64 bytes) in /home//public_html/app/lib/other/lessphp/lessc.inc.php on line 2678
[08-Jan-2015 12:16:15 America/Chicago] PHP Warning: Cannot open 'extra/browscap.ini' for reading in Unknown on line 0
[08-Jan-2015 18:16:17 UTC] PHP Notice: Undefined offset: 1 in /home//public_html/app/Tygh/Session.php on line 182
[08-Jan-2015 22:16:21 Europe/Moscow] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 71 bytes) in /home//public_html/app/lib/other/lessphp/lessc.inc.php on line 2678
[08-Jan-2015 12:16:57 America/Chicago] PHP Warning: Cannot open 'extra/browscap.ini' for reading in Unknown on line 0
[08-Jan-2015 12:17:00 America/Chicago] PHP Warning: Cannot open 'extra/browscap.ini' for reading in Unknown on line 0
[08-Jan-2015 22:17:02 Europe/Moscow] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 32 bytes) in /home//public_html/app/lib/other/lessphp/lessc.inc.php on line 3656
[08-Jan-2015 13:39:18 America/Chicago] PHP Warning: Cannot open 'extra/browscap.ini' for reading in Unknown on line 0
[08-Jan-2015 23:39:29 Europe/Moscow] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 71 bytes) in /home//public_html/app/lib/other/lessphp/lessc.inc.php on line 3656
[08-Jan-2015 18:32:58 America/Chicago] PHP Warning: Cannot open 'extra/browscap.ini' for reading in Unknown on line 0
[08-Jan-2015 19:54:26 America/Chicago] PHP Warning: Cannot open 'extra/browscap.ini' for reading in Unknown on line 0
[09-Jan-2015 05:54:30 Europe/Moscow] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 32 bytes) in /home//public_html/app/lib/other/lessphp/lessc.inc.php on line 3656
[09-Jan-2015 02:53:20 America/Chicago] PHP Warning: Cannot open 'extra/browscap.ini' for reading in Unknown on line 0
[09-Jan-2015 02:53:43 America/Chicago] PHP Warning: Cannot open 'extra/browscap.ini' for reading in Unknown on line 0
[09-Jan-2015 12:53:46 Europe/Moscow] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 71 bytes) in /home//public_html/app/lib/other/lessphp/lessc.inc.php on line 3656
[09-Jan-2015 06:09:21 America/Chicago] PHP Warning: Cannot open 'extra/browscap.ini' for reading in Unknown on line 0
[09-Jan-2015 09:27:20 America/Chicago] PHP Warning: Cannot open 'extra/browscap.ini' for reading in Unknown on line 0
[09-Jan-2015 19:27:26 Europe/Moscow] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 71 bytes) in /home//public_html/app/lib/other/lessphp/lessc.inc.php on line 3115
[09-Jan-2015 10:25:12 America/Chicago] PHP Warning: Cannot open 'extra/browscap.ini' for reading in Unknown on line 0
[09-Jan-2015 20:25:15 Europe/Moscow] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 32 bytes) in /home//public_html/app/lib/other/lessphp/lessc.inc.php on line 3656
[09-Jan-2015 10:25:25 America/Chicago] PHP Warning: Cannot open 'extra/browscap.ini' for reading in Unknown on line 0
[09-Jan-2015 10:25:27 America/Chicago] PHP Warning: Cannot open 'extra/browscap.ini' for reading in Unknown on line 0
[09-Jan-2015 20:25:30 Europe/Moscow] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 32 bytes) in /home//public_html/app/lib/other/lessphp/lessc.inc.php on line 3656
[09-Jan-2015 10:25:37 America/Chicago] PHP Warning: Cannot open 'extra/browscap.ini' for reading in Unknown on line 0
[09-Jan-2015 10:25:39 America/Chicago] PHP Warning: Cannot open 'extra/browscap.ini' for reading in Unknown on line 0
[09-Jan-2015 20:25:43 Europe/Moscow] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 131072 bytes) in /home//public_html/app/lib/other/lessphp/lessc.inc.php on line 3730

Try to contact your server administrator and ask him to increase the value of the memory_limit server setting

[quote name='eComLabs' timestamp='1421056723' post='202315']

Try to contact your server administrator and ask him to increase the value of the memory_limit server setting

[/quote]



Yup that was the issue! The host upped the allocated memory to 400M and max execution time to 3600. I also upped the memory_limit values to 512M in the config.local.php and the site is now coming up fine. Thanks!

You are welcome!

Just to add some more details for others, the following had to be done…


  1. Contact your host to have memory increased to 400M min.


  2. public_html/.htaccess - add the following line …



suPHP_ConfigPath /home//public_html




3) public_html/php.ini - create the php.ini file and add these lines…



memory_limit = 400M
max_execution_time = 3600




4) public_html/config.local.php - increase the memory limits and execution time…



// Set maximum memory limit
if (PHP_INT_SIZE == 4 && (substr(ini_get('memory_limit'), 0, -1) < "64")) {
// 32bit PHP
@ini_set('memory_limit', '512M');
} elseif (PHP_INT_SIZE == 8 && (substr(ini_get('memory_limit'), 0, -1) < "256")) {
// 64bit PHP
@ini_set('memory_limit', '512M');
}

if (!defined('CONSOLE')) {
// Set maximum time limit for script execution.
@set_time_limit(3600);
}




4) You can check if the memory_limit value was changed on the following page…



?dispatch=tools.phpinfo



*Note that you can do steps 2 and 3 after the site install. I set all the folder/file permissions to 755 for the install then recursed the files to 644 afterwards and it seems to work fine. I also set these permissions as the defaults in the config.local.php file…



// Default permissions for newly created files and directories
define('DEFAULT_FILE_PERMISSIONS', 0644);
define('DEFAULT_DIR_PERMISSIONS', 0755);

My site was fine yesterday and this morning nothing, all sources for pages are blank, the database and files are all still there just no site(s) showing, all the stores have disappeared. I have several stores installed using cs cart on this install and all are gone???



What would cause this???



One store is here (it is the only real one):



http://www.hansensho…lcreations.com/



There are other accounts working fine on this server so the server is fine. Any ideas what happened over night, everything looks OK in myphpadmin as far as I can tell.

[quote name='macat' timestamp='1422538830' post='203812']

My site was fine yesterday and this morning nothing, all sources for pages are blank, the database and files are all still there just no site(s) showing, all the stores have disappeared. I have several stores installed using cs cart on this install and all are gone???



What would cause this???



One store is here (it is the only real one):



http://www.hansensho…lcreations.com/



There are other accounts working fine on this server so the server is fine. Any ideas what happened over night, everything looks OK in myphpadmin as far as I can tell.

[/quote]



Have you enabled the debug mode to see the exact error messages?

No but my error log shows this, php is not my language so this means nothing to me, do you understand it?:



[28-Jan-2015 03:15:42 UTC] PHP Notice: Undefined offset: 1 in /home/mypledge/public_html/cart/app/Tygh/Session.php on line 167

[28-Jan-2015 03:16:33 UTC] PHP Notice: Undefined offset: 1 in /home/mypledge/public_html/cart/app/Tygh/Session.php on line 167

[28-Jan-2015 06:05:01 UTC] PHP Notice: Undefined offset: 1 in /home/mypledge/public_html/cart/app/Tygh/Session.php on line 167

[28-Jan-2015 06:18:23 UTC] PHP Notice: Undefined offset: 1 in /home/mypledge/public_html/cart/app/Tygh/Session.php on line 167

[28-Jan-2015 11:30:48 UTC] PHP Notice: Undefined offset: 1 in /home/mypledge/public_html/cart/app/Tygh/Session.php on line 167

[28-Jan-2015 11:30:48 UTC] PHP Notice: Undefined offset: 1 in /home/mypledge/public_html/cart/app/Tygh/Session.php on line 167

[28-Jan-2015 11:30:48 UTC] PHP Notice: Undefined offset: 1 in /home/mypledge/public_html/cart/app/Tygh/Session.php on line 167

[28-Jan-2015 13:26:29 UTC] PHP Notice: Undefined offset: 1 in /home/mypledge/public_html/cart/app/Tygh/Session.php on line 167

[28-Jan-2015 13:41:56 UTC] PHP Notice: Undefined offset: 1 in /home/mypledge/public_html/cart/app/Tygh/Session.php on line 167

[28-Jan-2015 13:42:08 UTC] PHP Notice: Undefined offset: 1 in /home/mypledge/public_html/cart/app/Tygh/Session.php on line 167

[28-Jan-2015 15:32:37 UTC] PHP Notice: Undefined offset: 1 in /home/mypledge/public_html/cart/app/Tygh/Session.php on line 167

[28-Jan-2015 17:56:54 UTC] PHP Notice: Undefined offset: 1 in /home/mypledge/public_html/cart/app/Tygh/Session.php on line 167

[28-Jan-2015 21:51:25 UTC] PHP Notice: Undefined offset: 1 in /home/mypledge/public_html/cart/app/Tygh/Session.php on line 167

[29-Jan-2015 04:08:21 UTC] PHP Notice: Undefined offset: 1 in /home/mypledge/public_html/cart/app/Tygh/Session.php on line 167

[29-Jan-2015 04:12:24 UTC] PHP Notice: Undefined offset: 1 in /home/mypledge/public_html/cart/app/Tygh/Session.php on line 167

[29-Jan-2015 06:31:24 UTC] PHP Notice: Undefined offset: 1 in /home/mypledge/public_html/cart/app/Tygh/Session.php on line 167

[29-Jan-2015 06:31:24 UTC] PHP Notice: Undefined offset: 1 in /home/mypledge/public_html/cart/app/Tygh/Session.php on line 167

[29-Jan-2015 06:31:24 UTC] PHP Notice: Undefined offset: 1 in /home/mypledge/public_html/cart/app/Tygh/Session.php on line 167

[29-Jan-2015 06:31:24 UTC] PHP Notice: Undefined offset: 1 in /home/mypledge/public_html/cart/app/Tygh/Session.php on line 167

[29-Jan-2015 06:31:24 UTC] PHP Notice: Undefined offset: 1 in /home/mypledge/public_html/cart/app/Tygh/Session.php on line 167

[29-Jan-2015 09:23:25 UTC] PHP Notice: Undefined offset: 1 in /home/mypledge/public_html/cart/app/Tygh/Session.php on line 167

[29-Jan-2015 09:23:25 UTC] PHP Notice: Undefined offset: 1 in /home/mypledge/public_html/cart/app/Tygh/Session.php on line 167

[29-Jan-2015 09:23:25 UTC] PHP Notice: Undefined offset: 1 in /home/mypledge/public_html/cart/app/Tygh/Session.php on line 167

[29-Jan-2015 09:23:25 UTC] PHP Notice: Undefined offset: 1 in /home/mypledge/public_html/cart/app/Tygh/Session.php on line 167

[29-Jan-2015 09:23:25 UTC] PHP Notice: Undefined offset: 1 in /home/mypledge/public_html/cart/app/Tygh/Session.php on line 167

[29-Jan-2015 09:23:25 UTC] PHP Notice: Undefined offset: 1 in /home/mypledge/public_html/cart/app/Tygh/Session.php on line 167

[29-Jan-2015 09:23:25 UTC] PHP Notice: Undefined offset: 1 in /home/mypledge/public_html/cart/app/Tygh/Session.php on line 167

[29-Jan-2015 09:23:25 UTC] PHP Notice: Undefined offset: 1 in /home/mypledge/public_html/cart/app/Tygh/Session.php on line 167

[29-Jan-2015 09:23:25 UTC] PHP Notice: Undefined offset: 1 in /home/mypledge/public_html/cart/app/Tygh/Session.php on line 167

[29-Jan-2015 09:23:25 UTC] PHP Notice: Undefined offset: 1 in /home/mypledge/public_html/cart/app/Tygh/Session.php on line 167

[29-Jan-2015 09:23:25 UTC] PHP Notice: Undefined offset: 1 in /home/mypledge/public_html/cart/app/Tygh/Session.php on line 167

[29-Jan-2015 09:23:25 UTC] PHP Notice: Undefined offset: 1 in /home/mypledge/public_html/cart/app/Tygh/Session.php on line 167

[29-Jan-2015 09:23:25 UTC] PHP Notice: Undefined offset: 1 in /home/mypledge/public_html/cart/app/Tygh/Session.php on line 167

[29-Jan-2015 09:23:25 UTC] PHP Notice: Undefined offset: 1 in /home/mypledge/public_html/cart/app/Tygh/Session.php on line 167

[29-Jan-2015 09:23:25 UTC] PHP Notice: Undefined offset: 1 in /home/mypledge/public_html/cart/app/Tygh/Session.php on line 167

[29-Jan-2015 09:23:25 UTC] PHP Notice: Undefined offset: 1 in /home/mypledge/public_html/cart/app/Tygh/Session.php on line 167

[29-Jan-2015 09:23:25 UTC] PHP Notice: Undefined offset: 1 in /home/mypledge/public_html/cart/app/Tygh/Session.php on line 167

[29-Jan-2015 11:33:55 UTC] PHP Notice: Undefined offset: 1 in /home/mypledge/public_html/cart/app/Tygh/Session.php on line 167

[29-Jan-2015 11:33:55 UTC] PHP Notice: Undefined offset: 1 in /home/mypledge/public_html/cart/app/Tygh/Session.php on line 167

[29-Jan-2015 11:33:55 UTC] PHP Notice: Undefined offset: 1 in /home/mypledge/public_html/cart/app/Tygh/Session.php on line 167

[29-Jan-2015 11:33:55 UTC] PHP Notice: Undefined offset: 1 in /home/mypledge/public_html/cart/app/Tygh/Session.php on line 167

[29-Jan-2015 13:19:16 UTC] PHP Notice: Undefined offset: 1 in /home/mypledge/public_html/cart/app/Tygh/Session.php on line 167

[29-Jan-2015 05:19:20 America/Los_Angeles] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 32 bytes) in /home/mypledge/public_html/cart/app/Tygh/Database.php on line 636

[29-Jan-2015 05:19:22 America/Los_Angeles] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 98630 bytes) in /home/mypledge/public_html/cart/app/functions/fn.log.php on line 82

[29-Jan-2015 05:19:56 America/Los_Angeles] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 72 bytes) in /home/mypledge/public_html/cart/app/Tygh/Database.php on line 636

[29-Jan-2015 13:20:32 UTC] PHP Notice: Undefined offset: 1 in /home/mypledge/public_html/cart/app/Tygh/Session.php on line 167

[29-Jan-2015 13:21:17 UTC] PHP Notice: Undefined offset: 1 in /home/mypledge/public_html/cart/app/Tygh/Session.php on line 167

[29-Jan-2015 13:29:20 UTC] PHP Notice: Undefined offset: 1 in /home/mypledge/public_html/cart/app/Tygh/Session.php on line 167

[29-Jan-2015 05:29:22 America/Los_Angeles] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 76 bytes) in /home/mypledge/public_html/cart/app/Tygh/Database.php on line 636

[29-Jan-2015 13:31:11 UTC] PHP Notice: Undefined offset: 1 in /home/mypledge/public_html/cart/app/Tygh/Session.php on line 167

[29-Jan-2015 05:31:13 America/Los_Angeles] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 76 bytes) in /home/mypledge/public_html/cart/app/Tygh/Database.php on line 636

[29-Jan-2015 05:34:11 America/Los_Angeles] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 71 bytes) in /home/mypledge/public_html/cart/app/Tygh/Database.php on line 636

[29-Jan-2015 05:39:23 America/Los_Angeles] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 72 bytes) in /home/mypledge/public_html/cart/app/Tygh/Database.php on line 636

[29-Jan-2015 05:42:02 America/Los_Angeles] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 72 bytes) in /home/mypledge/public_html/cart/app/Tygh/Database.php on line 636

You have also the problems with the memory_limit. Please check post #10 and try their solution

Yes we upped the memory and when the page tried to load I have this in the source code, so it tries but won’t for some reason, I have a very angry client right now :(

Edit, not all of my source code is showing, there is more that was left out.










It is required to examine the issue directly on your server. Try to contact CS-Cart support team

[quote name=‘macat’ timestamp=‘1422549923’ post=‘203841’]

Yes we upped the memory and when the page tried to load I have this in the source code, so it tries but won’t for some reason, I have a very angry client right now :(

Edit, not all of my source code is showing, there is more that was left out.











[/quote]

Can you Please Share Your Server Details to us at Support [at] kartpay.com . We have faced this issue in one of our Client. We will try our best to solve it.

Hi m3th3lesh,

My tech did a back up and it did come back, the only thing I had to re-upload were the photos, my worry is it will happen again. I made a back up and downloaded it and that is what I will do after every update. Have you had any further problems after you fixed your clients issue?




[quote name='m3th3lesh' timestamp='1422641874' post='203944']

Can you Please Share Your Server Details to us at Support [at] kartpay.com . We have faced this issue in one of our Client. We will try our best to solve it.

[/quote]

Hi,



The Above issue is of Mysql. This Generally Happens when Mysql is working but one of the table in the Cs-cart Database is not able to read by mysql which leads to such issues.



This can be resolved by moving My.cnf to another location using SSH and then Restarting the Mysql using WHM.



Regarding your Issues of Images. it doesn't happen may be some misconfig while taking backup and restore



Regarding your Issue of Update. You can update it without any worries but i would suggest to find out the issue first.for that We Would be happy to look upon your issue without any cost to understand it better. Please check Your PM.


[quote name='macat' timestamp='1422683074' post='203958']

Hi m3th3lesh,

My tech did a back up and it did come back, the only thing I had to re-upload were the photos, my worry is it will happen again. I made a back up and downloaded it and that is what I will do after every update. Have you had any further problems after you fixed your clients issue?

[/quote]