-
AuthorPosts
-
August 29, 2018 at 6:45 pm #1003238
The website is giving some people a nonce error when they try to upload files using NinjaForms on the Enfold website, preventing them from uploading files. NF has investigated and determined that the issue is not with the form itself. The host company has vigorous caching and does not allow caching plugins, and has turned off caching for this one page in order to try to resolve the issue, but it has not succeeded. They have found errors in the host log that might be related to the issue, and they point to Enfold trying to upload files to a denied/not existing folder. Please advise on how to resolve the nonce error. Plugins are up to date.
August 30, 2018 at 1:24 pm #1003560Hey m,
The php warning will be fixed with the next update. If you want to fix it now please use ftp and navigate to wp-content/uploads/. Create a new folder in this directory and call it “avia_instagram_cache” (without the quotes). Then set the folder permission to 777.
I also added this code to the enfold theme functions.php:
error_reporting(0);
to make sure no php warnings interfere with the upload process.
Best regards,
DudeSeptember 4, 2018 at 8:43 pm #1005764Thanks, I created that folder. I can’t confirm whether or not it fixed the error, as I don’t usually get the nonce error on that page on my device. However, other upload functions on other web page forms are still getting nonce errors.
September 5, 2018 at 11:00 am #1006008Hi,
Are you using the instagram widget? Try to disable the scheduled file check temporarily. Just add this code in the functions.php file:
add_filter('avf_instagram_activate_cron', 'avf_instagram_disable_cron', 10); function avf_instagram_disable_cron() { return false; }
Best regards,
IsmaelSeptember 5, 2018 at 3:06 pm #1006160Is the Instagram widget the same thing as the theme/Enfold/Social Profiles/Social Icon/Instagram? If yes, I’ll delete it if that solves the problem. Otherwise, no, the Enfold Instagram widget in the Appearance/Widgets tab is not being used.
September 5, 2018 at 3:30 pm #1006178Hi,
To be honest I don’t see any reasons why the nonce error could pop up. The PHP warnings you posted are related to the instagram cache and will be fixed with the next update. They have also nothing to do with the nonce values which are generated by wordpress ( https://codex.wordpress.org/WordPress_Nonces ), in fact this function just tries to create a cache folder for instagram images in the wp-content/uploads/ folder. It does not manipulate or access the nonce values, etc.
I read some bug reports (i.e. here: https://github.com/wpninjas/ninja-forms-uploads/issues/270#issuecomment-361279922 ) and they suggest it might be a caching issue. However you’ve already checked the cache configuration too :-/
Best regards,
PeterSeptember 5, 2018 at 6:11 pm #1006241Thanks. The host has already turned off caching for that page. Still getting nonce errors. When will you release that theme update related to the Instagram cache? What else can be done other than replacing the Enfold theme?
September 5, 2018 at 6:20 pm #1006249Should the line
error_reporting(0);
be removed again from the functions.php file? Is this error reporting important in troubleshooting and other functions?September 5, 2018 at 9:25 pm #1006341Hi,
Remove it – you wouldnt need it again no :)
Best regards,
BasilisSeptember 8, 2018 at 4:03 pm #1007436Any update on the next release that might resolve this file upload problem?
September 9, 2018 at 10:32 am #1007563Hi,
There’s no ETA for the release but you can download the developer build (see link in preview content) which fixes the instagram cache issue. You can use ftp to install the update ( https://kriesi.at/documentation/enfold/how-to-install-enfold-theme/#ftp-install ).
Best regards,
PeterSeptember 10, 2018 at 8:05 pm #1008067I’ve noticed now that the NONCE error occurs when not logged in to the site, but not when I am logged in as admin. Can you investigate from that approach?
September 11, 2018 at 8:13 pm #1008577Hi,
Can you try login to the web site, after u open icognito mode and tell us what will be the results?
Best regards,
BasilisSeptember 18, 2018 at 5:08 pm #1011396Same error in incognito mode. Thank you for all of your ideas and help with this. I had the php upgraded to 7, but that didn’t solve the issue of getting a NONCE on file upload when not logged in to WP. What seemed to work so far is having the host disable caching for the affected pages.
-
AuthorPosts
- You must be logged in to reply to this topic.