Post by kaira » Mon Dec 18, 2017 4:22 pm

OC version 3
Standard setup OC theme - No mods made
Standard setup ext/mods
Vqmod not installed yet
No .htaccess/.htpasswd setup yet

Happens when trying to change store settings such as store name, meta data and such.
via Settings > Store edit link > any of the tabs > then save.

Issue: When I rename admin folder and change the config and startup.php files to reflect the changes I get the error message:
"The page you requested cannot be found!"
The url looks like this: https://mystore.com/secret/index.php?route=setting/setting&user_token=87rzIlGMkUaBTNT3wp6xkroc6PY04lqW

but

When I change admin folder back to original name and change the config & startup.php to reflect it everything works right and I get this url:
The url looks like this: https://mystore.com/admin/index.php?route=setting/store&user_token=87rzIlGMkUaBTNT3wp6xkroc6PY04lqW

Notice the difference in the route:
error url: route=setting/setting
working url: route=setting/store

I have ssl and seo_urls enabled!

I have tried admin123 and admin3 and they work, but anything else errors out with page not found error.

Can anyone tell me why or how to fix this issue?

Thanks in Advance

Newbie

Posts

Joined
Sun Dec 03, 2017 2:06 am
Location - US

Post by straightlight » Mon Dec 18, 2017 9:28 pm

Issue: When I rename admin folder and change the config and startup.php files to reflect the changes I get the error message:
No 4 decimals OC version provided. Changes are not required in startup.php file but only in the config.php , admin/config.php and .htaccess file (if also involved in the .htaccess for the admin path).

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 kaira » Tue Dec 19, 2017 4:36 am

OC version 3.0.2.0
Standard setup OC theme - No mods made
Standard setup ext/mods
Vqmod not installed yet
No .htaccess/.htpasswd setup yet for admin folder

I wanted to change admin folder before adding any ext. or mods.

Here are the changes I made .


Changes in admin/config.php
only lines with "admin" 3,7,11
// HTTP
define('HTTP_SERVER', 'https://mystore.com/admin/');
Changed define statement: define('HTTP_SERVER', 'https://mystore.com/secret/');

define('HTTP_CATALOG', 'https://mystore.com/');

// HTTPS
define('HTTPS_SERVER', 'https://mystore.com/admin/');
Changed define statement: define('HTTPS_SERVER', 'https://mystore.com/secret/');

define('HTTPS_CATALOG', 'https://mystore.com/');

// DIR
define('DIR_APPLICATION', '/home/mystore/public_html/admin/');
Changed define statement: define('DIR_APPLICATION', '/home/mystore/public_html/secret/');

===============================================================================================

Made change in system/startup.php because of article I had read somewhere
only one line: line 51
$file = DIR_MODIFICATION . 'admin/' . substr($filename, strlen(DIR_APPLICATION));
changed too: $file = DIR_MODIFICATION . 'secret/' . substr($filename, strlen(DIR_APPLICATION));

changed back to original and still get "The page you requested cannot be found!" error.

================================================================================================
Observations:

The url in Settings Home > Stores > Settings is
https://mystore.com/secret/index.php?ro ... l5Qk4HUd64

and after clicking save the url is still:
https://mystore.com/secret/index.php?ro ... l5Qk4HUd64
but: page content changes to store front end with error "The page you requested cannot be found!" and continue button.

================================================================================================

This has got me baffled

Thanks

Newbie

Posts

Joined
Sun Dec 03, 2017 2:06 am
Location - US

Post by straightlight » Tue Dec 19, 2017 4:54 am

changed back to original and still get "The page you requested cannot be found!" error.
From the most recent access logs on your host console, what message does it provide?

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 kaira » Tue Dec 19, 2017 5:07 am

raw access logs and standard cpanel error logs do not show any errors

Newbie

Posts

Joined
Sun Dec 03, 2017 2:06 am
Location - US

Post by straightlight » Tue Dec 19, 2017 5:09 am

PM sent.

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 » Tue Dec 19, 2017 6:51 am

Suggested to look at these extensions to use renamed admin folders: https://www.opencart.com/index.php?rout ... arch=admin

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: Amazon [Bot] and 409 guests