1
Support / Re: How to Import database from old installation to a new one.
« on: October 11, 2015, 04:44:13 PM »
I've tried to install version 1.1.9 didn't work,
system/logs/error.txt showed error:
Error: Unable to access or write to cache directory /var/www/username/data/www/sitename.com/store/system/cache/
Folder "cache" was 777 with right group and user-owner, accessible for writing for all users - 100%.
Tried many times with different folder permissions, didn't work.
Then I realized that I have a new php version, (had already this issue on my server before, Dmitriy fixed it)
and I changed in core/lib/cache.php
$cache_files = glob( DIR_CACHE. '*/*', GLOB_NOSORT);
if(!is_array($cache_files)
to
$cache_files = glob( DIR_CACHE. '*/*', GLOB_NOSORT);
if(!is_array($cache_files) || !is_writeable(DIR_CACHE))
And then installation completed successfully!
Imported all data from old sql, transferred pictures folders and storefront.
And now my old site is up again!
Had problem with additional languages, but also fixed them..
Thx webdevmerc for advises.
Thx abolabo for fixing "cache" problem
system/logs/error.txt showed error:
Error: Unable to access or write to cache directory /var/www/username/data/www/sitename.com/store/system/cache/
Folder "cache" was 777 with right group and user-owner, accessible for writing for all users - 100%.
Tried many times with different folder permissions, didn't work.
Then I realized that I have a new php version, (had already this issue on my server before, Dmitriy fixed it)
and I changed in core/lib/cache.php
$cache_files = glob( DIR_CACHE. '*/*', GLOB_NOSORT);
if(!is_array($cache_files)
to
$cache_files = glob( DIR_CACHE. '*/*', GLOB_NOSORT);
if(!is_array($cache_files) || !is_writeable(DIR_CACHE))
And then installation completed successfully!
Imported all data from old sql, transferred pictures folders and storefront.
And now my old site is up again!
Had problem with additional languages, but also fixed them..
Thx webdevmerc for advises.
Thx abolabo for fixing "cache" problem