When signed in, all urls should have the user_token variable which is continuously matched with the one in the session.
So this is a case of a link which does not append the user_token correctly to the url.
My guess is a modification you installed.
There is no OC version posted .. it may be related viewtopic.php?t=187435 .. the session token sounds like something from OC1
DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.
https://www.youtube.com/watch?v=zXIxDoCRc84
This is the message I was getting: Invalid token session. Please login again. The OC version is 3.0.3.8.by mona wrote: ↑Mon Jan 03, 2022 11:20 amThe "invalid session token" message (should be "invalid user token") is given when the user_token variable in your session does not match the user_token variable in your url or when there is no user_token variable in your url (then they obviously also do not match).
When signed in, all urls should have the user_token variable which is continuously matched with the one in the session.
So this is a case of a link which does not append the user_token correctly to the url.
My guess is a modification you installed.
There is no OC version posted .. it may be related viewtopic.php?t=187435 .. the session token sounds like something from OC1
Also try the Disable cache option in the developer tool to eliminate it being a caching issue.
Server Error logs.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
I am working on this Xampp. I wanted to get it working right before applying it to my host site. I may just upload what I got working to my site to see if I am still getting these session errors.
See the error logs in your OC admin > systems - > maintenance > error logs or in your system/storage/logs folder.drrevans wrote: ↑Tue Jan 04, 2022 6:17 amI am working on this Xampp. I wanted to get it working right before applying it to my host site. I may just upload what I got working to my site to see if I am still getting these session errors.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
I am using Xampp for the local host. Could this be part of the issue? I was trying to get it to work here first.ADD Creative wrote: ↑Tue Jan 04, 2022 12:05 amUse your web browser's developer tool Network tab and check the request to admin/index.php?route=common/filemanager&user_token=xxx, on clicking the edit image, is the same token as the page that requested it.
Also try the Disable cache option in the developer tool to eliminate it being a caching issue.
and your responseADD Creative wrote: ↑Tue Jan 04, 2022 12:05 amcheck the request to admin/index.php?route=common/filemanager&user_token=xxx, on clicking the edit image, is the same token as the page that requested it.
DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.
https://www.youtube.com/watch?v=zXIxDoCRc84
I have two guesses what this could be:
- Modification bug, as mona suggested.
- Workflow issues.
1. Modification bug
Do you have any extensions / modifications installed on your admin that could affect your edit product page or image manager? If so, check if the user_token is included in the query when you "click to edit the image to add a new image". As ADD Creative already suggested. Please note: a modification could be the problem even if you don't think it should affect the mentioned areas.
2. Workflow issues
It is possible to re-login into the same session from the same browser in different tabs. This will create a new user_token and update it in the session, causing the tabs that were open previously to no longer "work" as these will still be using the old user_token. So you could technically fork the user_token in the same browser, this could easily happen while testing multiple things at the same time on a local copy. For example: logging in again after opening an id anchor in a new tab or navigating to the admin page from a browser bookmark in a new tab. To prevent this from happening, try to avoid logging in to the same session again. If you need multiple tabs open, you could log in to a new session in another browser or using incognito mode.
These are of course just guesses, and it could be a third (or fourth) scenario. In either case, XAMPP is unlikely to be causing this issue (as long as your environment is set up correctly)
Hope this helps,
Gergely
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
No, it doesn't create a new session. However, it's possible to log in again on a new tab, causing the user_token to be updated for the open session. Now the previously loaded tabs that have been loaded with a previous token are deprecated, and any action on them will redirect to the login page with OP's error message. This, of course, will not be OP's issue if this behaviour is exclusive to the edit picture button on the images tab...
This is what is stored in the image column in the product table: catalog/demo/htc_touch_hd_1.jpg - the full path is image/catalog/demo
If you are getting 'Warning: Directory does not exist!'. Either, your path is wrong, there is a file/folder permissions issue or your DIR_IMAGE has a symbolic link.
It would be helpful to answer some of the questions other users have asked you in order to help you.
I had checked the permission and they were fine. I asked my host for the absolute path and they gave it to me and when I put that there it worked:ADD Creative wrote: ↑Thu Jan 13, 2022 5:10 pmDIR_IMAGE should match DIR_APPLICATION, except with /image/ instead of /admin/. This will need to be an absolute path, not a symbolic link. The image part of the URL is added by model_tool_image->resize.
If you are getting 'Warning: Directory does not exist!'. Either, your path is wrong, there is a file/folder permissions issue or your DIR_IMAGE has a symbolic link.
It would be helpful to answer some of the questions other users have asked you in order to help you.
this is what I originally had it as:
define('DIR_IMAGE', '/home/users/web/b2285/ipg.drrevans/wp_site_1626524447/reunion/image/')
they changed it to this:
define('DIR_IMAGE', '/hermes/bosnacweb05/bosnacweb05bi/b2285/ipg.drrevans/wp_site_1626524447/reunion/image/');
Now my site is working and I can now load images and I don't get the session token error nor the Directory not found.
I have bookmarked that link as it will come in handy. Thanks.ADD Creative wrote: ↑Thu Jan 13, 2022 11:31 pmIt's a known issue with symbolic links in the image config paths. There is another workaround that may help if you have the issue in the future. https://github.com/opencart/opencart/is ... -445841482
Users browsing this forum: No registered users and 250 guests