Page 1 of 2

[SOLVED] Upgrade to 2.2.0.0 - cannot access admin url

Posted: Thu Aug 04, 2016 9:56 pm
by r4nd0m
Hi there,

I did perform an almost successful update to 2.2.0.0, the site defaulted to the default template but I cannot access the /admin/ url

I use the default .htaccess that was supplied with the 2.2.0.0 code,

my config.php references correctly

Code: Select all

// HTTP
define('HTTP_SERVER', 'http://test.server.co.uk/');
define('HTTP_IMAGE', 'http://test.server.co.uk/image/');
define('HTTP_ADMIN', 'http://test.server.co.uk/admin/');
I can even access a file within /admin/ - I uploaded a small .jpg - but apart from that I cannot seem to find an option to gain access to it.

I am not using SSL on the server but couldnt see this having become a requirement anywhere.

Any options for me to check? I did read other posts on the forum but couldnt find anything that did apply.

Anything else from a users perspective seems to work just fine - hence I wonder what the issue could be.

I receive a regular product view page with "The page you requested cannot be found!"

Re: Upgrade to 2.2.0.0 - cannot access admin url

Posted: Thu Aug 04, 2016 10:14 pm
by straightlight
More information would be needed. What are the error messages you are getting on the browser or on the error logs when you cannot access either the store-front end and / or the admin-end?

Re: Upgrade to 2.2.0.0 - cannot access admin url

Posted: Thu Aug 04, 2016 10:20 pm
by r4nd0m
thanks for the response, as mentioned the store front (user) works fine its only throwing a "The page you requested cannot be found!" when trying to access /admin/ ...

no further errors are observed ... unfortunately I dont have access to the httpd logs for troubleshooting ..

Re: Upgrade to 2.2.0.0 - cannot access admin url

Posted: Thu Aug 04, 2016 10:21 pm
by straightlight
Followed are working instructions for manipulating the .htaccess file over SSL: http://forum.opencart.com/viewtopic.php?f=2&t=165616 . Ensure to have SSL enabled on your site and properly installed by your host.

Re: Upgrade to 2.2.0.0 - cannot access admin url

Posted: Thu Aug 04, 2016 10:23 pm
by r4nd0m
straightlight wrote:Followed are working instructions for manipulating the .htaccess file over SSL: http://forum.opencart.com/viewtopic.php?f=2&t=165616 . Ensure to have SSL enabled on your site and properly installed by your host.
ok the server doesnt have SSL enabled - as mentioned in my previous post - I couldnt see this being a requirement - is this required now?

Re: Upgrade to 2.2.0.0 - cannot access admin url

Posted: Thu Aug 04, 2016 10:24 pm
by straightlight
r4nd0m wrote:
straightlight wrote:Followed are working instructions for manipulating the .htaccess file over SSL: http://forum.opencart.com/viewtopic.php?f=2&t=165616 . Ensure to have SSL enabled on your site and properly installed by your host.
ok the server doesnt have SSL enabled - as mentioned in my previous post - I couldnt see this being a requirement - is this required now?
It is highly recommended to use SSL with Opencart but not an enforced, yet, requirement even though it should be due to the remote payment and shipping providers that may highly enforce the issue on anyhow.

Re: Upgrade to 2.2.0.0 - cannot access admin url

Posted: Thu Aug 04, 2016 10:28 pm
by r4nd0m
straightlight wrote:
r4nd0m wrote:
straightlight wrote:Followed are working instructions for manipulating the .htaccess file over SSL: http://forum.opencart.com/viewtopic.php?f=2&t=165616 . Ensure to have SSL enabled on your site and properly installed by your host.
ok the server doesnt have SSL enabled - as mentioned in my previous post - I couldnt see this being a requirement - is this required now?
It is highly recommended to use SSL with Opencart but not an enforced, yet, requirement even though it should be due to the remote payment and shipping providers that may highly enforce the issue on anyhow.
we are handing everything off to external payment /shipping providers so the input is non critical - I will add SSL to the server to validate if this is the issue - though from your statement I would assume the admin URL should be accessible via http - especially as the redirect points to http and not https - assumption correct?


// here is my config.php

Code: Select all

