Increased file upload size in php.ini, now I get “Form has expired” error upon saving Pods item
December 16, 2010 at 1:42 am #164878
I recently increased the file upload size in php.ini:
memory_limit = 200M
upload_max_filesize = 200M
post_max_size = 200M
file_uploads = On
Now I an unable to save any pods items. I get an error that the "Form has expired".
I tried disabling the Pods plugin and re-enabling it, but that did nothing. Please help!December 18, 2010 at 11:27 pm #164879
Same problem here. Can’t get by it, no matter what I try.
To circumvent the validation, edit /plugins/pods/ui/ajax/api.php. Search for ‘expired’. Comment out ("//") the three lines of the "if" statement where you find it. (include the one above, and the one below).
The Pods ui will work until they tell us what the fix is.February 3, 2011 at 11:03 am #164880
same error here. Could someone of the core developers open a bug ticket?April 6, 2011 at 7:17 am #164881
sc0ttkclarkKeymasterPost count: 811
This issue seems to stem from a number of issues, please check them out and you may determine the cause on your specific site:
April 21, 2011 at 4:14 pm #164882
- Your PHP session.save_path is not writeable (check with your host)
- Your PHP session.gc_maxlifetime needs to be increased (check with your host)
- You have opened the form more than once at a time (only the latest loaded form will function for security purposes)
- There is a plugin conflict which is either loading the page an extra time (in CSS, this can happen through an empty url() in certain cases, causing an additional page load which resets the session key for the form)
Sorry to bring this issue up again but this ‘Form has expired’ problem only occurs in Firefox (3.6.16 on Mac) and not in Safari, Chrome and IE, both in on- and offline versions. That rules out all possible origins that Scott mentioned.
I really hope someone comes up with a solution or, if it’s a bug, it is traced and removed.April 21, 2011 at 4:59 pm #164883
Mike Van WinkleMember
I think there will be a new Form API in Pods 2.0.May 12, 2011 at 12:37 pm #164884
I’m getting the "form has expired" message in FF, Safari, Chrome. It’s happening suddenly on one content type only and it’s causing all kinds of grief… commenting out the error lines in api.php return a SQL error…May 12, 2011 at 1:10 pm #164885
@coeurmechante: If you’ve added any new plugins since your problem started, disable them. They may be the issue. Some plugins, for whatever reason, hose the validation system pods uses.May 12, 2011 at 1:21 pm #164886
Thanks @chris.pilko, for continued help that I seriously don’t deserve.
Found my problem: it was a badly coded (my fault) input helper that was breaking the content type. WHEW.August 7, 2012 at 2:36 pm #168140
I made a simple form with the Pods UI, but now I am blocked with the error:
“This form has expired. Please reload the page and Ensure your session is still active.”
I have looked for a solution on the forum and also googled’it but can not find how to solve the problem.
The error is with a fresh installation of WordPress. The server is a Plesk VPS with the following definitions taken from the PHP phpinfo () function:
Session Support enabled
Registered save handlers files user
Registered serializer handlers php php_binary wddx
session.cache_expire 180 180
session.cache_limiter nocache nocache
session.cookie_lifetime 0 0
session.gc_maxlifetime 1440 1440
session.name PHPSESSID PHPSESSID
session.save_handler files files
session.save_path /var/lib/php/session /var/lib/php/session
I have tried to give permissions to the /var/lib/php/session folder -rwx rwx rw- where everyone can write and read, but did not resolve.
Also I I disabled the other plugins :
- Grunion Contact Form
The strange thing is that installing WinXP on my personal computer works well, even with two active plugins:
I had developed so many PHP code to use this plugin and now i’m stucked.
Please does anyone know how to help me?August 8, 2012 at 7:29 am #168147
It was an accident but my entry above was placed in duplicate in another thread here: http://podsframework.org/forums/topic/publicform-form-expired/#post-168141
and I already have my problem apparently resolved: http://podsframework.org/forums/topic/publicform-form-expired/#post-168146August 13, 2012 at 6:56 am #168170
The error seems to be caused by servers that updated to PHP 5.3.
My advice, check to see if you can switch back to 5.2
NofiaAugust 13, 2012 at 11:36 am #168172
PG LewisKeymasterPost count: 199
I would not advise anyone to downgrade to PHP 5.2. PHP 5.3 should not be the issue in and of itself. Please check your settings with the code snippet here:
If the session save path is not writable then you will get this issue because your session information can’t be saved. It’s not because of PHP 5.3, it’s because your hosting did not setup your session save path correctly in php.ini.
You must be logged in to reply to this topic.