Post by r4nd0m » Thu Aug 04, 2016 9:56 pm

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!"
Last edited by r4nd0m on Fri Aug 05, 2016 12:30 am, edited 1 time in total.

New member

Posts

Joined
Wed Oct 16, 2013 11:35 pm

Post by straightlight » Thu Aug 04, 2016 10:14 pm

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?

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by r4nd0m » Thu Aug 04, 2016 10:20 pm

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 ..
Last edited by r4nd0m on Thu Aug 04, 2016 10:23 pm, edited 1 time in total.

New member

Posts

Joined
Wed Oct 16, 2013 11:35 pm

Post by straightlight » Thu Aug 04, 2016 10:21 pm

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.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by r4nd0m » Thu Aug 04, 2016 10:23 pm

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?

New member

Posts

Joined
Wed Oct 16, 2013 11:35 pm

Post by straightlight » Thu Aug 04, 2016 10:24 pm

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.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by r4nd0m » Thu Aug 04, 2016 10:28 pm

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
[...]
?>
Last edited by r4nd0m on Thu Aug 04, 2016 10:31 pm, edited 1 time in total.

New member

Posts

Joined
Wed Oct 16, 2013 11:35 pm

Post by straightlight » Thu Aug 04, 2016 10:31 pm

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.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by r4nd0m » Thu Aug 04, 2016 10:33 pm

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 ...

New member

Posts

Joined
Wed Oct 16, 2013 11:35 pm

Post by straightlight » Thu Aug 04, 2016 10:36 pm

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.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by r4nd0m » Thu Aug 04, 2016 10:38 pm

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

New member

Posts

Joined
Wed Oct 16, 2013 11:35 pm

Post by straightlight » Thu Aug 04, 2016 10:40 pm

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.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by r4nd0m » Thu Aug 04, 2016 10:44 pm

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 ...

New member

Posts

Joined
Wed Oct 16, 2013 11:35 pm

Post by straightlight » Thu Aug 04, 2016 10:46 pm

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?

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by r4nd0m » Thu Aug 04, 2016 10:51 pm

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 ...

New member

Posts

Joined
Wed Oct 16, 2013 11:35 pm

Post by r4nd0m » Thu Aug 04, 2016 10:53 pm

posted too early - wrong URL ...
Last edited by r4nd0m on Thu Aug 04, 2016 10:54 pm, edited 1 time in total.

New member

Posts

Joined
Wed Oct 16, 2013 11:35 pm

Post by straightlight » Thu Aug 04, 2016 10:54 pm

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.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by straightlight » Thu Aug 04, 2016 10:55 pm

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.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by r4nd0m » Thu Aug 04, 2016 10:56 pm

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 ...

New member

Posts

Joined
Wed Oct 16, 2013 11:35 pm

Post by straightlight » Thu Aug 04, 2016 10:58 pm

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.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 8 guests