New aimeos installation, page expired error
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
-
- Posts: 22
- Joined: 16 Jul 2016, 13:11
New aimeos installation, page expired error
I am installed aimeos laravel package ~2017.10 on laravel 5.5 and PHP 7.0 on windows 10, installation successful with demo shop. Now I am trying to enable x currency in locale and each time I submit the form it says "The page has expired due to inactivity. Please refresh and try again." and I am unable to save it.
Is any configuration I missed? I found that it is regarding CSRF but I am not calling API yet.
I found that it is randomly occurred with "419 unknown status" error. I am sure that it is SCRF issue after searching this error,but not finding solution yet.
Is any configuration I missed? I found that it is regarding CSRF but I am not calling API yet.
I found that it is randomly occurred with "419 unknown status" error. I am sure that it is SCRF issue after searching this error,but not finding solution yet.
Last edited by HimanshuBhandari on 22 Jan 2018, 16:15, edited 1 time in total.
Re: New aimeos installation, page expired error
did you try to disable temporary CSRF at laravel?
Laravel 6.18.19 | php 7.4.7 | Xubuntu | Aimeos Laravel 2019.10.5
Re: New aimeos installation, page expired error
There seems to be something completly wrong with your environment. Do you have similar problems of a base Laravel 5.5 installation without Aimeos?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,

-
- Posts: 22
- Joined: 16 Jul 2016, 13:11
Re: New aimeos installation, page expired error
Code: Select all
did you try to disable temporary CSRF at laravel?
Code: Select all
protected $except = [ '*', ];
I am able to run 3 other projects with Laravel without any such problem so I think environment should be good. No such problem without Aimeos.aimeos wrote:There seems to be something completly wrong with your environment. Do you have similar problems of a base Laravel 5.5 installation without Aimeos?
Re: New aimeos installation, page expired error
Can you please throw away your current installation and install the Aimeos distribution (https://github.com/aimeos/aimeos#requirements)? It's the same as Laravel 5.5 and Aimeos 2017.10 but only ask some questions and configures the installation automatically. Then test that installation and see if the same errors occur.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,

-
- Posts: 22
- Joined: 16 Jul 2016, 13:11
Re: New aimeos installation, page expired error
I have installed Aimeos with the given link and now I am in more trouble.
Now I got Site Add button, when I filled required data and save it, nothing happens.. I clicked again and again nothing, no error and no success message. Finally I clicked again on Local>Sites and what?? I am on Login page.. I logged in and able to see the added site.
I tried again to add a new Site this time on click of save my page expired again, even worse I found this error in console
I understand that this error means I am not logged in as Admin, but believe me I was logged in(checked multiple times).
In short, some times I gets logged out automatically, get page expired error and above console error, all at random, without any clue.

Now I got Site Add button, when I filled required data and save it, nothing happens.. I clicked again and again nothing, no error and no success message. Finally I clicked again on Local>Sites and what?? I am on Login page.. I logged in and able to see the added site.
I tried again to add a new Site this time on click of save my page expired again, even worse I found this error in console
Code: Select all
jquery.min.js:4 OPTIONS http://127.0.0.1:8000/admin/default/jsonadm 401 (Unauthorized)
send @ jquery.min.js:4
ajax @ jquery.min.js:4
(anonymous) @ js?lang=en:4352
In short, some times I gets logged out automatically, get page expired error and above console error, all at random, without any clue.
Re: New aimeos installation, page expired error
Dumb question: Did you ever try another browser? Do you have any anti virus software that performs checking pages on load?
Aimeos using standard Laravel authentication and session handling with CSRF tokens and you are the first who has massive problems in that area. Can you ask in the Laravel forums if there are any known problems with that and your environment?
Aimeos using standard Laravel authentication and session handling with CSRF tokens and you are the first who has massive problems in that area. Can you ask in the Laravel forums if there are any known problems with that and your environment?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,

-
- Posts: 42
- Joined: 14 Sep 2017, 09:59
Re: New aimeos installation, page expired error
There is a SESSION_LIFETIME specified in config/session.php
Default value is set to 120, i.e. minutes, which is normally fine. Maybe this has a lower value for your set up....
Default value is set to 120, i.e. minutes, which is normally fine. Maybe this has a lower value for your set up....
-
- Posts: 22
- Joined: 16 Jul 2016, 13:11
Re: New aimeos installation, page expired error
No Question can be dumbaimeos wrote:Dumb question:

Not till you asked. Well I tried same steps in Firefox Quantum and then on Edge, and first time EVER, something worked on Microsoft Edge (IE) and not on other browsers(Chrome and Firefox). Firefox is letting me Add site but not redirecting to Sites listing(may be there is no redirection), but if I again navigate to Local>Sites>Add, I got redirected to login page.aimeos wrote:Did you ever try another browser?
How it worked on Edge still a Question.
Windows Defender is installed, but I don't expect any intervention from it.aimeos wrote:Do you have any anti virus software that performs checking pages on load?
Without any specifics it is difficult. Still I will try to solve before ask.aimeos wrote:Can you ask in the Laravel forums if there are any known problems with that and your environment?
I have checked it and it is same. Moreover I am performing all the actions in one go, so..antonlinderer wrote:Maybe this has a lower value for your set up....
Re: New aimeos installation, page expired error
Can you please post your ./app/Providers/AuthServiceProvider.php file?
Also can you post the HTTP request and response which fails with HTTP error 419?
Also can you post the HTTP request and response which fails with HTTP error 419?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,
