OpenCart config url,dir path problem and htaccess issue
Opencart is another easy, robust and handy e-commerce CMS. For beginner, there are some common problem related to URL, Directory path and .htaccess issues.
Following issues need to keep in mind during installation, moving to another server or installation on windows:
- Use trailing slash after the url like define(‘HTTP_SERVER’, ‘localhost/myproject/’) otherwise it may not load all css, images and js files.
- For windows, use path like define(‘DIR_APPLICATION’, ‘F:\wamp\www\myproject/catalog/’); as well as for other settings. It may be ok in normal way like define(‘DIR_APPLICATION’, ‘F:/wamp/www/myproject/admin/’);
- For htaccess, if your store/project is in your document root which is generally public_html on cpanel servers that is ok for for default RewriteBase, but if it’s in a subfolder you will need to edit the file and change the ‘RewriteBase /’ to ‘RewriteBase /subfoldername/’
That’s all for some common issue. Have fun with open source opencart







mazhar 8:26 am on April 6, 2011 Permalink |
thanks saif for the solution it is not woking in 1.5 so the i thing best you can get by going to below link you can remove the validtion
go to this to get solution
http://blog.ecommercesoftwaresolutionsonline.com/archives/1014/magento-please-enter-a-valid-url-protocol-is-required-http-https-or-ftp-issue-in-magento-installation.html
saif 10:05 am on April 6, 2011 Permalink |
Thanks mazhar for the url, but i solved by the code commenting way in 1.5, May be there was another issue regarding your problem.
And on your given url, the blogger came to the ‘code comment’ (in app/code/core/Mage/Core/Model/Session/Abstract/Varien.php) solution at the end
mazhar 10:22 am on April 6, 2011 Permalink
oh sorry saif brother you solution is perfect i got a mistake the solution i provided is of base url validation error while installing megento thanks again
foysal 2:22 am on April 7, 2011 Permalink |
Dear Saif vai
I got this solution before.
saif 6:47 am on April 7, 2011 Permalink |
Great! got your blog with some nice post … keep it up!
Emil 8:11 pm on April 13, 2011 Permalink |
Hi, I use 1.5.1 and I tried your solution. Still can’t log in.
saif 10:08 am on April 18, 2011 Permalink |
Hi Emil, I have checked in 1.5.0.1 by this way and it works fine … pls consider the options during installation and try all the way described here .. best of luck!
Rabby khan 8:33 am on December 1, 2011 Permalink |
Nice
Buiak 9:28 am on May 23, 2011 Permalink |
I’m in the same issue problem like emil. And I did the 127.0.0.1. insteed of localhost and comment the code listed in Varien.php ( /*,
‘domain’ => $cookie->getConfigDomain(),
‘secure’ => $cookie->isSecure(),
‘httponly’ => $cookie->getHttponly()*/ )
Buiak 9:29 am on May 23, 2011 Permalink |
like saif , scuse me
Buiak 9:30 am on May 23, 2011 Permalink
Emil sorry
saif 10:18 am on May 23, 2011 Permalink |
Buiak, please check your Magento version and follow relative solution for that, also browse your project like ’127.0.0.1/MagentoProject’