Forum

Ask, reply and learn. Join the community of Akaunting.

New Discussion

Forced Empty Wizard Upon Adding a New Company

Scott Carson   ( User )

Commented 3 years ago

Hi,
I have installed Akaunting locally. I want to manage 2 companies in Akaunting. So, I click on "Add New" and populate the new company's info. As soon as I click "Save", I'm taken to the new company Wizard ... but it's a blank page with only the purple background. I can remove the "/wizard" URL and be taken to the dashboard, but the moment I click the new company, I'm taken back to the empty Wizard.

Help?
-S.

Melda Melda   ( User )

Commented 3 years ago

Hi Scott,

Thank you for your feedback. As we tried to reproduce your issue it was all okay on our end. Successfully created a new company. However as I checked you using the Akaunting on Local-host. Could you please make sure that your setup or network environment is all fine?

Scott Carson   ( User )

Commented 3 years ago

I don't know what to check for? The initial installation/company installed effortlessly. The problem only occurs when I create the second company. Could you point me in the right direction, perhaps to the log files?

Scott Carson   ( User )

Commented 3 years ago

I re-produced the error in Firefox and Chrome, so I inspected the blank Wizard page and it looks like there's some bugs:
(note: for security, I replaced my domain's name with "mydomain")

-------------------
wizard.js?v=2.1.22:1 DOMException: Failed to execute 'replaceState' on 'History': A history state object with URL 'http://akaunting.mydomain.ca/4/wizard' cannot be created in a document with origin 'https://akaunting.mydomain.ca' and URL 'https://akaunting.mydomain.ca/4/wizard'.
at passthru (:38:37)
at History.object. (:29:28)
at passthru (:38:37)
at History.object. [as replaceState] (:29:28)
at oe (https://akaunting.mydomain.ca/public/js/wizard/wizard.js?v=2.1.22:1:1797794)
at t.setupListeners (https://akaunting.mydomain.ca/public/js/wizard/wizard.js?v=2.1.22:1:1805129)
at i (https://akaunting.mydomain.ca/public/js/wizard/wizard.js?v=2.1.22:1:1809584)
at https://akaunting.mydomain.ca/public/js/wizard/wizard.js?v=2.1.22:1:1802685
at s (https://akaunting.mydomain.ca/public/js/wizard/wizard.js?v=2.1.22:1:1803000)
at m (https://akaunting.mydomain.ca/public/js/wizard/wizard.js?v=2.1.22:1:1804115)
We @ wizard.js?v=2.1.22:1
wizard.js?v=2.1.22:1 TypeError: Cannot read property 'matched' of undefined
at render (wizard.js?v=2.1.22:1)
at wizard.js?v=2.1.22:1
at Lt (wizard.js?v=2.1.22:1)
at wizard.js?v=2.1.22:1
at Rt (wizard.js?v=2.1.22:1)
at e._c (wizard.js?v=2.1.22:1)
at a. (wizard.js?v=2.1.22:1)
at a.e._render (wizard.js?v=2.1.22:1)
at a.i (wizard.js?v=2.1.22:1)
at fn.get (wizard.js?v=2.1.22:1)
We @ wizard.js?v=2.1.22:1
wizard:1 Mixed Content: The page at 'https://akaunting.mydomain.ca/4/wizard' was loaded over HTTPS, but requested an insecure script 'http://akaunting.mydomain.ca/public/vendor/livewire/livewire.js?id=d9e06c155e467adb5de2'. This request has been blocked; the content must be served over HTTPS.
wizard:85 Uncaught ReferenceError: Livewire is not defined
at wizard:85

----------------

1.) I changed all occurances of http:// in wizard.js
2.) and then I ran a search of all occurances of http://akaunting.mydomain.ca and found in ./.env there was an incorrect reference to http:// instead of https://

Doing the above has fixed the error.

Please login or register to leave a response.

Showing 1 to 4 of 4 discussions