Page 1 of 1

(solved) image to product logs me out and product description box not ok (Journal)

Posted: Thu Sep 17, 2020 6:59 pm
by Kakofon
OC 3.0.3.6 with journal 3 (Yes, a tried everything described with oc theme also).

A day after moving from "test.mysite.com" to "mysite.com" i could no longer add images to my products. I get logged out when clicking the edit button to get to the image folder. Notice says "expierd token session".

Then the product descripton box lost the menu and became much smaller. My text is still there but has now this before "<p>" and ends with this "</p><p><br></p>".
The navigation bar to the left in admin is also messed up. The text and the buttons are separated.
Changed to https in both config and admin/config, but on product pages it is not applied. So, category safe, choose product, not safe.

Anyone knows how to fix this? https://lyser.se
/Kakofon

Re: image to product logs me out and product description box not ok

Posted: Thu Sep 17, 2020 7:03 pm
by DigitCart
Hi
It seems you have Javascript error(s). Press F12 and navigate to the console tab. What do you see there?

Re: image to product logs me out and product description box not ok

Posted: Thu Sep 17, 2020 7:08 pm
by thekrotek
Some paths are still wrong somewhere, if you're logged out when clicking an action button.

Re: image to product logs me out and product description box not ok

Posted: Thu Sep 17, 2020 7:19 pm
by Kakofon
DigitCart wrote:
Thu Sep 17, 2020 7:03 pm
Hi
It seems you have Javascript error(s). Press F12 and navigate to the console tab. What do you see there?
I am on a chromebook now. No f12..

Re: image to product logs me out and product description box not ok

Posted: Thu Sep 17, 2020 8:38 pm
by Kakofon
Image[/img]
DigitCart wrote:
Thu Sep 17, 2020 7:03 pm
Hi
It seems you have Javascript error(s). Press F12 and navigate to the console tab. What do you see there?
(Steep learning curve here)

Re: image to product logs me out and product description box not ok

Posted: Thu Sep 17, 2020 8:39 pm
by Kakofon
thekrotek wrote:
Thu Sep 17, 2020 7:08 pm
Some paths are still wrong somewhere, if you're logged out when clicking an action button.
Yes.. i posted a picture of what happens when button is clicked..

Re: image to product logs me out and product description box not ok

Posted: Thu Sep 17, 2020 8:46 pm
by letxobnav
you mean:"Invalid token session. Please login again."?

Re: image to product logs me out and product description box not ok

Posted: Thu Sep 17, 2020 8:50 pm
by Kakofon
letxobnav wrote:
Thu Sep 17, 2020 8:46 pm
you mean:"Invalid token session. Please login again."?
Yes, thatś right.

Re: image to product logs me out and product description box not ok

Posted: Thu Sep 17, 2020 9:41 pm
by letxobnav
well, the error means that the user_token in your get variable (the one in your address bar) is not the same as the one in your session.
Looks like you are losing the session somewhere.

Re: image to product logs me out and product description box not ok (Journal)

Posted: Fri Sep 18, 2020 8:05 am
by letxobnav
first clear all you caches including the browser and journal ones.
then open developer tools while doing what you are doing and check the console and network tabs, no need to go to source or debugging.
click on the image edit button, in network you will see a call like

Code: Select all

index.php?route=common/filemanager&user_token=XXXXXXXXXXXXXXXXXXXXXXXXXX&target=input-image&thumb=thumb-image
check if that returns 200 and that the urser_token is the same as in your address bar
check the console for js errors.
Could very well be that journal has issues with changing the domain after installation.