I have built a test site on my domain that I want to use for example: www.testdomain.com/newsite/ is there an easy to move the entire site to the public_html folder without it breaking? At the moment when I try it keeps picking up an error message picking up the sub folder /newsite/
Thanks
Thanks
You'll need to change the content of BOTH config.php Files, to match
the new Links and Paths, as well as the .htaccess file REWRITE Path to:
if you plan your Shop Software to be placed in the Site ROOT Main Section.
Then, clear out all your Cached Content, in
vqmod/vqcache/... (if VqMod exists!)
AND EITHER in:
system/storage/modification/...
system/storage/cache/...
OR THEN in:
system/modification/...
system/cache/...
Sections, depending on the OC-2 Version used, and then try again!
---
BUT, you talk about public_html, wich would be the Site ROOT Section,
but also about linking to public_html/newsite/, and such would not work,
it's either in the Site ROOT/... , or then the Site ROOT/SUB/... , and
the .htaccess File needs to be written accordingly, like shown below, if the
Software is placed in a Subdirectory, called by example: testdomain.com/newsite/
Good Luck!
Ernie
the new Links and Paths, as well as the .htaccess file REWRITE Path to:
Code: Select all
# SEO URL Settings
RewriteEngine On
RewriteBase /
Then, clear out all your Cached Content, in
vqmod/vqcache/... (if VqMod exists!)
AND EITHER in:
system/storage/modification/...
system/storage/cache/...
OR THEN in:
system/modification/...
system/cache/...
Sections, depending on the OC-2 Version used, and then try again!
---
BUT, you talk about public_html, wich would be the Site ROOT Section,
but also about linking to public_html/newsite/, and such would not work,
it's either in the Site ROOT/... , or then the Site ROOT/SUB/... , and
the .htaccess File needs to be written accordingly, like shown below, if the
Software is placed in a Subdirectory, called by example: testdomain.com/newsite/
Code: Select all
# SEO URL Settings
RewriteEngine On
RewriteBase /newsite/

Ernie
My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
Also follow these instructions regarding the storage folder when testing on a PCI server: viewtopic.php?f=202&t=201745#p713479 . Ensure not to have used the automatic settings from the admin Security Modal window but rather the manual option.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Thanks for your help! I just have one minor issue.... this error message now appears on my pages... any idea what I need to do?
Warning: unlink(/var/sites/t/domainname.co.uk/STORAGE/cache/cache.catalog.language.1522882940): No such file or directory in /var/sites/t/domainname.co.uk/public_html/system/library/cache/file.php on line 68
Warning: unlink(/var/sites/t/domainname.co.uk/STORAGE/cache/cache.catalog.language.1522882940): No such file or directory in /var/sites/t/domainname.co.uk/public_html/system/library/cache/file.php on line 68
Ensure to have properly defined your constant paths in your config.php and admin/config.php files. One tool you could rely on: viewtopic.php?f=199&t=198781&p=699560#p699560
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
I am still struggling to get this working :-(.... I have done exactly what you recommend and now it lists more errors ... any advice?
Warning: fopen(/var/sites/t/domainame.co.uk/Storage_1//var/sites/t/domainame.co.uk/public_html/system/storage/cache/cache.catalog.language.1523663156): failed to open stream: No such file or directory in /var/sites/t/domainame.co.uk/public_html/system/library/cache/file.php on line 49Warning: fwrite() expects parameter 1 to be resource, boolean given in /var/sites/t/domainame.co.uk/public_html/system/library/cache/file.php on line 53Warning: fflush() expects parameter 1 to be resource, boolean given in /var/sites/t/domainame.co.uk/public_html/system/library/cache/file.php on line 55Warning: fclose() expects parameter 1 to be resource, boolean given in /var/sites/t/domainame.co.uk/public_html/system/library/cache/file.php on line 59Warning: fopen(/var/sites/t/domainame.co.uk/Storage_1//var/sites/t/domainame.co.uk/public_html/system/storage/cache/cache.currency.1523663156): failed to open stream: No such file or directory in /var/sites/t/domainame.co.uk/public_html/system/library/cache/file.php on line 49Warning: fwrite() expects parameter 1 to be resource, boolean given in /var/sites/t/domainame.co.uk/public_html/system/library/cache/file.php on line 53Warning: fflush() expects parameter 1 to be resource, boolean given in /var/sites/t/domainame.co.uk/public_html/system/library/cache/file.php on line 55Warning: fclose() expects parameter 1 to be resource, boolean given in /var/sites/t/domainame.co.uk/public_html/system/library/cache/file.php on line 59
Warning: fopen(/var/sites/t/domainame.co.uk/Storage_1//var/sites/t/domainame.co.uk/public_html/system/storage/cache/cache.catalog.language.1523663156): failed to open stream: No such file or directory in /var/sites/t/domainame.co.uk/public_html/system/library/cache/file.php on line 49Warning: fwrite() expects parameter 1 to be resource, boolean given in /var/sites/t/domainame.co.uk/public_html/system/library/cache/file.php on line 53Warning: fflush() expects parameter 1 to be resource, boolean given in /var/sites/t/domainame.co.uk/public_html/system/library/cache/file.php on line 55Warning: fclose() expects parameter 1 to be resource, boolean given in /var/sites/t/domainame.co.uk/public_html/system/library/cache/file.php on line 59Warning: fopen(/var/sites/t/domainame.co.uk/Storage_1//var/sites/t/domainame.co.uk/public_html/system/storage/cache/cache.currency.1523663156): failed to open stream: No such file or directory in /var/sites/t/domainame.co.uk/public_html/system/library/cache/file.php on line 49Warning: fwrite() expects parameter 1 to be resource, boolean given in /var/sites/t/domainame.co.uk/public_html/system/library/cache/file.php on line 53Warning: fflush() expects parameter 1 to be resource, boolean given in /var/sites/t/domainame.co.uk/public_html/system/library/cache/file.php on line 55Warning: fclose() expects parameter 1 to be resource, boolean given in /var/sites/t/domainame.co.uk/public_html/system/library/cache/file.php on line 59
In catalog/model/localisation/language.php file,
find:
replace with:
Then, re-clear your OC cache from the OC admin and see if that rectifies the issue.
find:
Code: Select all
$language_data = $this->cache->get('language');
Code: Select all
$language_data = $this->cache->get('catalog.language');
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Who is online
Users browsing this forum: Semrush [Bot] and 24 guests