• Resolved ayenedel

    (@ayenedel)


    I’m learning WordPress and how to create a form. I have installed WP locally on my home computer to build a proof-of-concept form to show that we can create a WP form for our annual convention registration that we currently have as a fillable PDF document.
    I keep getting “Something went wrong while saving your form. Please try again.” and cannot save my draft form.

    I’ve turned on debugging and these are the lines in debug.log after I clicked “Save Draft”
    [12-Sep-2022 01:10:47 UTC] PHP Deprecated: Return type of Forminator_Addon_Container::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in D:\xampp\htdocs\mysite\wp-content\plugins\forminator\library\addon\class-addon-container.php on line 24
    [12-Sep-2022 01:10:47 UTC] PHP Deprecated: Return type of Forminator_Addon_Container::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in D:\xampp\htdocs\mysite\wp-content\plugins\forminator\library\addon\class-addon-container.php on line 35
    [12-Sep-2022 01:10:47 UTC] PHP Deprecated: Return type of Forminator_Addon_Container::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in D:\xampp\htdocs\mysite\wp-content\plugins\forminator\library\addon\class-addon-container.php on line 49
    [12-Sep-2022 01:10:47 UTC] PHP Deprecated: Return type of Forminator_Addon_Container::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in D:\xampp\htdocs\mysite\wp-content\plugins\forminator\library\addon\class-addon-container.php on line 56
    [12-Sep-2022 01:10:47 UTC] PHP Deprecated: Return type of Forminator_Addon_Container::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in D:\xampp\htdocs\mysite\wp-content\plugins\forminator\library\addon\class-addon-container.php on line 70
    [12-Sep-2022 01:10:47 UTC] PHP Deprecated: Return type of Forminator_Addon_Container::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in D:\xampp\htdocs\mysite\wp-content\plugins\forminator\library\addon\class-addon-container.php on line 132
    [12-Sep-2022 01:10:47 UTC] PHP Deprecated: Return type of Forminator_Addon_Container::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in D:\xampp\htdocs\mysite\wp-content\plugins\forminator\library\addon\class-addon-container.php on line 143
    [12-Sep-2022 01:10:47 UTC] PHP Deprecated: Return type of Forminator_Addon_Container::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in D:\xampp\htdocs\mysite\wp-content\plugins\forminator\library\addon\class-addon-container.php on line 154
    [12-Sep-2022 01:10:47 UTC] PHP Deprecated: Return type of Forminator_Addon_Container::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in D:\xampp\htdocs\mysite\wp-content\plugins\forminator\library\addon\class-addon-container.php on line 166
    [12-Sep-2022 01:10:47 UTC] PHP Deprecated: Return type of Forminator_Addon_Container::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in D:\xampp\htdocs\mysite\wp-content\plugins\forminator\library\addon\class-addon-container.php on line 177
    [12-Sep-2022 01:10:50 UTC] PHP Deprecated: Return type of Forminator_Addon_Container::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in D:\xampp\htdocs\mysite\wp-content\plugins\forminator\library\addon\class-addon-container.php on line 24
    [12-Sep-2022 01:10:50 UTC] PHP Deprecated: Return type of Forminator_Addon_Container::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in D:\xampp\htdocs\mysite\wp-content\plugins\forminator\library\addon\class-addon-container.php on line 35
    [12-Sep-2022 01:10:50 UTC] PHP Deprecated: Return type of Forminator_Addon_Container::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in D:\xampp\htdocs\mysite\wp-content\plugins\forminator\library\addon\class-addon-container.php on line 49
    [12-Sep-2022 01:10:50 UTC] PHP Deprecated: Return type of Forminator_Addon_Container::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in D:\xampp\htdocs\mysite\wp-content\plugins\forminator\library\addon\class-addon-container.php on line 56
    [12-Sep-2022 01:10:50 UTC] PHP Deprecated: Return type of Forminator_Addon_Container::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in D:\xampp\htdocs\mysite\wp-content\plugins\forminator\library\addon\class-addon-container.php on line 70
    [12-Sep-2022 01:10:50 UTC] PHP Deprecated: Return type of Forminator_Addon_Container::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in D:\xampp\htdocs\mysite\wp-content\plugins\forminator\library\addon\class-addon-container.php on line 132
    [12-Sep-2022 01:10:50 UTC] PHP Deprecated: Return type of Forminator_Addon_Container::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in D:\xampp\htdocs\mysite\wp-content\plugins\forminator\library\addon\class-addon-container.php on line 143
    [12-Sep-2022 01:10:50 UTC] PHP Deprecated: Return type of Forminator_Addon_Container::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in D:\xampp\htdocs\mysite\wp-content\plugins\forminator\library\addon\class-addon-container.php on line 154
    [12-Sep-2022 01:10:50 UTC] PHP Deprecated: Return type of Forminator_Addon_Container::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in D:\xampp\htdocs\mysite\wp-content\plugins\forminator\library\addon\class-addon-container.php on line 166
    [12-Sep-2022 01:10:50 UTC] PHP Deprecated: Return type of Forminator_Addon_Container::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in D:\xampp\htdocs\mysite\wp-content\plugins\forminator\library\addon\class-addon-container.php on line 177`

    • This topic was modified 2 years, 2 months ago by ayenedel. Reason: add contents of debug.log
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Nebu John – WPMU DEV Support

    (@wpmudevsupport14)

    Hi @ayenedel,

    I hope you are doing good today.

    It looks like you are using an outdated version of PHP, which is causing the issue. Could you please let us know the PHP and WordPress versions you are using so we can try to help you resolve this issue?

    We look forward to hearing back from you.

    Kind Regards,
    Nebu John

    Thread Starter ayenedel

    (@ayenedel)

    I’m a newbie and just followed directions on downloading XAMPP for Windows and WordPress

    versions are:
    WordPress 6.0.2

    Server version: Apache/2.4.53 (Win64)
    Apache Lounge VS16 Server built: Mar 16 2022 11:26:15

    PHP 8.1.6 (cli) (built: May 11 2022 08:55:59) (ZTS Visual C++ 2019 x64)
    Copyright (c) The PHP Group
    Zend Engine v4.1.6, Copyright (c) Zend Technologies

    mysql Ver 15.1 Distrib 10.4.24-MariaDB, for Win64 (AMD64), source revision b4477ae73c836592268f7fb231eeb38a4fa83bb6

    When I go to Site Health screen, I see the following:
    Warning – The optional module, imagick, is not installed, or has been disabled.
    Error – The required module, gd, is not installed, or has been disabled.
    Warning – The optional module, intl, is not installed, or has been disabled.

    How do I install/activate gd without losing my work?

    I still have my Forminator form active on another browser tab. Is there a way I can save all the form changes I have already made? When I attempt to switch to another WP menu item, I get “Changes you made may not be saved.” so I choose “cancel”.

    Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @ayenedel

    Thank you for response!

    So you are definitely not using outdated PHP and setup in general. That’s a good news.

    I don’t think, however, that those errors that you are getting (as well as missing “intl” module) would be an issue here. This is because none of those “error” messages refers to functions provided with “intl” module and, more importantly, the “PHP Deprecated” isn’t really an error but rather a warning.

    A “PHP deprecated” function is meant to tell developers that a given function will either be removed or changed in future PHP version. But it does not mean that it already is removed or changed. It’s still there and still working as it used to. It will be removed/changed in future only.

    I’d rather look into the form itself and/or site configuration or even XAMPP configuration.

    For the start, I’d recommend adding this line to the “wp-config.php” file of your WordPress installation, right above the “/* That’s all, stop editing */” line

    define('WP_MEMORY_LIMIT', '256M' );

    If this doesn’t help, are there any other plugins installed and active on the site and if yes, what are they? Or is there only Forminator currently?

    Also, did you manage to save the form before and this started to happen when you edited it or this is the “fresh form” and you never successfully save it before?

    Finally, please try this:
    – open browser console ( CTRL+SHIFT+I on PC, similarly on Mac, I believe)
    – and try saving the form
    – most likely you will see some errors in browser console so please let us know what exactly these errors are.

    Kind regards,
    Adam

    Thread Starter ayenedel

    (@ayenedel)

    I edited the “wp-config.php” and added the “define(‘WP_MEMORY_LIMIT’, ‘256M’ );”
    I clicked “Save Draft” but it still doesn’t save.

    There are NO other plug-ins installed but Forminator.

    On another browser window, I opened WordPress and saw that the saved form does not have a lot of my changes. I got carried away with just previewing and making changes and when I attempted to Save Draft, I was unable to.

    CTRL+SHIFT+I shows the folliowing:

    JQMIGRATE: Migrate is installed, version 3.3.2
    ? JQMIGRATE: Migrate is installed, version 3.3.2
    32The specified value "NaN" cannot be parsed, or is out of range.
    admin.php:1 [Intervention] Slow network is detected. See https://www.chromestatus.com/feature/5636954674692096 for more details. Fallback font will be used while loading: https://localhost/mysite/wp-includes/js/tinymce/skins/lightgray/fonts/tinymce.woff
    admin.php:1 [Intervention] Slow network is detected. See https://www.chromestatus.com/feature/5636954674692096 for more details. Fallback font will be used while loading: https://fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51S7ACc6CsQ.woff2
    load-scripts.php?c=1&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.0.2:2 [Intervention] Slow network is detected. See https://www.chromestatus.com/feature/5636954674692096 for more details. Fallback font will be used while loading: https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu7GxKOzY.woff2
    DevTools failed to load source map: Could not load content for https://localhost/sm/f07d8d7b2652873f485707eab4f3d300bf1f6f3b42912e189c8933b1b9b3dfde.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE

    There are 32 instances of “The specified value “NaN” cannot be parsed, or is out of range.”

    • This reply was modified 2 years, 2 months ago by ayenedel.
    Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @ayenedel

    Thank you for response!

    The “NaN” error suggests that there are JS related issues upon saving but it doesn’t say much about specifics of those. This is a bit strange and one thing that comes to my mind would be either that the form is very complex with a lot of complicated visibility rules or a huge amount of complex calculations.

    Are you using any of those in the form? Let me know, please.

    Meanwhile, I’ve also asked our Forminator Team for advice on this case and I’m awaiting their response so I or one of my colleagues will update you here soon with more information.

    Kind regards,
    Adam

    Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @ayenedel

    I just got some additional suggestions from our developers.

    Most likely it’s actually a “nonce” error. Nonce is a special security mechanisms in WordPress that ensures that no unauthorized action is performed. They are specific numbers, unique and time-valid so they expired.

    So please try these steps (exactly as described):

    1. open the same form for editing in separate browser tab (but to not close the one you have already opened – the one that’s failing); do not save anything yet

    2. open browser console for that new tab (F12 in Chrome browser if you use Chrome, should be similar in other browser too)

    3. insert this exact string into that console and press enter

    forminatorData.formNonce

    4. copy the result/response that you get (it should be similar – but not the same to something like 91619a26bd

    5. return to the original tab where you cannot save the form

    6. open browser console there

    7. insert this exact string there

    forminatorData.formNonce=’XXXX’

    but replacing XXXX with what you copied in step 4 above, press enter

    8. try to save draft/form again

    If it works, it means it was nonce issue. It should keep working from now on, provided that you’ll keep saving the form every now and than (rather more often than 24 hours and definitely before e.g. stopping XAMPP).

    If it doesn’t help, try also downgrading PHP a bit in XAMPP and try again.

    Kind regards,
    Adam

    Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @ayenedel ,

    We haven’t heard from you for a week now, so it looks like you don’t have any more questions for us.

    Feel free to re-open this ticket if
    needed.

    Kind regards
    Kasia

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Unable to save draft’ is closed to new replies.