<?php

// HTTP
define('HTTP_SERVER', 'http://test.server.co.uk/');
define('HTTP_IMAGE', 'http://test.server.co.uk/image/');
define('HTTP_ADMIN', 'http://test.server.co.uk/admin/');

// HTTPS
//define('HTTPS_SERVER', 'http://test.server.co.uk/');
//define('HTTPS_IMAGE', 'http://test.server.co.uk/image/');

// DIR
define('DIR_APPLICATION', '/home/server/test.server.co.uk/catalog/');
define('DIR_SYSTEM', '/home/server/test.server.co.uk/system/');
define('DIR_DATABASE', '/home/server/test.server.co.uk/system/database/');
define('DIR_LANGUAGE', '/home/server/test.server.co.uk/catalog/language/');
define('DIR_TEMPLATE', '/home/server/test.server.co.uk/catalog/view/theme/');
define('DIR_CONFIG', '/home/server/test.server.co.uk/system/config/');
define('DIR_IMAGE', '/home/server/test.server.co.uk/image/');
define('DIR_CACHE', '/home/server/test.server.co.uk/system/storage/cache/');
define('DIR_DOWNLOAD', '/home/server/test.server.co.uksystem/storage/download/');
define('DIR_MODIFICATION', '/home/server/test.server.co.uk/system/storage/modification/');
define('DIR_UPLOAD', '/home/server/test.server.co.uk/system/storage/upload/');
define('DIR_LOGS', '/home/server/test.server.co.uk/system/storage/logs/');

// DB
[...]
?>

Re: Upgrade to 2.2.0.0 - cannot access admin url

Posted: Thu Aug 04, 2016 10:31 pm
by straightlight
The priority protocol is first verified over SSL. If not being the case, it automatically switches to the public port. Although, take note that OC v2.2.0.0 used to involve lots of routing issues. Upgrading to the latest version of Opencart would be definitely recommended on that end.

Re: Upgrade to 2.2.0.0 - cannot access admin url

Posted: Thu Aug 04, 2016 10:33 pm
by r4nd0m
ok - I did hold back on that as I was facing some issues from 1.5.xx to upgrade to the latest code and it was referred to that the upgrade script to the latest code was still somehow buggy ?!

Hence I upgraded to 2.2.0.0 with the community script which worked just fine and did hold off further upgrades ... if those upgrades however supposed to work from 2.2.0.0 to recent then I might give it a shot to see if that resolves the issue ...

Re: Upgrade to 2.2.0.0 - cannot access admin url

Posted: Thu Aug 04, 2016 10:36 pm
by straightlight
r4nd0m wrote:ok - I did hold back on that as I was facing some issues from 1.5.xx to upgrade to the latest code and it was referred to that the upgrade script to the latest code was still somehow buggy ?!

Hence I upgraded to 2.2.0.0 with the community script which worked just fine and did hold off further upgrades ... if those upgrades however supposed to work from 2.2.0.0 to recent then I might give it a shot to see if that resolves the issue ...
Based on the above statement and what might of been addressed from other users, followed are the dedicated facts regarding the succession of the Opencart upgrade to the latest version as long as the server requirements are being respected to the compliancy: http://forum.opencart.com/viewtopic.php?f=2&t=166011 . Detailed instructions are provided in order to avoid failed upgrade procedures.

Re: Upgrade to 2.2.0.0 - cannot access admin url

