Post by dragonfly-ie » Fri Nov 10, 2023 2:36 am

Hard to find involved files and an adequate solution:-
>Admin >Home >Orders ... >Action >View
Clicking View button gives me an error undefined pop-up.

Code: Select all

[Error] Cross origin requests are only supported for HTTP.

Code: Select all

[Error] XMLHttpRequest cannot load httpss://xxx.com/index.php?route=api/order/history&token=&order_id=1234 due to access control checks.
:bang:
Last edited by dragonfly-ie on Sat Nov 11, 2023 4:05 am, edited 1 time in total.

Dum spiro spero.


User avatar
New member

Posts

Joined
Sat Nov 09, 2013 2:31 am


Post by IP_CAM » Fri Nov 10, 2023 5:11 am

httpss://xxx.com/
does not work, should be:
https://xxx.com/

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by dragonfly-ie » Fri Nov 10, 2023 4:33 pm

Not sure why the error console in the browser shows httpss. The url in status bar is correct when I hover over View.

Strangely enough the Edit and Delete buttons next to View work just fine?

Also the View (orders) doesn’t work ONLY for orders received after restore

Dum spiro spero.


User avatar
New member

Posts

Joined
Sat Nov 09, 2013 2:31 am


Post by paulfeakins » Fri Nov 10, 2023 8:30 pm

dragonfly-ie wrote:
Fri Nov 10, 2023 4:33 pm
Not sure why the error console in the browser shows httpss.
That must be in your code somewhere.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by JNeuhoff » Fri Nov 10, 2023 9:21 pm

Or it could be in your web theme. Also, just to be sure, double check your config.php and admin/config.php files.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by dragonfly-ie » Sat Nov 11, 2023 2:24 am

Thanking you et al.

Using default theme.
Triple checked config files.
An indexed file/ content search for httpss returns no results.

Still baffles me why I can view orders placed before restore, but not after?
Have to do some more reading on CORS. https://enable-cors.org

...

Dum spiro spero.


User avatar
New member

Posts

Joined
Sat Nov 09, 2013 2:31 am


Post by paulfeakins » Mon Nov 13, 2023 8:50 pm

dragonfly-ie wrote:
Sat Nov 11, 2023 2:24 am
Triple checked config files.
Which ones?

Maybe post their content without passwords of course.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by ADD Creative » Mon Nov 13, 2023 9:07 pm

Check the store_url column in the oc_order table in your database. You could have the wrong URL stored for some orders.

When an order is placed the URL is stored in the database for that order. That is why some orders work and other don't.

www.add-creative.co.uk


Expert Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom
Who is online

Users browsing this forum: ravikumar22 and 4 guests