Post by Randem » Mon Oct 13, 2014 1:11 pm

If I attempt to save anything in the SSL URL (Home :: Settings) area with the sequence *:// (IE. http://, https://, ftp://), I get the message that states "The page you requested cannot be found." This denies the ability to put a url address in this field. Mind you that any other characters would be accepted though. So I have to go into the table in phpAdmin to put the address in the ssl field of the oc_store table. This happens with EVERY store even when inserting a new store.

In a clean install this works, what is happening here?
Last edited by Randem on Sun Dec 14, 2014 5:12 am, edited 1 time in total.

NEVER take serious; anyone who gives negative impact statements with no ABSOLUTE proof!
OpenCart Helpful Information * Upgrade 1.5 to 2.1 * Upgrade 2.1 to 2.2
"Why do people NEVER have enough time to do it right but ALWAYS enough time to do it over?"
DO NOT EVER GIVE SOMEONE YOU DON"T KNOW ADMIN ACCESS TO ANYTHING!
I am NOT affiliated with OpenCart


User avatar
Active Member

Posts

Joined
Sat Sep 27, 2014 9:17 am

Post by Randem » Wed Oct 15, 2014 3:52 pm

Tested this over and over again and the closest that I can find is this error has something to do with either the SSL certificate being installed or redirection (parked Domains) of other domain names that are pointed to this main domain.

"NetworkError: 404 not found - https://www.cherryshopmaui.com/admin/in ... store_id=8"

This route seems to be bad inside OpenCart and seems to be the source of an issue when attempting to save in the SSL Url field a text name that starts with http://, https:// or ftp://
There seems to be something going on when the record is attempting to be saved and an error occurs or some type of validation does not want these leading characters in the field. the strange thing is if I prefix the Protocol names with anything the field gets saved in the database...

Can someone help with any direction?

My work-around was to just put https://www.mydomain.com/ in the Store URL field and leave the SSL URL blank. We will see how this tests out.

NEVER take serious; anyone who gives negative impact statements with no ABSOLUTE proof!
OpenCart Helpful Information * Upgrade 1.5 to 2.1 * Upgrade 2.1 to 2.2
"Why do people NEVER have enough time to do it right but ALWAYS enough time to do it over?"
DO NOT EVER GIVE SOMEONE YOU DON"T KNOW ADMIN ACCESS TO ANYTHING!
I am NOT affiliated with OpenCart


User avatar
Active Member

Posts

Joined
Sat Sep 27, 2014 9:17 am

Post by Randem » Sun Oct 19, 2014 6:29 am

Still trying to get this solved... ANYONE? It seems that there is an exception caused with this condition...

NEVER take serious; anyone who gives negative impact statements with no ABSOLUTE proof!
OpenCart Helpful Information * Upgrade 1.5 to 2.1 * Upgrade 2.1 to 2.2
"Why do people NEVER have enough time to do it right but ALWAYS enough time to do it over?"
DO NOT EVER GIVE SOMEONE YOU DON"T KNOW ADMIN ACCESS TO ANYTHING!
I am NOT affiliated with OpenCart


User avatar
Active Member

Posts

Joined
Sat Sep 27, 2014 9:17 am

Post by Randem » Sun Oct 19, 2014 8:04 am

Anyone know what series of routines are called when you click on the Save button on the Settings screen (Home::Settings)?

NEVER take serious; anyone who gives negative impact statements with no ABSOLUTE proof!
OpenCart Helpful Information * Upgrade 1.5 to 2.1 * Upgrade 2.1 to 2.2
"Why do people NEVER have enough time to do it right but ALWAYS enough time to do it over?"
DO NOT EVER GIVE SOMEONE YOU DON"T KNOW ADMIN ACCESS TO ANYTHING!
I am NOT affiliated with OpenCart


User avatar
Active Member

Posts

Joined
Sat Sep 27, 2014 9:17 am

Post by Randem » Sun Oct 19, 2014 11:32 am

Did some more research on this topic and found a post indicating to disable .htaccess to find the real error message; so I did and here is the real error message.


Not Acceptable

An appropriate representation of the requested resource /admin/index.php could not be found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


This still does not help finding out why this only happens on post with one field (config_ssl) that contains a protocol (http,https,ftp) at the very beginning of the field. This does not happen when only one store is configured but when many stores are configured BOOM!!!

NEVER take serious; anyone who gives negative impact statements with no ABSOLUTE proof!
OpenCart Helpful Information * Upgrade 1.5 to 2.1 * Upgrade 2.1 to 2.2
"Why do people NEVER have enough time to do it right but ALWAYS enough time to do it over?"
DO NOT EVER GIVE SOMEONE YOU DON"T KNOW ADMIN ACCESS TO ANYTHING!
I am NOT affiliated with OpenCart


User avatar
Active Member

Posts

Joined
Sat Sep 27, 2014 9:17 am

Post by Randem » Sun Oct 19, 2014 6:00 pm

Did some more tests... I exported my database then created a new OpenCart installation on a different account that did not have SSL installed. Imported the database and attempted the change of 'current_ssl' and it all worked as it was supposed too. It seems that the issue only happens when SSL is installed; A Godaddy issue it seems...

NEVER take serious; anyone who gives negative impact statements with no ABSOLUTE proof!
OpenCart Helpful Information * Upgrade 1.5 to 2.1 * Upgrade 2.1 to 2.2
"Why do people NEVER have enough time to do it right but ALWAYS enough time to do it over?"
DO NOT EVER GIVE SOMEONE YOU DON"T KNOW ADMIN ACCESS TO ANYTHING!
I am NOT affiliated with OpenCart


User avatar
Active Member

Posts

Joined
Sat Sep 27, 2014 9:17 am

Post by Randem » Sun Dec 14, 2014 5:11 am

The whole problem with this is with mod_security 2. It interprets the large POST with https://, http:// or other protocols in the post as an attack and redirects the page. Cannot disable mod_security 2 in a shared hosting environment. This is why my test area will work but the production area does not work. They are in two different server environments. It seems that the production environment with SSL has mod_security 2 and the test environment does not.

NEVER take serious; anyone who gives negative impact statements with no ABSOLUTE proof!
OpenCart Helpful Information * Upgrade 1.5 to 2.1 * Upgrade 2.1 to 2.2
"Why do people NEVER have enough time to do it right but ALWAYS enough time to do it over?"
DO NOT EVER GIVE SOMEONE YOU DON"T KNOW ADMIN ACCESS TO ANYTHING!
I am NOT affiliated with OpenCart


User avatar
Active Member

Posts

Joined
Sat Sep 27, 2014 9:17 am

Post by Randem » Mon Dec 15, 2014 7:14 am

What I had to do to solve the problem with mod_security_2 which only happened in the store settings during a save was to write a little code that would remove any protocol information from the ssl and url in store settings and re-add the information after the POST in admin/controller/setting/store.php

The would eliminate the protocol information needed in the store information but it would be added to the database information so that all other function would still work as normal.

NEVER take serious; anyone who gives negative impact statements with no ABSOLUTE proof!
OpenCart Helpful Information * Upgrade 1.5 to 2.1 * Upgrade 2.1 to 2.2
"Why do people NEVER have enough time to do it right but ALWAYS enough time to do it over?"
DO NOT EVER GIVE SOMEONE YOU DON"T KNOW ADMIN ACCESS TO ANYTHING!
I am NOT affiliated with OpenCart


User avatar
Active Member

Posts

Joined
Sat Sep 27, 2014 9:17 am
Who is online

Users browsing this forum: No registered users and 9 guests