Posted: Thu Aug 04, 2016 10:38 pm
by r4nd0m
thanks for that hint - well catch 22 - as I cannot access the admin interface any longer I wont be able to disable the suggested options :(

might need to roll back and start over to see if that does the trick ... thanks for the help though its much appreciated

Re: Upgrade to 2.2.0.0 - cannot access admin url

Posted: Thu Aug 04, 2016 10:40 pm
by straightlight
r4nd0m wrote:thanks for that hint - well catch 22 - as I cannot access the admin interface any longer I wont be able to disable the suggested options :(

might need to roll back and start over to see if that does the trick ... thanks for the help though its much appreciated
You can also try to disable the .htaccess file from the root and see if the problem persists before heading ahead.

Re: Upgrade to 2.2.0.0 - cannot access admin url

Posted: Thu Aug 04, 2016 10:44 pm
by r4nd0m
straightlight wrote:
r4nd0m wrote:thanks for that hint - well catch 22 - as I cannot access the admin interface any longer I wont be able to disable the suggested options :(

might need to roll back and start over to see if that does the trick ... thanks for the help though its much appreciated
You can also try to disable the .htaccess file from the root and see if the problem persists before heading ahead.
that was one of the first tests I did - didnt seem to make a difference ...

Re: Upgrade to 2.2.0.0 - cannot access admin url

Posted: Thu Aug 04, 2016 10:46 pm
by straightlight
r4nd0m wrote:
straightlight wrote:
r4nd0m wrote:thanks for that hint - well catch 22 - as I cannot access the admin interface any longer I wont be able to disable the suggested options :(

might need to roll back and start over to see if that does the trick ... thanks for the help though its much appreciated
You can also try to disable the .htaccess file from the root and see if the problem persists before heading ahead.
that was one of the first tests I did - didnt seem to make a difference ...
Without posting your database information and original server paths (rename the first portions), would it be possible to post your root config.php and admin/config.php file?

Re: Upgrade to 2.2.0.0 - cannot access admin url

Posted: Thu Aug 04, 2016 10:51 pm
by r4nd0m
were posted previously:

// here is my config.php

Code: Select all

<?php

// HTTP
define('HTTP_SERVER', 'http://test.server.co.uk/');
define('HTTP_IMAGE', 'http://test.server.co.uk/image/');
define('HTTP_ADMIN', 'http://test.server.co.uk/admin/');

// HTTPS
//define('HTTPS_SERVER', 'http://test.server.co.uk/');
//define('HTTPS_IMAGE', 'http://test.server.co.uk/image/');

// DIR
define('DIR_APPLICATION', '/home/server/test.server.co.uk/catalog/');
define('DIR_SYSTEM', '/home/server/test.server.co.uk/system/');
define('DIR_DATABASE', '/home/server/test.server.co.uk/system/database/');
define('DIR_LANGUAGE', '/home/server/test.server.co.uk/catalog/language/');
define('DIR_TEMPLATE', '/home/server/test.server.co.uk/catalog/view/theme/');
define('DIR_CONFIG', '/home/server/test.server.co.uk/system/config/');
define('DIR_IMAGE', '/home/server/test.server.co.uk/image/');
define('DIR_CACHE', '/home/server/test.server.co.uk/system/storage/cache/');
define('DIR_DOWNLOAD', '/home/server/test.server.co.uksystem/storage/download/');
define('DIR_MODIFICATION', '/home/server/test.server.co.uk/system/storage/modification/');
define('DIR_UPLOAD', '/home/server/test.server.co.uk/system/storage/upload/');
define('DIR_LOGS', '/home/server/test.server.co.uk/system/storage/logs/');

// DB
[...]
?>
the config is the same in root/admin - thats the same for the current live one - so I didnt modify the testing ...

Re: Upgrade to 2.2.0.0 - cannot access admin url

Posted: Thu Aug 04, 2016 10:53 pm
by r4nd0m
posted too early - wrong URL ...

Re: Upgrade to 2.2.0.0 - cannot access admin url

Posted: Thu Aug 04, 2016 10:54 pm
by straightlight
r4nd0m wrote:were posted previously:

// here is my config.php

Code: Select all

<?php

// HTTP
define('HTTP_SERVER', 'http://test.server.co.uk/');
define('HTTP_IMAGE', 'http://test.server.co.uk/image/');
define('HTTP_ADMIN', 'http://test.server.co.uk/admin/');

// HTTPS
//define('HTTPS_SERVER', 'http://test.server.co.uk/');
//define('HTTPS_IMAGE', 'http://test.server.co.uk/image/');

// DIR
define('DIR_APPLICATION', '/home/server/test.server.co.uk/catalog/');
define('DIR_SYSTEM', '/home/server/test.server.co.uk/system/');
define('DIR_DATABASE', '/home/server/test.server.co.uk/system/database/');
define('DIR_LANGUAGE', '/home/server/test.server.co.uk/catalog/language/');
define('DIR_TEMPLATE', '/home/server/test.server.co.uk/catalog/view/theme/');
define('DIR_CONFIG', '/home/server/test.server.co.uk/system/config/');
define('DIR_IMAGE', '/home/server/test.server.co.uk/image/');
define('DIR_CACHE', '/home/server/test.server.co.uk/system/storage/cache/');
define('DIR_DOWNLOAD', '/home/server/test.server.co.uksystem/storage/download/');
define('DIR_MODIFICATION', '/home/server/test.server.co.uk/system/storage/modification/');
define('DIR_UPLOAD', '/home/server/test.server.co.uk/system/storage/upload/');
define('DIR_LOGS', '/home/server/test.server.co.uk/system/storage/logs/');

// DB
[...]
?>
the config is the same in root/admin - thats the same for the current live one - so I didnt modify the testing ...
What was posted previously was only the first three lines of your config.php file. As per the above statement, the root and admin config.php files are not identical out-of-the-box. If both are identical, it may be the cause of the reported issue. There are slight differences between those two files.

Re: Upgrade to 2.2.0.0 - cannot access admin url

Posted: Thu Aug 04, 2016 10:55 pm
by straightlight
r4nd0m wrote:ok I modified the https server option in the config.php file after having SSL enabled - now I can access the admin URL - at least without SSL ...
There we go, so you solved the issue. In the admin, ensure to have access to most pages as well as resetting your user permission pages to ensure to regain access to all pages as a full administrator. From the admin and non-admin, ensure your store-front end is still working.

Re: Upgrade to 2.2.0.0 - cannot access admin url

Posted: Thu Aug 04, 2016 10:56 pm
by r4nd0m
straightlight wrote:
r4nd0m wrote:were posted previously:

// here is my config.php

Code: Select all

<?php

// HTTP
define('HTTP_SERVER', 'http://test.server.co.uk/');
define('HTTP_IMAGE', 'http://test.server.co.uk/image/');
define('HTTP_ADMIN', 'http://test.server.co.uk/admin/');

// HTTPS
//define('HTTPS_SERVER', 'http://test.server.co.uk/');
//define('HTTPS_IMAGE', 'http://test.server.co.uk/image/');

// DIR
define('DIR_APPLICATION', '/home/server/test.server.co.uk/catalog/');
define('DIR_SYSTEM', '/home/server/test.server.co.uk/system/');
define('DIR_DATABASE', '/home/server/test.server.co.uk/system/database/');
define('DIR_LANGUAGE', '/home/server/test.server.co.uk/catalog/language/');
define('DIR_TEMPLATE', '/home/server/test.server.co.uk/catalog/view/theme/');
define('DIR_CONFIG', '/home/server/test.server.co.uk/system/config/');
define('DIR_IMAGE', '/home/server/test.server.co.uk/image/');
define('DIR_CACHE', '/home/server/test.server.co.uk/system/storage/cache/');
define('DIR_DOWNLOAD', '/home/server/test.server.co.uksystem/storage/download/');
define('DIR_MODIFICATION', '/home/server/test.server.co.uk/system/storage/modification/');
define('DIR_UPLOAD', '/home/server/test.server.co.uk/system/storage/upload/');
define('DIR_LOGS', '/home/server/test.server.co.uk/system/storage/logs/');

// DB
[...]
?>
the config is the same in root/admin - thats the same for the current live one - so I didnt modify the testing ...
What was posted previously was only the first three lines of your config.php file. As per the above statement, the root and admin config.php files are not identical out-of-the-box. If both are identical, it may be the cause of the reported issue. There are slight differences between those two files.
I did edit one post earlier to post the full config after I had posted it ... well ... any options to get an anonymised version? so I can align my setup?

posted too soon - had the original URL opened in the browser ...

Re: Upgrade to 2.2.0.0 - cannot access admin url

Posted: Thu Aug 04, 2016 10:58 pm
by straightlight
I did edit one post earlier to post the full config after I had posted it ... well ... any options to get an anonymised version? so I can align my setup?
Other than an extension, unfortunately, there is nothing out of the box that allows to reproduce the files other than with has been already delivered from the installation which is why a backup must be prioritized in those cases.